aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorrobin <rderooij685@gmail.com>2015-02-05 21:49:13 +0100
committerrobin <rderooij685@gmail.com>2015-02-05 21:49:13 +0100
commit67ce4f8820f94961c9b094f9c652f421c9d9f6fb (patch)
tree43461473f95c495c2723b6cb8c4ead9dd23546a3 /youtube_dl
parentbc63d56ccac8805ca8394e0b41890027e6d677d2 (diff)
Use match_id method instead of splitted URL
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/tweakers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/tweakers.py b/youtube_dl/extractor/tweakers.py
index a4e749850..e332d4694 100644
--- 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 = splitted_url[4]
+ video_id = self._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'