Fix os "...". directory in series name path

This commit is contained in:
Ghost 2024-05-04 09:12:16 +02:00
parent 9aea0328b4
commit cce4dd7a6b
2 changed files with 3 additions and 2 deletions

View File

@ -116,7 +116,7 @@ def donwload_video(tv_name: str, index_season_selected: int, index_episode_selec
episode_id = video_source.obj_episode_manager.episodes[index_episode_selected - 1].id
# Define filename and path for the downloaded video
mp4_name = remove_special_characters(f"{map_episode_title(tv_name,video_source.obj_episode_manager.episodes[index_episode_selected - 1],index_season_selected)}.mp4")
mp4_name = f"{transliterate(remove_special_characters(map_episode_title(tv_name,video_source.obj_episode_manager.episodes[index_episode_selected - 1],index_season_selected)))}.mp4"
mp4_path = remove_special_characters(os.path.join(ROOT_PATH, SERIES_FOLDER, tv_name, f"S{index_season_selected}"))
os.makedirs(mp4_path, exist_ok=True)

View File

@ -36,7 +36,8 @@ special_chars_to_remove = [
';',
':',
',',
'?'
'?',
'.'
]