Page 1 of 1

Add a field with blank results (but source data exists)?

Posted: 15 Feb 2014, 18:04
by DavidRTurner
A number of shows come back with a blank {genres}, despite the source having an entry for a genre.
I primarily use TVDB as it has a more expansive selection, but often TVRage has more details on a specific show.

It's weird; I believe that when TVRage has a genre listed, and TVDB does not, I get a blank using EITHER one. Certainly, multiple test shows have given me that result.
Is it conceivable that TVDB is being forced, even when I select TVRage?


Follow-Up: I am trying to select those missing genre shows, and force a genre into them.
I already have everything folder-sorted, so all I want to do is add a genre manually when I'm in the Drama folder - but NOT from a genres.csv file (because I cannot maintain a list of shows to reference).
So I am looking for the right code to replace a BLANK FIELD with a manual entry - as a bulk tool, I can change the genre manually when selecting all the files I need to change.

I use this:
{n.upperInitial()
.lowerTrail()
.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)
.replaceAll(/[`´‘’“”""]/, "'")
.replaceAll(/[:|]/, "- ")
.
.
.
.replaceAll(/, the/, ", The")
.replaceAll(/ Of/, " of")
.replaceAll(/ in/, " in")}

{s00e00} - {t.upperInitial() .lowerTrail()
.replaceFirst(/^(?i)(The)\s(.+)/, /$2, $1/)
.replaceAll(/[`´‘’“”""]/, "'")
.replaceAll(/[:|]/, "- ")
.
.
.
.replaceAll(/ Of/, " of")
.replaceAll(/ in/, " in")}
({info.runtime} min) - {airdate} {genres}



The filenames have come back (using either source) like
Dangerous S01E01 - Episode 1 (60 min) - 2007-01-16 []
The TVRage site data lists 'Drama', but theTVDB is blank. Both come back with the above blank genre.

I want to add something like:
{genres.replaceFirst(' ','Drama')} - to replace the first blank in the genre with Drama.
I can then change the 'Drama' to whichever I need depending on the folder I'm in.
This is simply a bulk tool for the current missing genres; but of course, figuring out where the problem lies, and correcting it, would be better :roll:

Re: Add a field with blank results (but source data exists)?

Posted: 16 Feb 2014, 03:51
by rednoah
Yes, extra metadata is always retrieved from TheTVDB or TheMovieDB.