[DUPLICATE] Failing to process TV Shows with thetvdb.com

All your suggestions, requests and ideas for future development
Post Reply
phisher1
Posts: 2
Joined: 26 May 2017, 13:24

[DUPLICATE] Failing to process TV Shows with thetvdb.com

Post by phisher1 »

EDIT: I see this is covered in another forum post. viewtopic.php?f=8&t=5055


Hello everyone. Apologizes up front if this is covered in a another topic.

Recently Filebot is failing to process TV shows.

FileBot 4.7.9 (r4984) / Java(TM) SE Runtime Environment 1.8.0_131 (headless)

java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
Ubuntu 16.04

I'm calling Filebot from an rtorrent from a download.finished event.

From ~/.rtorrent.rc:
...
# post process
method.set_key=event.download.finished,filebot,"execute={/home/dcorrigan/bin/rtorrent-postprocess.sh,$d.base_path=,$d.name=,$d.custom1=}"

/home/dcorrigan/bin/rtorrent-postprocess.sh
#!/bin/bash
TORRENT_PATH=$1
TORRENT_NAME=$2
TORRENT_LABEL=$3
dest=/nas/media

filebot -no-xattr -script fn:amc --output "${dest}" --log-file amc.log --action copy --conflict override -non-strict --def mailto=[email protected] --def reportError=y --def mail=127.0.0.1:25:[email protected] --def music=y artwork=y "ut_dir=${TORRENT_PATH}" "ut_kind=multi" "ut_title=${TORRENT_NAME}" "ut_label=${TORRENT_LABEL}" &

This has been working for quite some time.
The log generated for the failure of processing one TV show is quite large because THETVDDB appears to be returning the show's entire episode guide.

I believe this may be either an API change at thetvdb.com or something else broken on my side.

I'll redact a large portion of the log because its just repeating XML for all the different show episodes.

Filebot log - ~/.filebot/logs/amc.log


Run script [fn:amc] at [Fri May 26 08:20:54 CDT 2017]
Parameter: mailto = *****
Parameter: reportError = y
Parameter: mail = *****
Parameter: music = y
Parameter: artwork = y
Parameter: ut_dir = /usb/torrents/download/Archer 2009 S08E08 720p HDTV HEVC x265-RMTeam (98MB)
Parameter: ut_kind = multi
Parameter: ut_title = Archer 2009 S08E08 720p HDTV HEVC x265-RMTeam (98MB)
Parameter: ut_label = TV
Input: /nas1/usb/torrents/download/Archer 2009 S08E08 720p HDTV HEVC x265-RMTeam (98MB)/archer.2009.s08e08.720p.hdtv.hevc.x265.rmteam.mkv
Group: [tvs:archer 2009] => [archer.2009.s08e08.720p.hdtv.hevc.x265.rmteam.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [Archer (2009)]
Fetching episode data for [Archer (2009)]
Fetch failed: http://thetvdb.com/api/694FAD89942D3827 ... all/en.xml
net.filebot.InvalidResponseException: Invalid XML: SAXParseException: XML document structures must start and end within the same entity.
<?xml version="1.0" encoding="UTF-8" ?>
<Data><Series>
<id>110381</id>
<Actors>|H. Jon Benjamin|Aisha Tyler|Jessica Walter|George Coe|Adam Reed|Lucky Yates|Amber Nash|Chris Parnell|Judy Greer|</Actors>
<Airs_DayOfWeek>Wednesday</Airs_DayOfWeek>
<Airs_Time>10:00 PM</Airs_Time>
<ContentRating>TV-MA</ContentRating>
<FirstAired>2009-09-17</FirstAired>
<Genre>|Action|Adventure|Animation|Comedy|</Genre>
<IMDB_ID>tt1486217</IMDB_ID>
<Language>en</Language>
<Network>FXX</Network>
<NetworkID></NetworkID>
etc etc
...
Finished without processing any files
Failure (°_°)


I noticed that the thetvdb.com URL that filebot hits: Fetch failed: http://thetvdb.com/api/694FAD89942D3827 ... all/en.xml

If you hit through normal web browser, it returns:
This page contains the following errors:
error on line 3166 at column 16: Extra content at the end of the document
Below is a rendering of the page up to the first error.

Calling the URL with curl -v looks fine though.

Could this be a parsing problem due to an API change?

Any help would be appreciated. This is happening for multiple television shows now.

Thanks
Post Reply