[BehindKink] Update URL extraction
author5moufl <malouito@gmail.com>
Thu, 11 Dec 2014 13:25:26 +0000 (14:25 +0100)
committer5moufl <malouito@gmail.com>
Thu, 11 Dec 2014 13:25:26 +0000 (14:25 +0100)
youtube_dl/extractor/behindkink.py

index 31fdc0dcc0614babf4ff3b48186566904cfcc57a..84d8ef849a10c1a580875daf74027358ddc5092e 100644 (file)
@@ -34,8 +34,7 @@ class BehindKinkIE(InfoExtractor):
         webpage = self._download_webpage(url, display_id)
 
         video_url = self._search_regex(
-            r"'file':\s*'([^']+)'",
-            webpage, 'URL base')
+            r'<source src="(.*?)" type="video/mp4" />', webpage, 'video URL')
 
         video_id = url_basename(video_url)
         video_id = video_id.split('_')[0]