Code: Select all
java -jar filebot-3.0-r1218-ttfix.jar -script linkrename.groovy /media/Gargant/Downloads/torrent/Grand.Designs.S11E14.WS.PDTV.XviD-C4TV/
Code: Select all
jonas@tvdator:~$ java -jar FileBot.jar -script linkrename.groovy /media/Gargant/Downloads/torrent/Grand.Designs.S11E14.WS.PDTV.XviD-C4TV/
[/media/Gargant/Downloads/torrent/Grand.Designs.S11E14.WS.PDTV.XviD-C4TV]
Linking from /media/Gargant/Downloads/torrent/Grand.Designs.S11E14.WS.PDTV.XviD-C4TV...
TV Show
Rename episodes using [TheTVDB]
Auto-detected query: [grand designs]
Failed to auto-select search result: [Grand Designs, Grand Designs Indoors, Grand Designs Trade Secrets, Grand Designs Live, Grand Designs Abroad, Grand Designs Australia, Grand Designs Today]
Failed to fetch episode data: [grand designs]
Exception: Unable to match files to episode data
Done ヾ(@⌒ー⌒@)ノ
Here's the output when doing it "non-strict" then.
Code: Select all
java -jar filebot-3.0-r1218-ttfix.jar -non-strict -script linkrename.groovy /media/Gargant/Downloads/torrent/Grand.Designs.S11E14.WS.PDTV.XviD-C4TV/
Code: Select all
jonas@tvdator:~$ java -jar FileBot.jar -script linkrename.groovy -non-strict /media/Gargant/Downloads/torrent/Grand.Designs.S11E14.WS.PDTV.XviD-C4TV/
[/media/Gargant/Downloads/torrent/Grand.Designs.S11E14.WS.PDTV.XviD-C4TV]
Linking from /media/Gargant/Downloads/torrent/Grand.Designs.S11E14.WS.PDTV.XviD-C4TV...
^Cjonas@tvdator:~$ java -jar FileBot.jar -script linkrename.groovy -non-strict /media/Gargant/Downloads/torrent/Grand.Designs.S11E14.WS.PDTV.XviD-C4TV/
[/media/Gargant/Downloads/torrent/Grand.Designs.S11E14.WS.PDTV.XviD-C4TV]
Linking from /media/Gargant/Downloads/torrent/Grand.Designs.S11E14.WS.PDTV.XviD-C4TV...
TV Show
Rename episodes using [TheTVDB]
Auto-detected query: [grand designs]
Fetching episode data for [Grand Designs]
Fetching episode data for [Grand Designs Live]
Fetching episode data for [Grand Designs Today]
Fetching episode data for [Grand Designs Abroad]
Fetching episode data for [Grand Designs Indoors]
Fetching episode data for [Grand Designs Australia]
Fetching episode data for [Grand Designs Trade Secrets]
Stripping invalid characters from new path: /media/Gargant/Film/TV-Serier/Grand Designs/Season 3/Grand Designs - S03E14 - Revisited - Cumbria: The Underground House
[HARDLINK] Rename [/media/Gargant/Downloads/torrent/Grand.Designs.S11E14.WS.PDTV.XviD-C4TV/grand.designs.s11e14.avi] to [/media/Gargant/Film/TV-Serier/Grand Designs/Season 3/Grand Designs - S03E14 - Revisited - Cumbria The Underground House.avi]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
Any assistance would be most welcome. Filebot is really awesome but this issue is confusing me and is preventing total automation when downloads complete.
Here's some other information if that'll help:
Version: 3.0-r1218-ttfix
Contents of linkrename.groovy:
Code: Select all
// Personalized settings and format
def mediaDir = "/media/Gargant/Film/"
def movieDir = mediaDir + "Film"
def tvDir = mediaDir + "TV-Serier"
def tvFormat = "/media/Gargant/Film/TV-Serier/{n}/{episode.special ? 'Special' : 'Season '+s}/{n} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replacePart(' Part \$1')}"
def movieFormat = "/media/Gargant/Film/Filmer/{n} ({y})/{fn}"
println args
/*
* Takes the download directory as argument
*/
args.each {
println "Linking from $it..."
it.getFiles{ it.isVideo() && !(it.path =~ /\b(?i:sample|trailer|extras|deleted.scenes|music.video|scrapbook)\b/) }.each {
def tvs = detectSeriesName(it)
def mov = detectMovie(it, false)
// DECIDE EPISODE VS MOVIE (IF NOT CLEAR)
if (tvs && mov) {
if (it.name =~ "(?i:$tvs - .+)" || parseEpisodeNumber(it.name) || parseDate(it.name)) {
//println "Exclude Movie: $mov"
mov = null
} else if (detectMovie(it, true)) {
//println "Exclude Series: $tvs"
tvs = null
}
}
def fname = null
if (tvs) {
println "TV Show"
fname = rename(file:it, format:tvFormat, db:'TheTVDB', action:'hardlink')
} else {
println "Movie"
fname = rename(file:it, format:movieFormat, db:'TheMovieDB', action:'hardlink')
}
if (fname) {
//println "Getting subtitles..."
//getMissingSubtitles(file:fname, db:'opensubtitles')
}
}
}