mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-30 17:14:03 +01:00
[RadioFrance] Follow ruff rules
This commit is contained in:
parent
ac5731e540
commit
0c51ccc479
|
@ -2,11 +2,11 @@
|
|||
|
||||
from .common import InfoExtractor
|
||||
from ..utils import (
|
||||
RegexNotFoundError,
|
||||
int_or_none,
|
||||
join_nonempty,
|
||||
js_to_json,
|
||||
parse_duration,
|
||||
RegexNotFoundError,
|
||||
strftime_or_none,
|
||||
traverse_obj,
|
||||
unified_strdate,
|
||||
|
@ -292,7 +292,7 @@ def _extract_embedded_episodes(self, item, webpage, content_id):
|
|||
try:
|
||||
preset = self._search_json(linkkey + r'\.preset=', webpage, content_id, content_id, contains_pattern=r'\{.+\}', transform_source=js_to_json)
|
||||
except RegexNotFoundError:
|
||||
preset = {"id": "999", "name": "unknown format", "encoding": "unknown", "bitrate": "unknown"}
|
||||
preset = {'id': '999', 'name': 'unknown format', 'encoding': 'unknown', 'bitrate': 'unknown'}
|
||||
item['formats'].append({
|
||||
'format_id': preset['id'],
|
||||
'url': url,
|
||||
|
|
Loading…
Reference in New Issue
Block a user