Skip to content

Commit

Permalink
Merge pull request #4 from Rouzax/Rewrite-Beta
Browse files Browse the repository at this point in the history
Rewrite beta
  • Loading branch information
Rouzax authored May 17, 2024
2 parents 39d35ae + d284d0b commit 9e1fc67
Show file tree
Hide file tree
Showing 28 changed files with 2,595 additions and 1,203 deletions.
942 changes: 942 additions & 0 deletions LanguageCodes.json

Large diffs are not rendered by default.

31 changes: 12 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,20 @@ Only 1 instance of the script will be running and if other downloads complete du

Script will do the following:
1. Unpack or copy to Temporary Processing folder defined in config.json (copy from config-sample.json)
2. If torrent label is TV show as defined in JSON Label
- Start [Subliminal](https://github.com/Diaoul/subliminal) to see if there are missing subtitles we can download
- Will strip all srt subtitle languages not in JSON WantedLanguages
- Extract all SRT subtitles in JSON WantedLanguages
- Rename all srt files from alpha3 to alpha2 codes as defined in JSON LanguageCodes
- File.3.en.srt
- File.en.srt
- File.nl.srt
2. If torrent label is TV show as defined in config.json Label
- Will strip all srt subtitle languages not in config.json WantedLanguages from MKV
- Extract all SRT subtitles in config.json WantedLanguages from MKV
- Will try to download missing subs from OpenSubtitles.com
- Renames all srt files from ISO 639-2 (3 letter codes) to ISO 639-1 (2 letter codes) as defined in LanguageCodes.json
- Clean up the srt subtitles using [Subtitle Edit](https://github.com/SubtitleEdit/subtitleedit)
- Remove Hearing Impaired.
- Fix Common errors.
- Start Medusa Import
3. If torrent label is Movie as defined in JSON Label
- Start [Subliminal](https://github.com/Diaoul/subliminal) to see if there are missing subtitles we can download
- Will strip all srt subtitle languages not in JSON WantedLanguages
- Extract all SRT subtitles in JSON WantedLanguages
- Rename all srt files from alpha3 to alpha2 codes as defined in JSON LanguageCodes
- File.3.en.srt
- File.en.srt
- File.nl.srt
3. If torrent label is Movie as defined in config.json Label
- Will strip all srt subtitle languages not in config.json WantedLanguages from MKV
- Extract all SRT subtitles in config.json WantedLanguages from MKV
- Will try to download missing subs from OpenSubtitles.com
- Renames all srt files from ISO 639-2 (3 letter codes) to ISO 639-1 (2 letter codes) as defined in LanguageCodes.json
- Clean up the srt subtitles using [Subtitle Edit](https://github.com/SubtitleEdit/subtitleedit)
- Remove Hearing Impaired.
- Fix Common errors.
Expand Down Expand Up @@ -55,7 +49,7 @@ powershell "C:\Scripts\TorrentScript\TorrentScript.ps1" -DownloadPath '%R' -Down
Other important setting is that for each torrent a new Folder needs to be created.
![qBittorrent Folder settings page](https://i.imgur.com/Uq6bOBP.png)

Within Radarr you need to set up Remote Path Mapping to an emtpy folder, otherwise Radarr will pick up to downloads directly from qbittorent
Within Radarr you need to set up Remote Path Mapping to an empty folder, otherwise Radarr will pick up to downloads directly from qbittorent

Example:
- qBittorent root download path = C:\Torrent\Downloads\
Expand All @@ -69,5 +63,4 @@ The following external tools need to be available and the path defined in the `c
- [WinRar](https://www.rarlab.com/download.htm)
- [MKVMerge](https://mkvtoolnix.download/)
- [MKVExtract](https://mkvtoolnix.download/)
- [Subtitle Edit](https://github.com/SubtitleEdit/subtitleedit)
- [Subliminal](https://github.com/Diaoul/subliminal)
- [Subtitle Edit](https://github.com/SubtitleEdit/subtitleedit)
Loading

0 comments on commit 9e1fc67

Please sign in to comment.