"Failed To Detect Query for files" Error

Any questions? Need some help?
Post Reply
hookshot
Posts: 5
Joined: 21 Mar 2014, 20:24

"Failed To Detect Query for files" Error

Post by hookshot »

I have an automated script set up to automatically move files from a server to local now. It works correctly for many of my shows - Space Dandy and arpeggio of blue steel both worked correctly. When I call the script, it correctly moves Space Dandy and Arpeggio of Blue steel, but the show Noragami isn't recognized.

I receive a "Failed to detect query for files: ...Noragmi -12 [720p].mkv" error, where I don't receive this for any other files. I also see
Auto-detected query: []

rather than:
Auto-detected query: [Noragami]

When I call my script is when I get the issue:

Code: Select all

filebot -script "%scriptFile%" -non-strict > "%logFile%"

Where the script is:

Code: Select all

// ignore part files
def incomplete(f) { f.name =~ /[.]part/ }

def fileList = new ArrayList<File>()

/*
 * Determine which files may be renamed
 */
animeStartDir.getFolders{ !it.hasFile{ incomplete(it) } && it.hasFile{ it.isVideo() } }.each{ dir ->
	println "Processing $dir"
	fileList.add(dir.listFiles{ it.isVideo() })
}

// Rename the files able to be renamed
rename(file:fileList, db:'TheTVDB', format:animeFormat)
This is using theTVDB, and when I search for Noragami, I get 1 show id, but multiple languages (The first to appear isn't english, but french) but even when I set --lang en, it doesn't find it either. When I go through the GUI to rename the file, it forces me to enter the show name as well. Curious as to the cause, or if you have any tips.
User avatar
rednoah
The Source
Posts: 23933
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: "Failed To Detect Query for files" Error

Post by rednoah »

Online search fails and it's not popular enough to be in filebots internal index. Bad luck if you really need TheTVDB for this one right now.

Works fine with AniDB though:

Code: Select all

Rename episodes using [AniDB]
Auto-detected query: [Noragami]
Fetching episode data for [Noragami]
Fetching episode data for [Noragami OAD]
[TEST] Rename [D:\workspace\testdata\AMC-TEST\Anime\Noragami - 12 [720p].mkv] to [D:\workspace\output\Anime\Noragami\Noragami - 12 - A Scrap of a Memory.mkv]
Processed 1 files
:idea: Please read the FAQ and How to Request Help.
hookshot
Posts: 5
Joined: 21 Mar 2014, 20:24

Re: "Failed To Detect Query for files" Error

Post by hookshot »

Alright, thanks again, and thank you for filebot :)

I knew that it worked with AniDB, but it doesn't attach a season like I'd like. I've considered using just S01 in the format string, but it doesn't sit well with me.

Thank you!
Post Reply