Skip to content

Commit

Permalink
Windows Path Examples (#65)
Browse files Browse the repository at this point in the history
* style(subtitle_name): unused variable

* Add Windows backslash example

* Add Windows backslash example

* Spell correction
  • Loading branch information
Cohvir authored Mar 5, 2024
1 parent d925393 commit 98054e0
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
29 changes: 19 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion Src/Lib/FFmpeg/my_m3u8.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 98054e0

Please sign in to comment.