diff --git a/README.md b/README.md index c93ed28..1c88884 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ video working

-## Streaming community downloader +## StreamingCommunity Downloader

video working

@@ -59,15 +59,24 @@ You can change some behaviors by tweaking the configuration file. } ``` #### Options -| Key | Default Value | Description | Value Example | -|---------------------------|---------------|-----------------------------------------------------------------------------------------|--------------------------| -| root_path | videos | Path where the script will add movies and tv series folders. Do not put trailing slash. | media/streamingcommunity | -| movies_folder_name | Movies | The folder name where all the movies will be placed. Do not put trailing slash. | downloaded-movies | -| series_folder_name | Series | The folder name where all the TV Series will be placed. Do not put trailing slash. | mytvseries | -| download_subtitles | true | Whether or not you want all the found subtitles to be downloaded. | false | -| download_default_language | true | Whether or not you want to download only the default Italian audio language. | false | -| selected_language | English | If `"download_default_language"` is `False` the script will download this language | French | -| max_worker | 20 | How many workers will cooperate to download .ts file (High value may slow down your pc) | 30 | +| Key | Default Value | Description | Value Example | +|---------------------------|---------------|------------------------------------------------------------------------------------------|--------------------------| +| root_path | videos | *Path where the script will add movies and tv series folders. Do not put trailing slash. | media/streamingcommunity | +| movies_folder_name | Movies | The folder name where all the movies will be placed. Do not put trailing slash. | downloaded-movies | +| series_folder_name | Series | The folder name where all the TV Series will be placed. Do not put trailing slash. | mytvseries | +| download_subtitles | true | Whether or not you want all the found subtitles to be downloaded. | false | +| download_default_language | true | Whether or not you want to download only the default Italian audio language. | false | +| selected_language | English | If `"download_default_language"` is `False` the script will download this language | French | +| max_worker | 20 | How many workers will cooperate to download .ts file (High value may slow down your pc) | 30 | + +> [!IMPORTANT] +> If you're on **Windows** you'll need to use double black slashes. Otherwise, one slash is fine. + +#### Path examples: + +* Windows: `C:\\MyLibrary\\Folder` or `\\\\MyServer\\MyLibrary` (if you want to use a network folder). + +* Linux/MacOS: `Desktop/MyLibrary/Folder` ## Tutorial For a detailed walkthrough, refer to the [video tutorial](https://www.youtube.com/watch?v=Ok7hQCgxqLg&ab_channel=Nothing) diff --git a/Src/Lib/FFmpeg/my_m3u8.py b/Src/Lib/FFmpeg/my_m3u8.py index 5005668..f43842d 100644 --- a/Src/Lib/FFmpeg/my_m3u8.py +++ b/Src/Lib/FFmpeg/my_m3u8.py @@ -134,7 +134,7 @@ def download_subtitle(self, subtitle_path, content_name): # Subtitles convention: # Movie_Name.[Language_Code].vtt # Movie_Name.[Language_Code].forced.vtt # If forced - subtitle_name = "" + if "forced" in name_language.lower(): name_language = name_language.lower().replace("forced", "").strip() name_language = name_language.lower().replace("-", "").strip()