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

Any questions? Need some help?
Post Reply
DavidRTurner
Power User
Posts: 89
Joined: 01 Feb 2014, 16:59

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

Post 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:
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post by rednoah »

Yes, extra metadata is always retrieved from TheTVDB or TheMovieDB.
:idea: Please read the FAQ and How to Request Help.
Post Reply