* 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$ ^Seeding$
^Seeds$ ^Seeds$
^share$ ^share$
^Sort$ ^SORT$
^SORTED$
^Staging$ ^Staging$
^Storage$ ^Storage$
^System$ ^System$
@ -93,6 +94,7 @@
^transfer$ ^transfer$
^transmission$ ^transmission$
^TV$ ^TV$
^UNSORTED$
^user$ ^user$
^utorrent$ ^utorrent$
^vari$ ^vari$

View File

@ -202,7 +202,7 @@ groups.each{ group, files ->
dest.mapByFolder().each{ dir, fs -> dest.mapByFolder().each{ dir, fs ->
_log.finest "Fetching artwork for $dir from TheTVDB" _log.finest "Fetching artwork for $dir from TheTVDB"
def sxe = fs.findResult{ eps -> parseEpisodeNumber(eps) } 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()) { if (options.isEmpty()) {
_log.warning "TV Series not found: $config.name" _log.warning "TV Series not found: $config.name"
return return
@ -222,7 +222,8 @@ groups.each{ group, files ->
if (dest && artwork) { if (dest && artwork) {
dest.mapByFolder().each{ dir, fs -> dest.mapByFolder().each{ dir, fs ->
_log.finest "Fetching artwork for $dir from TheMovieDB" _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) { if (dest == null && failOnError) {