Test for colon in mgid

pull/3246/head
Adam Malcontenti-Wilson 2014-07-13 21:15:18 +10:00
rodzic 6a46dc8db7
commit b1298d8e06
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -158,6 +158,9 @@ class MTVServicesInfoExtractor(InfoExtractor):
if mgid.endswith('.swf'):
mgid = mgid[:-4]
except RegexNotFoundError:
mgid = None
if mgid is None or ':' not in mgid:
mgid = self._search_regex(
[r'data-mgid="(.*?)"', r'swfobject.embedSWF\(".*?(mgid:.*?)"'],
webpage, u'mgid')