catch all exceptions on make_mkv
This commit is contained in:
parent
04189513be
commit
20f669fef5
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
|
@ -54,7 +54,7 @@ def get_episod_info(season_id, name):
|
||||||
def build_filename(name: str, titel_dict: dict):
|
def build_filename(name: str, titel_dict: dict):
|
||||||
if titel_dict == {}:
|
if titel_dict == {}:
|
||||||
return None
|
return None
|
||||||
if titel_dict['episod'].isdigit():
|
q if titel_dict['episod'].isdigit():
|
||||||
filename = '{name} S{season:>02}E{episod:>02} {title}'.format(
|
filename = '{name} S{season:>02}E{episod:>02} {title}'.format(
|
||||||
name=name, **titel_dict)
|
name=name, **titel_dict)
|
||||||
else:
|
else:
|
||||||
|
|
@ -170,7 +170,7 @@ def download_files(episodes, dryrun=False):
|
||||||
continue
|
continue
|
||||||
try:
|
try:
|
||||||
make_mkv(item)
|
make_mkv(item)
|
||||||
except FileNotFoundError:
|
except:
|
||||||
logging.error("could not build mkv.")
|
logging.error("could not build mkv.")
|
||||||
temp.cleanup()
|
temp.cleanup()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue