* fix issues related to fetching missing artwork ONLY

This commit is contained in:
Reinhard Pointner 2012-12-28 16:55:44 +00:00
parent e090e76afd
commit 1386952ef8
2 changed files with 4 additions and 4 deletions

View File

@ -8,9 +8,9 @@
include("lib/htpc")
args.eachMediaFolder { dir ->
args.eachMediaFolder{ dir ->
// fetch only missing artwork by default
if (_args.conflict == "skip" && dir.hasFile{it =~ /movie.nfo$/} && dir.hasFile{it =~ /folder.jpg$/} && dir.hasFile{it =~ /backdrop.jpg$/}) {
if (_args.conflict == "skip" && dir.hasFile{it =~ /movie.nfo$/} && dir.hasFile{it =~ /poster.jpg$/} && dir.hasFile{it =~ /fanart.jpg$/}) {
println "Skipping $dir"
return
}

View File

@ -8,9 +8,9 @@
include("lib/htpc")
args.eachMediaFolder { dir ->
args.eachMediaFolder{ dir ->
// fetch only missing artwork by default
if (_args.conflict == "skip" && dir.hasFile{it =~ /tvshow.nfo$/} && dir.hasFile{it =~ /folder.jpg$/} && dir.hasFile{it =~ /banner.jpg$/}) {
if (_args.conflict == "skip" && [dir, dir.dir].find{ it.hasFile{it =~ /banner.jpg$/} }) {
println "Skipping $dir"
return
}