Parameter: ut_kind = multi
Parameter: ut_dir = D:\testdata\AMC-TEST
Parameter: ut_title = AMC-TEST
Parameter: clean = y
Input: D:\testdata\AMC-TEST\House.Of.Cards.2013.S01E03.720p.HDTV.x264-EVOLVE\hoc.s01e03.720p.evolve.mkv
Group: [tvs:House Of Cards 2013] => [hoc.s01e03.720p.evolve.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [House Of Cards 2013, hoc]
Fetching episode data for [Hockey Games]
Fetching episode data for [House of Cards (2013)]
Fetching episode data for [Hockey: A People's History]
Fetching episode data for [House of Cards]
[COPY] Rename [D:\testdata\AMC-TEST\House.Of.Cards.2013.S01E03.720p.HDTV.x264-EVOLVE\hoc.s01e03.720p.evolve.mkv] to [D:\output\TV Shows\House of Cards (US)\Season 01\House of Cards - S01E03 - Chapter 3.mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
PS: You messed it up when you extract the file directly into that temp folder, thus losing key information.
yep i figured out that what was causing the problem...
the fact that i set output folder for the extract...
i'll fixed that
i did that so i could maintain the script progress incase some of the file moves have failed figured it will be less of a hassle to look into one dir instead of all torrent's dirs to see which one failed if any...
def groups = input.groupBy{ f ->
// skip auto-detection if possible
if (forceIgnore(f))
return []
if (f.isAudio() && !f.isVideo()) // PROCESS MUSIC FOLDER BY FOLDER
return [music: f.dir.name]
if (forceMovie(f))
return [mov: detectMovie(f, false)]
if (forceSeries(f))
return [tvs: detectSeriesName(f) ?: detectSeriesName(ut_dir)]
if (forceAnime(f))
return [anime: detectSeriesName(f) ?: detectSeriesName(f.dir.listFiles{ it.isVideo() })]
this will force it look at the torrent dir no? instead of all files in current dir?
Nope, this is preprocessing. Grouping files by likely category and item. If anything you wanna look at rename(file: files, ...) later own where renaming actually happens. As you can see it's not passing in the query parameter but assuming that rename(...) itself will figure it out, especially since files are already grouped which makes matching more reliable for each rename group.
Why not preserve the foldername or ut_title in your temp folder? e.g. extract(..., output:"path/to/temp/${ut_title}")
Read archive [hoc.s01e03.720p.evolve.rar] to [C:\Users\Maor\Videos]
Extracting files [C:\Users\Maor\Videos\hoc.s01e03.720p.evolve.mkv]
Input: C:\Users\Maor\Videos\hoc.s01e03.720p.evolve.mkv
Group: [tvs:House Of Cards 2013] => [hoc.s01e03.720p.evolve.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [evolve, hoc]
Fetching episode data for [Evolve]
Fetching episode data for [Revolver]
Fetching episode data for [Hockey Games]
Fetching episode data for [Hockey: A People's History]
[MOVE] Rename [C:\Users\Maor\Videos\hoc.s01e03.720p.evolve.mkv] to [C:\Users\Maor\Videos\TV Sh
ows\Evolve\Season 1\hoc.s01e03.720p.evolve.mkv]
rednoah wrote:Nope, this is preprocessing. Grouping files by likely category and item. If anything you wanna look at rename(file: files, ...) later own where renaming actually happens. As you can see it's not passing in the query parameter but assuming that rename(...) itself will figure it out, especially since files are already grouped which makes matching more reliable for each rename group.
Why not preserve the foldername or ut_title in your temp folder? e.g. extract(..., output:"path/to/temp/${ut_title}")
i did what you suggested.. it worked well except for the part which i still have House.Of.Cards.2013.S01E03.720p.HDTV.x264-EVOLVE in my temp dir...