]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/extractor/tweakers.py
Use match_id method instead of splitted URL
[youtube-dl.git] / youtube_dl / extractor / tweakers.py
index 14145e617e8c67c1ad9fd055c5581c945e6976cb..e332d469487263746a91d08ab5f3c831413e7113 100644 (file)
@@ -15,18 +15,13 @@ class TweakersIE(InfoExtractor):
             'id': '9926',
             'ext': 'mp4',
             'title': 'New-Nintendo-3Ds-Xl-Op-Alle-Fronten-Beter',
-            # TODO more properties, either as:
-            # * A value
-            # * MD5 checksum; start the string with md5:
-            # * A regular expression; start the string with re:
-            # * Any Python type (for example int or float)
         }
     }
 
     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'