Update download.py
This commit is contained in:
parent
383e5c8fc9
commit
47790273a0
@ -156,9 +156,8 @@ class dropout():
|
|||||||
|
|
||||||
|
|
||||||
def show(show, season, specials=False, episode_start=None):
|
def show(show, season, specials=False, episode_start=None):
|
||||||
server_season = int(season) - 2 if show == "Dimension 20" and int(season) > 30 else int(season)
|
season_str = f"{int(season):02}" if not specials else "00"
|
||||||
season_str = f"{server_season:02}" if not specials else "00"
|
directory = f"/tv/{show}/{'Specials' if specials else f'Season {season}'}"
|
||||||
directory = f"/tv/{show}/{'Specials' if specials else f'Season {server_season}'}"
|
|
||||||
os.makedirs(directory, exist_ok=True)
|
os.makedirs(directory, exist_ok=True)
|
||||||
|
|
||||||
with open('/data/dropout.json', 'r') as json_file:
|
with open('/data/dropout.json', 'r') as json_file:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user