]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[generic] Add support for Crooks and Liars embeds
authorSergey M․ <dstftw@gmail.com>
Sat, 11 Apr 2015 14:20:20 +0000 (20:20 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 11 Apr 2015 14:20:20 +0000 (20:20 +0600)
youtube_dl/extractor/generic.py

index 6c212efac4b0f5869f93e37a5c34b42dbe2ca88a..0dc52ed23a38de7a5684b232197aff89537d2406 100644 (file)
@@ -1275,6 +1275,12 @@ class GenericIE(InfoExtractor):
         if mobj is not None:
             return self.url_result('5min:%s' % mobj.group('id'), 'FiveMin')
 
+        # Look for Crooks and Liars embeds
+        mobj = re.search(
+            r'<(?:iframe[^>]+src|param[^>]+value)=(["\'])(?P<url>(?:https?:)?//embed\.crooksandliars\.com/(?:embed|v)/.+?)\1', webpage)
+        if mobj is not None:
+            return self.url_result(mobj.group('url'))
+
         # Look for NBC Sports VPlayer embeds
         nbc_sports_url = NBCSportsVPlayerIE._extract_url(webpage)
         if nbc_sports_url: