TheTVDB -> Error while loading XML resource

All your suggestions, requests and ideas for future development
Post Reply
kim
Power User
Posts: 1050
Joined: 15 May 2014, 16:17

TheTVDB -> Error while loading XML resource

Post by kim »

I think its a change on TheTVDB because it worked 2 weeks ago or so.

now: http://thetvdb.com/api/GetSeries.php?se ... anguage=en

this works http://thetvdb.com/api/GetSeries.php?se ... anguage=en

from context.log
Rename episodes using [TheTVDB]
Auto-detected query: [The Odd Couple, The Odd Couple 2015]
IOException: Error while loading XML resource: http://thetvdb.com/api/GetSeries.php?se ... anguage=en (java.io.IOException: Malformed XML: http://thetvdb.com/api/GetSeries.php?se ... anguage=en (Open quote is expected for attribute "{1}" associated with an element type "ALIGN".))
Done ヾ(@⌒ー⌒@)ノ

THX
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TheTVDB show lookup problem

Post by rednoah »

Please post this issue on the TheTVDB forums. If they send malformed xml back then it's a server-side issue.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1050
Joined: 15 May 2014, 16:17

Wrong show from TheTVDB (fixed Error while loading XML resou

Post by kim »

now they have fixed it, but now its the wrong show

wrong show "The Odd Couple"
right show "The Odd Couple (2015)"

the problem is that filebot only search for titel not + the year = wrong show

"now: http://thetvdb.com/api/GetSeries.php?se ... anguage=en

this works http://thetvdb.com/api/GetSeries.php?se ... anguage=en"


and yes the year is part of the filename "the.odd.couple.2015..."


EDIT: just tested with version FileBot 4.5 (r2612) and FileBot 4.5.7 (r2900)
the problem is only in FileBot 4.5.7 (r2900) and FileBot 4.5.7 (r2915) not FileBot 4.5 (r2612)

2nd EDIT: just tested a 2nd show still no year in url but it got the right show anyways so maybe a other problem then the year
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TheTVDB -> Error while loading XML resource

Post by rednoah »

Use SHIFT-CLICK datasource to force the series name.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1050
Joined: 15 May 2014, 16:17

Re: TheTVDB -> Error while loading XML resource

Post by kim »

I was not clear, its CLI script NOT GUI

EDIT: try with filename "the.odd.couple.2015.111.hdtv-lol.mp4" it will fail (as in wrong show)
other shows dont have this problem (as far as i know)
it works ok in FileBot 4.5 (r2612)

I use {'.'+s00e00} in my script

im sry if its a just problem with my script and not filebot
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TheTVDB -> Error while loading XML resource

Post by rednoah »

Use --q and/or --filter option to force the series name then. See FAQ #2.
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1050
Joined: 15 May 2014, 16:17

Re: TheTVDB -> Error while loading XML resource

Post by kim »

thx i got it working with "--filter "age < 365""
but i do not understand why i did / do not need to do this with version FileBot 4.5 (r2612)
to me something is wrong when its a new problem that worked before ?


"--filter "age < 365"" works for now...
but is there a blacklist cmd for "NOT THIS ID" like "!(series == /TheTVDB::70591/)" ?
looks like "!(n == /The Odd Couple/)" can work but i think ID is more unique/ better

btw: is there a list of all the filters?
or better a "all in one" manual for filebot somewhere, it can be hard finding info in the forum?
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TheTVDB -> Error while loading XML resource

Post by rednoah »

1)
The data changes all the time.

e.g. Matching "Coupling" (the original UK version) isn't a problem until "Coupling (US)" comes out and makes things very ambiguous.

2)
{n} is unique. You can use {info.id} if you're a numberphile though but it's not any more or less unique than {n}. :P

The filter is exactly the same as the format. So all format docs apply to filter as well. You can use {n}, {y}, {director}, {certification}, {genre}, etc and pretty much everything else. If you use {file} based bindings like {fn}, {crc32}, etc the filter expression will always fail.

3)
I see a volunteer. Feel free to write and share a All-In-One manual. I'm happy to answer any questions you may have.

For startes you can have a look at this => viewtopic.php?f=9&t=1107#p9974
:idea: Please read the FAQ and How to Request Help.
kim
Power User
Posts: 1050
Joined: 15 May 2014, 16:17

Re: TheTVDB -> Error while loading XML resource

Post by kim »

thx
i now use "--filter "!(info.id == 70591)"" but it generates a lot of data in the log file (--log-file)

so is there a way to only use the filter when (n) or (info.id) is on the lookup list ?

e.g. if show on list then use filter else ignore


about the manual, i was thinking of a complete list of all possible commands (or what you call them), mostly to use in the format part CLI/GUI with a e.g. of how to use it

if you start and ask people to add (you updating the main post)

here is what i have so far:


