mirror of
https://github.com/Arrowar/StreamingCommunity.git
synced 2025-06-07 12:05:35 +00:00
Fix os "...". directory in series name path
This commit is contained in:
parent
9aea0328b4
commit
cce4dd7a6b
@ -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)
|
||||
|
||||
|
@ -36,7 +36,8 @@ special_chars_to_remove = [
|
||||
';',
|
||||
':',
|
||||
',',
|
||||
'?'
|
||||
'?',
|
||||
'.'
|
||||
]
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user