[cleanup] Misc (#5044)

Authored by: gamer191, pukkandan
This commit is contained in:
gamer191
2022-10-04 15:23:11 +11:00
committed by GitHub
parent 878eac3e2e
commit 304ad45a9b
20 changed files with 50 additions and 53 deletions

View File

@@ -41,7 +41,7 @@ class IltalehtiIE(InfoExtractor):
article_id = self._match_id(url)
webpage = self._download_webpage(url, article_id)
info = self._search_json(
r'<script>\s*window.App\s*=\s*', webpage, 'json', article_id,
r'<script>\s*window.App\s*=', webpage, 'json', article_id,
transform_source=js_to_json)
props = traverse_obj(info, (
'state', 'articles', ..., 'items', (('main_media', 'properties'), ('body', ..., 'properties'))))