* update fetchArtwork series/movie auto-detection
@see http://www.filebot.net/forums/viewtopic.php?f=4&t=1056
This commit is contained in:
parent
dfed363a9b
commit
a83e7f2286
|
@ -77,7 +77,8 @@
|
|||
^Seeding$
|
||||
^Seeds$
|
||||
^share$
|
||||
^Sort$
|
||||
^SORT$
|
||||
^SORTED$
|
||||
^Staging$
|
||||
^Storage$
|
||||
^System$
|
||||
|
@ -93,6 +94,7 @@
|
|||
^transfer$
|
||||
^transmission$
|
||||
^TV$
|
||||
^UNSORTED$
|
||||
^user$
|
||||
^utorrent$
|
||||
^vari$
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue