[generic] Get a better ID
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 5 Mar 2014 13:02:14 +0000 (14:02 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 5 Mar 2014 13:02:14 +0000 (14:02 +0100)
youtube_dl/extractor/generic.py

index dd60bc418e2214c2c71f2f41a5e629a9ccc74192..7b52dacd98b98a0544de9eebf069e8dcf8ff57c5 100644 (file)
@@ -223,7 +223,7 @@ class GenericIE(InfoExtractor):
             else:
                 assert ':' in default_search
                 return self.url_result(default_search + url)
-        video_id = os.path.splitext(url.split('/')[-1])[0]
+        video_id = os.path.splitext(url.rstrip('/').split('/')[-1])[0]
 
         self.to_screen('%s: Requesting header' % video_id)