[screenwavemedia] Use the IP for the videoserver (fixes #6397)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 1 Aug 2015 20:15:43 +0000 (22:15 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Sat, 1 Aug 2015 20:17:19 +0000 (22:17 +0200)
For http://cinemassacre.com/2015/07/28/avgn-seaman-for-dreamcast/ the other server returns a 403 error.

youtube_dl/extractor/screenwavemedia.py

index 09c085dcf7652b3179f04b275a3d412c31cdcbdb..3bc84989e2b4d4c842714a1d815070eeb05e45c9 100644 (file)
@@ -31,7 +31,7 @@ class ScreenwaveMediaIE(InfoExtractor):
             'http://player.screenwavemedia.com/player.js',
             video_id, 'Downloading playerconfig webpage')
 
-        videoserver = self._search_regex(r"'videoserver'\s*:\s*'([^']+)", playerconfig, 'videoserver')
+        videoserver = self._search_regex(r"\[ipaddress\]\s*=>\s*([\d\.]+)", playerdata, 'videoserver')
 
         sources = self._parse_json(
             js_to_json(