[ie/CrooksAndLiars] Fix extractor (#9192)

Authored by: seproDev
This commit is contained in:
sepro 2024-02-13 04:11:40 +01:00 committed by GitHub
parent 1ed5ee2f04
commit 03536126d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -33,10 +33,7 @@ def _real_extract(self, url):
webpage = self._download_webpage(
'http://embed.crooksandliars.com/embed/%s' % video_id, video_id)
manifest = self._parse_json(
self._search_regex(
r'var\s+manifest\s*=\s*({.+?})\n', webpage, 'manifest JSON'),
video_id)
manifest = self._search_json(r'var\s+manifest\s*=', webpage, 'manifest JSON', video_id)
quality = qualities(('webm_low', 'mp4_low', 'webm_high', 'mp4_high'))