aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-03-05 14:02:14 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-03-05 14:02:14 +0100
commit8012bd242425cd611a4008e1108e1421a9a2a129 (patch)
tree1e989c0381805bef77139534d8aadee55672549d /youtube_dl
parentf55a1f0a8815c89b01a7a353cfa0bd5118f75829 (diff)
[generic] Get a better ID
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/generic.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py
index dd60bc418..7b52dacd9 100644
--- a/youtube_dl/extractor/generic.py
+++ b/youtube_dl/extractor/generic.py
@@ -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)