mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 06:45:00 +01:00
[cleanup] Add more ruff rules (#10149)
Authored by: seproDev Reviewed-by: bashonly <88596187+bashonly@users.noreply.github.com> Reviewed-by: Simon Sawicki <contact@grub4k.xyz>
This commit is contained in:
parent
db50f19d76
commit
add96eb9f8
915 changed files with 7027 additions and 7246 deletions
|
|
@ -80,7 +80,7 @@ class IndavideoEmbedIE(InfoExtractor):
|
|||
height = int_or_none(self._search_regex(
|
||||
r'\.(\d{3,4})\.mp4(?:\?|$)', video_url, 'height', default=None))
|
||||
if not height and len(filesh) == 1:
|
||||
height = int_or_none(list(filesh.keys())[0])
|
||||
height = int_or_none(next(iter(filesh.keys())))
|
||||
token = filesh.get(str(height))
|
||||
if token is None:
|
||||
continue
|
||||
|
|
@ -95,7 +95,7 @@ class IndavideoEmbedIE(InfoExtractor):
|
|||
timestamp = parse_iso8601(timestamp + ' +0200', ' ')
|
||||
|
||||
thumbnails = [{
|
||||
'url': self._proto_relative_url(thumbnail)
|
||||
'url': self._proto_relative_url(thumbnail),
|
||||
} for thumbnail in video.get('thumbnails', [])]
|
||||
|
||||
tags = [tag['title'] for tag in video.get('tags') or []]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue