projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f55a1f0
)
[generic] Get a better ID
author
Philipp Hagemeister
<phihag@phihag.de>
Wed, 5 Mar 2014 13:02:14 +0000
(14:02 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Wed, 5 Mar 2014 13:02:14 +0000
(14:02 +0100)
youtube_dl/extractor/generic.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/generic.py
b/youtube_dl/extractor/generic.py
index dd60bc418e2214c2c71f2f41a5e629a9ccc74192..7b52dacd98b98a0544de9eebf069e8dcf8ff57c5 100644
(file)
--- 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)