Make AMC organize only finished torrents.

Support for Windows users
Post Reply
Arion
Posts: 25
Joined: 29 Apr 2016, 03:47

Make AMC organize only finished torrents.

Post by Arion »

So I'm downloading 2/3 torrents at once. I'm using qBittorrent and have it execute the AMC script once a torrent is finished downloading.

The problem is, in one of my TV Series torrents, 2-5 files are finished downloading, and when I'm downloading a single episode/movie separately, once it finishes downloading, filebot runs the AMC script and renames & organizes the completed files in the other torrent's folder as well.

This is my tweaked AMC Script:

Code: Select all

filebot -script fn:amc --output "E:/" --action test --conflict skip -non-strict "E:/New" --log-file amc.log --def unsorted=y subtitles=en clean=y "ut_title=%N" "seriesFormat=/TV Shows/{n}/{'Season '+s}/{s00e00} - {t }"
NOTE: I've set --action test for the dry run.

Here's my log file output-

Code: Select all

Run script [fn:amc] at [Fri Apr 29 09:12:02 IST 2016]
Parameter: unsorted = y
Parameter: subtitles = en
Parameter: clean = y
Parameter: ut_title = Marvels.Agents.of.S.H.I.E.L.D.S03E18.720p.HDTV.x265.ShAaNiG.mkv
Parameter: seriesFormat = /TV Shows/{n}/{'Season '+s}/{s00e00} - {t }
Argument: E:\New
Ignore hidden folder: E:\New\Broadchurch Series 1 Complete\.unwanted
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x01.720p_hdtv_x264-tla.eng.srt
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x01.720p_hdtv_x264-tla.mkv
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x02.720p_hdtv_x264-fov.eng.srt
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x02.720p_hdtv_x264-fov.mkv
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x03.720p_hdtv_x264-fov.eng.srt
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x03.720p_hdtv_x264-fov.mkv
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x04.720p_hdtv_x264-fov.eng.srt
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x04.720p_hdtv_x264-fov.mkv
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x05.720p_hdtv_x264-fov.eng.srt
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x05.720p_hdtv_x264-fov.mkv
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x06.720p_hdtv_x264-bia.eng.srt
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x06.720p_hdtv_x264-bia.mkv
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x07.720p_hdtv_x264-fov.eng.srt
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x07.720p_hdtv_x264-fov.mkv
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x08.720p_hdtv_x264-fov.eng.srt
Input: E:\New\Broadchurch Series 1 Complete\broadchurch.1x08.720p_hdtv_x264-fov.mkv
Input: E:\New\Broadchurch.Season.2.Complete.720p.HDTV.x264-SCENE\Broadchurch.S02E03.720p.HDTV.x264-TLA.mkv
Input: E:\New\Marvels.Agents.of.S.H.I.E.L.D.S03E18.720p.HDTV.x265.ShAaNiG.mkv
Exclude: E:\New\.Log.lnk
Exclude: E:\New\Broadchurch Series 1 Complete\broadchurch.extra-scene-dannys-wake-480p.webm
Exclude: E:\New\chicks.bat
Group: [tvs:broadchurch] => [broadchurch.1x01.720p_hdtv_x264-tla.eng.srt, broadchurch.1x01.720p_hdtv_x264-tla.mkv, broadchurch.1x02.720p_hdtv_x264-fov.eng.srt, broadchurch.1x02.720p_hdtv_x264-fov.mkv, broadchurch.1x03.720p_hdtv_x264-fov.eng.srt, broadchurch.1x03.720p_hdtv_x264-fov.mkv, broadchurch.1x04.720p_hdtv_x264-fov.eng.srt, broadchurch.1x04.720p_hdtv_x264-fov.mkv, broadchurch.1x05.720p_hdtv_x264-fov.eng.srt, broadchurch.1x05.720p_hdtv_x264-fov.mkv, broadchurch.1x06.720p_hdtv_x264-bia.eng.srt, broadchurch.1x06.720p_hdtv_x264-bia.mkv, broadchurch.1x07.720p_hdtv_x264-fov.eng.srt, broadchurch.1x07.720p_hdtv_x264-fov.mkv, broadchurch.1x08.720p_hdtv_x264-fov.eng.srt, broadchurch.1x08.720p_hdtv_x264-fov.mkv, Broadchurch.S02E03.720p.HDTV.x264-TLA.mkv]
Group: [tvs:marvels agents of s h i e l d] => [Marvels.Agents.of.S.H.I.E.L.D.S03E18.720p.HDTV.x265.ShAaNiG.mkv]
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
No matching subtitles found: E:\New\Broadchurch.Season.2.Complete.720p.HDTV.x264-SCENE\Broadchurch.S02E03.720p.HDTV.x264-TLA.mkv
Rename episodes using [TheTVDB]
Auto-detected query: [broadchurch]
Fetching episode data for [Broadchurch]
Auto-detected query: [Broadchurch]
Fetching episode data for [Broadchurch]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x01.720p_hdtv_x264-tla.mkv] to [E:\TV Shows\Broadchurch\Season 1\S01E01 - Episode 1.mkv]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x02.720p_hdtv_x264-fov.mkv] to [E:\TV Shows\Broadchurch\Season 1\S01E02 - Episode 2.mkv]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x03.720p_hdtv_x264-fov.mkv] to [E:\TV Shows\Broadchurch\Season 1\S01E03 - Episode 3.mkv]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x04.720p_hdtv_x264-fov.mkv] to [E:\TV Shows\Broadchurch\Season 1\S01E04 - Episode 4.mkv]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x05.720p_hdtv_x264-fov.mkv] to [E:\TV Shows\Broadchurch\Season 1\S01E05 - Episode 5.mkv]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x06.720p_hdtv_x264-bia.mkv] to [E:\TV Shows\Broadchurch\Season 1\S01E06 - Episode 6.mkv]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x07.720p_hdtv_x264-fov.mkv] to [E:\TV Shows\Broadchurch\Season 1\S01E07 - Episode 7.mkv]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x08.720p_hdtv_x264-fov.mkv] to [E:\TV Shows\Broadchurch\Season 1\S01E08 - Episode 8.mkv]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x01.720p_hdtv_x264-tla.eng.srt] to [E:\TV Shows\Broadchurch\Season 1\S01E01 - Episode 1.srt]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x02.720p_hdtv_x264-fov.eng.srt] to [E:\TV Shows\Broadchurch\Season 1\S01E02 - Episode 2.srt]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x03.720p_hdtv_x264-fov.eng.srt] to [E:\TV Shows\Broadchurch\Season 1\S01E03 - Episode 3.srt]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x04.720p_hdtv_x264-fov.eng.srt] to [E:\TV Shows\Broadchurch\Season 1\S01E04 - Episode 4.srt]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x05.720p_hdtv_x264-fov.eng.srt] to [E:\TV Shows\Broadchurch\Season 1\S01E05 - Episode 5.srt]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x06.720p_hdtv_x264-bia.eng.srt] to [E:\TV Shows\Broadchurch\Season 1\S01E06 - Episode 6.srt]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x07.720p_hdtv_x264-fov.eng.srt] to [E:\TV Shows\Broadchurch\Season 1\S01E07 - Episode 7.srt]
[TEST] Rename [E:\New\Broadchurch Series 1 Complete\broadchurch.1x08.720p_hdtv_x264-fov.eng.srt] to [E:\TV Shows\Broadchurch\Season 1\S01E08 - Episode 8.srt]
[TEST] Rename [E:\New\Broadchurch.Season.2.Complete.720p.HDTV.x264-SCENE\Broadchurch.S02E03.720p.HDTV.x264-TLA.mkv] to [E:\TV Shows\Broadchurch\Season 2\S02E03 - Episode 3.mkv]
Processed 17 files
Get [English] subtitles for 1 files
Looking up subtitles by hash via OpenSubtitles
Matched [Marvels.Agents.of.S.H.I.E.L.D.S03E18.720p.HDTV.x265.ShAaNiG.mkv] to [Marvels.Agents.of.S.H.I.E.L.D..S03E18.720p.HDTV.KiLLERS.en.] via hash
Fetching [Marvels.Agents.of.S.H.I.E.L.D..S03E18.720p.HDTV.KiLLERS.en..srt]
Export [Marvels.Agents.of.S.H.I.E.L.D..S03E18.720p.HDTV.KiLLERS.en..srt] as: SubRip / UTF-8
Writing [Marvels.Agents.of.S.H.I.E.L.D..S03E18.720p.HDTV.KiLLERS.en..srt] to [Marvels.Agents.of.S.H.I.E.L.D.S03E18.720p.HDTV.x265.ShAaNiG.eng.srt]
Rename episodes using [TheTVDB]
Auto-detected query: [Marvels Agents of S H I E L D]
Fetching episode data for [Marvel's Agents of S.H.I.E.L.D.]
Auto-detected query: [Marvels Agents of S H I E L D]
Fetching episode data for [Marvel's Agents of S.H.I.E.L.D.]
Stripping invalid characters from new path: /TV Shows/Marvel's Agents of S.H.I.E.L.D./Season 3/S03E18 - The Singularity
Stripping invalid characters from new path: /TV Shows/Marvel's Agents of S.H.I.E.L.D./Season 3/S03E18 - The Singularity
Skipped [E:\New\Marvels.Agents.of.S.H.I.E.L.D.S03E18.720p.HDTV.x265.ShAaNiG.mkv] because [E:\TV Shows\Marvel's Agents of S.H.I.E.L.D\Season 3\S03E18 - The Singularity.mkv] already exists
Skipped [E:\New\Marvels.Agents.of.S.H.I.E.L.D.S03E18.720p.HDTV.x265.ShAaNiG.eng.srt] because [E:\TV Shows\Marvel's Agents of S.H.I.E.L.D\Season 3\S03E18 - The Singularity.srt] already exists
Processed 2 files
Done ヾ(@⌒ー⌒@)ノ
NOTE: I only want the Agents of SHIELD file renamed/organized but it's doing it for the incomplete Broadchurch series folder as well.

So how do I make filebot rename only the torrent which has just finished downloading and exclude the rest of the incomplete torrents?

UPDATE: HEY! I figured this out! I used the below script and now it only renames files which are recently downloaded.

Code: Select all

filebot -script fn:amc --output "E:/" --action duplicate --conflict skip -non-strict --log-file amc.log --def excludeList=E:/New/amc.excludes unsorted=y clean=y subtitles=en "ut_dir=%F" "ut_kind=multi" "ut_title=%N" "ut_label=%L" --def "seriesFormat=/TV Shows/{n}/{'Season '+s}/{s00e00} - {t }"
It seems giving it an input folder was unnecessary for qBittorrent.

-ARION
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Make AMC organize only finished torrents.

Post by rednoah »

You should set up your torrent client to only call filebot on newly completed files. If you follow the qBittorrent instructions then this shouldn't be an issue.
:idea: Please read the FAQ and How to Request Help.
Arion
Posts: 25
Joined: 29 Apr 2016, 03:47

Re: Make AMC organize only finished torrents.

Post by Arion »

Hey! if you read my post again, I've resolved it! Thanks though!
Post Reply