]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[gameone] Modernize
authorPhilipp Hagemeister <phihag@phihag.de>
Wed, 7 Jan 2015 06:37:21 +0000 (07:37 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Wed, 7 Jan 2015 06:37:21 +0000 (07:37 +0100)
youtube_dl/extractor/gameone.py

index 75f180928e2c29f59d2d77c1d80e267f6bc8d0a0..a07d69841f9278b932754b603249dc9f8eea53a0 100644 (file)
@@ -57,8 +57,7 @@ class GameOneIE(InfoExtractor):
     ]
 
     def _real_extract(self, url):
-        mobj = re.match(self._VALID_URL, url)
-        video_id = mobj.group('id')
+        video_id = self._match_id(url)
 
         webpage = self._download_webpage(url, video_id)
         og_video = self._og_search_video_url(webpage, secure=False)