Update app/download.py
This commit is contained in:
parent
4fc39ce369
commit
5565ba59bc
@ -158,8 +158,9 @@ class dropout():
|
|||||||
|
|
||||||
|
|
||||||
def show(show, season, specials=False, episode_start=None):
|
def show(show, season, specials=False, episode_start=None):
|
||||||
season_str = f"{int(season):02}" if not specials else "00"
|
server_season = int(season) - 2 if show == "Dimension 20" and int(season) > 30 else int(season)
|
||||||
directory = f"/tv/{show}/{'Specials' if specials else f'Season {season}'}"
|
season_str = f"{server_season:02}" if not specials else "00"
|
||||||
|
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(f'{DATA_DIR}/dropout.json', 'r') as json_file:
|
with open(f'{DATA_DIR}/dropout.json', 'r') as json_file:
|
||||||
@ -179,6 +180,7 @@ class dropout():
|
|||||||
r"|.*trailer.*"
|
r"|.*trailer.*"
|
||||||
r"|.*recap.*"
|
r"|.*recap.*"
|
||||||
r"|.*last.looks.*'"
|
r"|.*last.looks.*'"
|
||||||
|
r"|.*Explainer.*'"
|
||||||
)
|
)
|
||||||
match_filter = yt_dlp.utils.match_filter_func(filter_pattern)
|
match_filter = yt_dlp.utils.match_filter_func(filter_pattern)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user