[extractor/common] Improve find jwplayer data
This commit is contained in:
parent
1641ca402d
commit
a56edcd2a8
@ -2250,6 +2250,8 @@ class InfoExtractor(object):
|
|||||||
def _find_jwplayer_data(self, webpage, video_id=None, transform_source=js_to_json):
|
def _find_jwplayer_data(self, webpage, video_id=None, transform_source=js_to_json):
|
||||||
mobj = re.search(
|
mobj = re.search(
|
||||||
r'(?s)jwplayer\((?P<quote>[\'"])[^\'" ]+(?P=quote)\)(?!</script>).*?\.setup\s*\((?P<options>[^)]+)\)',
|
r'(?s)jwplayer\((?P<quote>[\'"])[^\'" ]+(?P=quote)\)(?!</script>).*?\.setup\s*\((?P<options>[^)]+)\)',
|
||||||
|
webpage) or re.search(
|
||||||
|
r'(?is)<div[^>]+data-jwplayer=([\'"])(?P<options>.*?)\1\s*>',
|
||||||
webpage)
|
webpage)
|
||||||
if mobj:
|
if mobj:
|
||||||
try:
|
try:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user