Windows Path Examples (#65)

* style(subtitle_name): unused variable

* Add Windows backslash example

* Add Windows backslash example

* Spell correction
This commit is contained in:
Cohvir 2024-03-05 18:25:41 +01:00 committed by GitHub
parent d925393716
commit 98054e0471
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 20 additions and 11 deletions

View File

@ -2,7 +2,7 @@
<img src="Src/Assets/min_logo.png" style="max-width: 55%;" alt="video working" />
</p>
## Streaming community downloader
## StreamingCommunity Downloader
<p align="center">
<img src="Src/Assets/run.gif" style="max-width: 55%;" alt="video working" />
</p>
@ -60,8 +60,8 @@ 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 |
|---------------------------|---------------|------------------------------------------------------------------------------------------|--------------------------|
| 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 |
@ -69,6 +69,15 @@ You can change some behaviors by tweaking the configuration file.
| 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)

View File

@ -134,7 +134,7 @@ class M3U8_Parser:
# 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()