Name:
"the movie" = {n} or {info.Name} or {info.originalName}
"the.movie" = {n.space('.')
"The Movie" = {n.upperInitial()}
"movie, the" = {n.replaceFirst(/^(?i)(The|A|An) (.+)/, /$2, $1/)}

Year:
{y} = Year = 2009

Movie/TV info:
{info.Tagline}
{info.Overview}
{info.Homepage}

General Movie/TV info:
{info.AlternativeTitles} = {info.AlternativeTitles[0]} or {(info.AlternativeTitles[0,1,2,3]).join(',')}
{genres} or {info.Genres} = list of genres = [Science Fiction, Action, ...] = {info.Genres[0]} or {(info.Genres[0,1,2,3]).join('_').replaceAll(/ /, '-')}
{rating} or {info.Rating} = movie rating = 8.5
{info.Released}
{info.Runtime}

Extended Movie/TV info:
{certification} or {info.Certification} = content rating = PG-13 = {(info.Certification).replace(/-/, '')}
{collection} or {info.Collection} = movie set = Avatar Collection
{info.Id} = TMDb or TVDB id
{info.ImdbId} = IMDB id = tt0499549 = {('tt' + (info.ImdbId ?: 0).pad(7))}
{info.Trailers} = Trailer(s) from youtube
{info.Votes} =


{info.ProductionCompanies} = {info.ProductionCompanies[0]} or {info.ProductionCompanies[0,1,2,3].join('_').replaceAll(/ /, '.')}
{info.ProductionCountries} = {info.ProductionCountries[0]} or {info.ProductionCountries[0,1].join('_')}
{info.SpokenLanguages} = {info.SpokenLanguages[0]} or {info.SpokenLanguages[0,1].join('_')}

People:
{director} or {info.Director} = movie director = James Cameron
{info.Writer}
{actors} or {info.Actors} = list of actors = [Sam Worthington, Zoe Saldana, ...] = {info.Actors[0]}
{info.People} = {info.People[0]} or {(info.People[0]).each{ p -> (p.(p.character)) }} ???????
{info.Cast} same as {info.People} ???

TV only:
{s} = season number = 3
{e} = episode number = 1
{t} = episode title = Labyrinth
{sxe} = season / episode numbers = 1x01
{s00e00} = season / episode numbers = S01E01
{episode} = episode object = <default episode name>
{absolute} = absolute episode number = 42
{airdate} = episode airdate = 2009-06-01
{special} = special number = 1

Video:
{vf} = standard video format = 720p
{vc} = video codec = x264
{ws} = widescreen flag = ws
{resolution} = video size = 1280x720
{hpi} = exact video format = 384p
{dim} = video dimensions = <width and height>

Audio:
{ac} = audio codec = ac3
{af} = audio channels = 6ch

File info:
{fn} = original filename = Serenity
{source} = source medium = BluRay
{ext} = file extension = mkv
{cf} = container format = mkv
{sdhd} = SD/HD video = SD or HD
{group} = release group = ALLiANCE
{crc32} = crc32 checksum = 3E16AF40
{file} = file object = <file path>

Extended File info:
{movie} = movie object = <default movie name>
{pi} = movie part index = 1
{pn} = number of movie parts = 2
{lang} = detect subtitle language = eng

Various info:
{info} = extended metadata = <any movie / series info> ???
{omdb} = OMDb info = <any movie / series info> ???
{media} = general media info object = <any general media parameter> ???
{video} = video object [stream 0] = <any video parameter> ???
{audio} = audio object [stream 0] = <any audio parameter> ???
{text} = subtitle object [stream 0] = <any subtitle parameter>

{info.Poster} cant see what it does (how to use) ???


Function Reference source:
pad(length, padding = "0") = Pad strings or numbers with given characters ('0' by default).

match(pattern) = Get a substring matching the given pattern or break.

matchAll(pattern) = Get a list of substrings matching the given pattern or break.

space(replacement) = Replace all spaces (e.g. "Doctor Who" -> "Doctor_Who").

upperInitial() = Upper-case all initials (e.g. "The Day a new Demon was born" -> "The Day A New Demon Was Born").

lowerTrail() = Lower-case all letters that are not initials (e.g. "Gundam SEED" -> "Gundam Seed").

acronym() = Get acronym, i.e. first letter of each word. (e.g. "Deep Space 9" -> "DS9").

before(pattern) = Get the substring before the given pattern or the original value.

after(pattern) = Get the substring after the given pattern or the original value.

replaceAll(pattern, replacement = "") = Replace or remove all occurrences of the pattern.

replaceTrailingBrackets(replacement = "") = Replace trailing parenthesis including any leading whitespace (e.g. "The IT Crowd (UK)" -> "The IT Crowd").

replacePart(replacement = "") = Replace part identifier (e.g. "Today Is the Day (1)" -> "Today Is the Day, Part 1").

ascii() = Convert Unicode to ASCII. (e.g. "Österreich" -> "Osterreich" or "カタカナ" -> "katakana").

transliterate(identifier) = Apply any ICU script transliteration. e.g. "中国".transliterate("han-latin") -> "zhōng guó".


http://www.filebot.net/naming.html
viewtopic.php?f=5&t=2
User avatar
rednoah
The Source
Posts: 19156
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: TheTVDB -> Error while loading XML resource

Post by rednoah »

1)

Code: Select all

--log [all, fine, info, warning, off]  : Log level
--log finer or --log fine should get rid of most logs.

2)
"movie, the" = {n.sortName()}

@see http://www.filebot.net/forums/viewtopic.php?f=5&t=211
:idea: Please read the FAQ and How to Request Help.
Post Reply