mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-06 06:45:00 +01:00
[cleanup] Lint and misc cleanup
This commit is contained in:
parent
db4678e448
commit
46d09f8707
11 changed files with 46 additions and 43 deletions
|
|
@ -68,7 +68,7 @@ class ManyVidsIE(InfoExtractor):
|
|||
)
|
||||
|
||||
def txt_or_none(s, default=None):
|
||||
return (s.strip() or default) if isinstance(s, compat_str) else default
|
||||
return (s.strip() or default) if isinstance(s, str) else default
|
||||
|
||||
uploader = txt_or_none(info.get('data-meta-author'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue