1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Ignore errors during the download

This commit is contained in:
Steffo 2019-08-02 19:23:36 +02:00
parent 0a3311b4e3
commit 92343183c5
2 changed files with 4 additions and 2 deletions

View file

@ -13,7 +13,8 @@ class YtdlFile:
"quiet": True, # Do not print messages to stdout. "quiet": True, # Do not print messages to stdout.
"noplaylist": True, # Download single video instead of a playlist if in doubt. "noplaylist": True, # Download single video instead of a playlist if in doubt.
"no_warnings": True, # Do not print out anything for warnings. "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, def __init__(self,

View file

@ -13,7 +13,8 @@ class YtdlInfo:
"quiet": True, # Do not print messages to stdout. "quiet": True, # Do not print messages to stdout.
"noplaylist": True, # Download single video instead of a playlist if in doubt. "noplaylist": True, # Download single video instead of a playlist if in doubt.
"no_warnings": True, # Do not print out anything for warnings. "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]): def __init__(self, info: typing.Dict[str, typing.Any]):