[screenwavemedia] Fix extraction (Closes #6575)

This commit is contained in:
Sergey M․ 2015-08-16 19:53:14 +06:00
parent 974f1a385a
commit 7fc18d9309

View File

@ -1,6 +1,8 @@
# encoding: utf-8 # encoding: utf-8
from __future__ import unicode_literals from __future__ import unicode_literals
import re
from .common import InfoExtractor from .common import InfoExtractor
from ..utils import ( from ..utils import (
int_or_none, int_or_none,
@ -35,6 +37,8 @@ class ScreenwaveMediaIE(InfoExtractor):
sources = self._parse_json( sources = self._parse_json(
js_to_json( js_to_json(
re.sub(
r'(?s)/\*.*?\*/', '',
self._search_regex( self._search_regex(
r"sources\s*:\s*(\[[^\]]+?\])", playerconfig, r"sources\s*:\s*(\[[^\]]+?\])", playerconfig,
'sources', 'sources',
@ -45,6 +49,7 @@ class ScreenwaveMediaIE(InfoExtractor):
"' + playerVidId + '", "' + playerVidId + '",
video_id video_id
) )
)
), ),
video_id video_id
) )