* update fetchArtwork series/movie auto-detection

@see http://www.filebot.net/forums/viewtopic.php?f=4&t=1056
This commit is contained in:
Reinhard Pointner 2013-11-01 11:21:47 +00:00
parent dfed363a9b
commit a83e7f2286
2 changed files with 6 additions and 3 deletions

View File

@ -77,7 +77,8 @@
^Seeding$
^Seeds$
^share$
^Sort$
^SORT$
^SORTED$
^Staging$
^Storage$
^System$
@ -93,6 +94,7 @@
^transfer$
^transmission$
^TV$
^UNSORTED$
^user$
^utorrent$
^vari$

View File

@ -202,7 +202,7 @@ groups.each{ group, files ->
dest.mapByFolder().each{ dir, fs ->
_log.finest "Fetching artwork for $dir from TheTVDB"
def sxe = fs.findResult{ eps -> parseEpisodeNumber(eps) }
def options = TheTVDB.search(config.name, _args.locale)
def options = TheTVDB.search(detectSeriesName(fs), _args.locale)
if (options.isEmpty()) {
_log.warning "TV Series not found: $config.name"
return
@ -222,7 +222,8 @@ groups.each{ group, files ->
if (dest && artwork) {
dest.mapByFolder().each{ dir, fs ->
_log.finest "Fetching artwork for $dir from TheMovieDB"
fetchMovieArtworkAndNfo(dir, group.mov, fs.findAll{ it.isVideo() }.sort{ it.length() }.reverse().findResult{ it }, backdrops)
def movieFile = fs.findAll{ it.isVideo() }.sort{ it.length() }.reverse().findResult{ it }
fetchMovieArtworkAndNfo(dir, detectMovie(movieFile), movieFile, backdrops)
}
}
if (dest == null && failOnError) {