mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 11:34:18 +00:00
Ignore errors during the download
This commit is contained in:
parent
0a3311b4e3
commit
92343183c5
2 changed files with 4 additions and 2 deletions
|
@ -13,7 +13,8 @@ class YtdlFile:
|
|||
"quiet": True, # Do not print messages to stdout.
|
||||
"noplaylist": True, # Download single video instead of a playlist if in doubt.
|
||||
"no_warnings": True, # Do not print out anything for warnings.
|
||||
"outtmpl": "%(title)s-%(id)s.%(ext)s" # Use the default outtmpl.
|
||||
"outtmpl": "%(title)s-%(id)s.%(ext)s", # Use the default outtmpl.
|
||||
"ignoreerrors": True # Ignore unavailable videos
|
||||
}
|
||||
|
||||
def __init__(self,
|
||||
|
|
|
@ -13,7 +13,8 @@ class YtdlInfo:
|
|||
"quiet": True, # Do not print messages to stdout.
|
||||
"noplaylist": True, # Download single video instead of a playlist if in doubt.
|
||||
"no_warnings": True, # Do not print out anything for warnings.
|
||||
"outtmpl": "%(title)s-%(id)s.%(ext)s" # Use the default outtmpl.
|
||||
"outtmpl": "%(title)s-%(id)s.%(ext)s", # Use the default outtmpl.
|
||||
"ignoreerrors": True # Ignore unavailable videos
|
||||
}
|
||||
|
||||
def __init__(self, info: typing.Dict[str, typing.Any]):
|
||||
|
|
Loading…
Reference in a new issue