catch all exceptions on make_mkv

This commit is contained in:
Philipp Rauch 2020-10-05 20:08:52 +02:00
parent 04189513be
commit 20f669fef5

View file

@ -54,7 +54,7 @@ def get_episod_info(season_id, name):
def build_filename(name: str, titel_dict: dict):
if titel_dict == {}:
return None
if titel_dict['episod'].isdigit():
q if titel_dict['episod'].isdigit():
filename = '{name} S{season:>02}E{episod:>02} {title}'.format(
name=name, **titel_dict)
else:
@ -170,7 +170,7 @@ def download_files(episodes, dryrun=False):
continue
try:
make_mkv(item)
except FileNotFoundError:
except:
logging.error("could not build mkv.")
temp.cleanup()