diff options
author | Adam Malcontenti-Wilson <adman.com@gmail.com> | 2014-07-13 21:15:18 +1000 |
---|---|---|
committer | Adam Malcontenti-Wilson <adman.com@gmail.com> | 2014-07-13 21:15:18 +1000 |
commit | b1298d8e064e3c1d31bdfffe8a3b5cfed8b0b61d (patch) | |
tree | 3ee7fd05b9f6e3cf860622393da9486cd1d05d56 | |
parent | 6a46dc8db7c5d71107cc555a0f178c7c26c109d6 (diff) |
Test for colon in mgid
-rw-r--r-- | youtube_dl/extractor/mtv.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/mtv.py b/youtube_dl/extractor/mtv.py index af9490ccc..228b42d2b 100644 --- a/youtube_dl/extractor/mtv.py +++ b/youtube_dl/extractor/mtv.py @@ -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') |