projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc63d56
)
Use match_id method instead of splitted URL
author
robin
<rderooij685@gmail.com>
Thu, 5 Feb 2015 20:49:13 +0000
(21:49 +0100)
committer
robin
<rderooij685@gmail.com>
Thu, 5 Feb 2015 20:49:13 +0000
(21:49 +0100)
youtube_dl/extractor/tweakers.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/tweakers.py
b/youtube_dl/extractor/tweakers.py
index a4e7498501505099c75a8803256a04338857bac9..e332d469487263746a91d08ab5f3c831413e7113 100644
(file)
--- a/
youtube_dl/extractor/tweakers.py
+++ b/
youtube_dl/extractor/tweakers.py
@@
-21,7
+21,7
@@
class TweakersIE(InfoExtractor):
def _real_extract(self, url):
splitted_url = re.split('.html|/', url)
del splitted_url[-1] # To remove extra '/' at the end
- video_id = s
plitted_url[4]
+ video_id = s
elf._match_id(url)
title = splitted_url[5].title() # Retrieve title for URL and capitalize
splitted_url[3] = splitted_url[3] + '/player' # Add /player to get the player page
player_url = '/'.join(splitted_url) + '.html'