skip season folder if exists

This commit is contained in:
simon 2023-04-29 14:52:46 +07:00
parent 1ebdea7b13
commit 0e14c2b7c5
1 changed files with 2 additions and 1 deletions

View File

@ -125,7 +125,8 @@ class Show:
for year in all_expected:
if year not in all_existing:
path: str = os.path.join(base, channel_name, year)
os.mkdir(path)
if not os.path.exists(path):
os.mkdir(path)
folders.append(path)
self._wait_for_seasons()