Browse Source

Fix the extraction of full-episodes urls from southpark.com (fixes #2278)

Added an additional regex to the generic _real_extract method of MTVServicesInfoExtractor
totalwebcasting
Jaime Marquínez Ferrándiz 11 years ago
parent
commit
b9381e43c2
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      youtube_dl/extractor/mtv.py

+ 3
- 1
youtube_dl/extractor/mtv.py View File

@ -119,7 +119,9 @@ class MTVServicesInfoExtractor(InfoExtractor):
if mgid.endswith('.swf'):
mgid = mgid[:-4]
except RegexNotFoundError:
mgid = self._search_regex(r'data-mgid="(.*?)"', webpage, u'mgid')
mgid = self._search_regex(
[r'data-mgid="(.*?)"', r'swfobject.embedSWF\(".*?(mgid:.*?)"'],
webpage, u'mgid')
return self._get_videos_info(mgid)


Loading…
Cancel
Save