mirror of
https://github.com/tubearchivist/jellyfin.git
synced 2025-01-15 13:20:13 +00:00
make linter happy ;)
This commit is contained in:
parent
8026ba349d
commit
51e7613880
@ -155,7 +155,9 @@ class Show:
|
|||||||
print(f"[show][{showname}] indexing {len(new_episodes)} videos")
|
print(f"[show][{showname}] indexing {len(new_episodes)} videos")
|
||||||
seasons_created: list[str] = []
|
seasons_created: list[str] = []
|
||||||
for jf_ep in new_episodes:
|
for jf_ep in new_episodes:
|
||||||
youtube_id: str = os.path.basename(jf_ep["Path"].replace("\\","/")).split(".")[0]
|
youtube_id: str = os.path.basename(
|
||||||
|
jf_ep["Path"].replace("\\", "/")
|
||||||
|
).split(".")[0]
|
||||||
episode_handler = Episode(youtube_id, jf_ep["Id"])
|
episode_handler = Episode(youtube_id, jf_ep["Id"])
|
||||||
ta_video: TAVideo = episode_handler.get_ta_video()
|
ta_video: TAVideo = episode_handler.get_ta_video()
|
||||||
season_folder: str | None = self.create_season(ta_video, jf_ep)
|
season_folder: str | None = self.create_season(ta_video, jf_ep)
|
||||||
@ -186,7 +188,9 @@ class Show:
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
base: str = get_config()["ta_video_path"]
|
base: str = get_config()["ta_video_path"]
|
||||||
channel_folder = os.path.split(os.path.split(jf_ep["Path"].replace("\\","/"))[0])[-1]
|
channel_folder = os.path.split(
|
||||||
|
os.path.split(jf_ep["Path"].replace("\\", "/"))[0]
|
||||||
|
)[-1]
|
||||||
season_folder = os.path.join(base, channel_folder, expected_season)
|
season_folder = os.path.join(base, channel_folder, expected_season)
|
||||||
os.makedirs(season_folder)
|
os.makedirs(season_folder)
|
||||||
self._wait_for_season(expected_season)
|
self._wait_for_season(expected_season)
|
||||||
|
Loading…
Reference in New Issue
Block a user