Skip to content

Commit

Permalink
[xtube] Fix extraction (closes ytdl-org#26996)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Nov 16, 2020
1 parent fe07e78 commit 2e7fa18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/xtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def _real_extract(self, url):
title, thumbnail, duration = [None] * 3

config = self._parse_json(self._search_regex(
r'playerConf\s*=\s*({.+?})\s*,\s*\n', webpage, 'config',
r'playerConf\s*=\s*({.+?})\s*,\s*(?:\n|loaderConf)', webpage, 'config',
default='{}'), video_id, transform_source=js_to_json, fatal=False)
if config:
config = config.get('mainRoll')
Expand Down

0 comments on commit 2e7fa18

Please sign in to comment.