mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-09-13 22:44:32 +03:00
[ivoox] Applied Ruff + autopep8 fixes.
This commit is contained in:
@@ -53,7 +53,7 @@ class IvooxIE(InfoExtractor):
|
|||||||
|
|
||||||
# This platform embeds a JSON document with a lot of the chapter
|
# This platform embeds a JSON document with a lot of the chapter
|
||||||
# information there; Try getting all the info from here first
|
# information there; Try getting all the info from here first
|
||||||
embedded_pattern = r'>({"@context":"https://schema.org/","@type":"PodcastEpisode".+?)</script>',
|
embedded_pattern = r'>({"@context":"https://schema.org/","@type":"PodcastEpisode".+?)</script>'
|
||||||
embedded_metadata = self._html_search_regex(embedded_pattern, webpage, 'embedded metadata')
|
embedded_metadata = self._html_search_regex(embedded_pattern, webpage, 'embedded metadata')
|
||||||
try:
|
try:
|
||||||
metadata = json.loads(embedded_metadata)
|
metadata = json.loads(embedded_metadata)
|
||||||
@@ -76,7 +76,6 @@ class IvooxIE(InfoExtractor):
|
|||||||
timestamp = int(datetime.datetime.timestamp(date))
|
timestamp = int(datetime.datetime.timestamp(date))
|
||||||
if author is None:
|
if author is None:
|
||||||
# Author uses fallback since it is not explicitly embedded elsewhere
|
# Author uses fallback since it is not explicitly embedded elsewhere
|
||||||
#self.report_warning('Fallback extration of author', media_id)
|
|
||||||
author = self._html_search_regex(r'data-prm-author="(.+?)"', webpage, 'author')
|
author = self._html_search_regex(r'data-prm-author="(.+?)"', webpage, 'author')
|
||||||
if channel is None:
|
if channel is None:
|
||||||
self.report_warning('Fallback extration of channel', media_id)
|
self.report_warning('Fallback extration of channel', media_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user