Skip to content
This repository has been archived by the owner on Aug 26, 2020. It is now read-only.

Commit

Permalink
Regression: "mp4:" prefixed onto suggested filenames.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyvisser committed May 7, 2010
1 parent 33ca66a commit 6ffd822
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iview-gtk
Expand Up @@ -119,7 +119,7 @@ class Downloader(gtk.Window):
self.labels[0][0].set_text('Name')
self.labels[0][1].set_text(title)
self.labels[1][0].set_text('Filename')
self.labels[1][1].set_text(iview.fetch.get_filename(url))
self.labels[1][1].set_text(dest_file.split('/')[-1])
self.labels[2][0].set_text('Download size')
self.labels[2][1].set_text('0.0 MB')

Expand Down
5 changes: 4 additions & 1 deletion iview/fetch.py
Expand Up @@ -4,7 +4,10 @@
import subprocess

def get_filename(url):
return ''.join((url.split('/')[-1], '.flv'))
return ''.join((
url.split('mp4:')[-1].split('/')[-1],
'.flv',
))

def rtmpdump(rtmp_url, rtmp_host, rtmp_app, rtmp_playpath, output_filename, resume=False, execvp=False):
executables = (
Expand Down

0 comments on commit 6ffd822

Please sign in to comment.