Unable to fetch episode data

Any questions? Need some help?
Post Reply
adrillex
Posts: 6
Joined: 08 Feb 2018, 23:28

Unable to fetch episode data

Post by adrillex » 08 Feb 2018, 23:40

Hi ! firstly, thanks for this amazing tool ! realy.

I just got a problem with my last serie : altered carbon. Filebot don't add, maybe because of the api.
Image

The log talk about the episode data so i tried to get episodes data with tvdb api and postman (https://api.thetvdb.com/series/334824/episodes) , and i got this :

Code: Select all

{
    "links": {
        "first": 1,
        "last": 1,
        "next": null,
        "prev": null
    },
    "data": [
        {
            "absoluteNumber": 1,
            "airedEpisodeNumber": 1,
            "airedSeason": 1,
            "airedSeasonID": 730976,
            "dvdEpisodeNumber": null,
            "dvdSeason": null,
            "episodeName": "Secrets",
            "firstAired": "2017-12-01",
            "id": 6327940,
            "language": {
                "episodeName": "en",
                "overview": "en"
            },
            "lastUpdated": 1513720107,
            "overview": "In 2019, a local boy's disappearance stokes fear in the residents of Winden, a small German town with a strange and tragic history."
        },
        {
            "absoluteNumber": 2,
            "airedEpisodeNumber": 2,
            "airedSeason": 1,
            "airedSeasonID": 730976,
            "dvdEpisodeNumber": null,
            "dvdSeason": null,
            "episodeName": "Lies",
            "firstAired": "2017-12-01",
            "id": 6347551,
            "language": {
                "episodeName": "en",
                "overview": "en"
            },
            "lastUpdated": 1513720116,
            "overview": "When a grim discovery leaves the police baffled, Ulrich seeks a search warrant for the power plant. A mysterious stranger checks into the hotel."
        },
        {
            "absoluteNumber": 3,
            "airedEpisodeNumber": 3,
            "airedSeason": 1,
            "airedSeasonID": 730976,
            "dvdEpisodeNumber": null,
            "dvdSeason": null,
            "episodeName": "Past and Present",
            "firstAired": "2017-12-01",
            "id": 6347552,
            "language": {
                "episodeName": "en",
                "overview": "en"
            },
            "lastUpdated": 1513720128,
            "overview": "It's 1986, and Ulrich's brother, Mads, has been missing for a month. Confusion reigns as past and present intertwine."
        },
        {
            "absoluteNumber": 4,
            "airedEpisodeNumber": 4,
            "airedSeason": 1,
            "airedSeasonID": 730976,
            "dvdEpisodeNumber": null,
            "dvdSeason": null,
            "episodeName": "Double Lives",
            "firstAired": "2017-12-01",
            "id": 6347553,
            "language": {
                "episodeName": "en",
                "overview": "en"
            },
            "lastUpdated": 1513720136,
            "overview": "Bizarre occurrences give Charlotte a sense of déjà vu, and she suspects Peter is hiding something. Franziska snaps when Magnus confronts her."
        },
        {
            "absoluteNumber": 5,
            "airedEpisodeNumber": 5,
            "airedSeason": 1,
            "airedSeasonID": 730976,
            "dvdEpisodeNumber": null,
            "dvdSeason": null,
            "episodeName": "Truths",
            "firstAired": "2017-12-01",
            "id": 6347554,
            "language": {
                "episodeName": "en",
                "overview": "en"
            },
            "lastUpdated": 1513720144,
            "overview": "Hannah takes her obsession with Ulrich too far. The stranger asks Regina to deliver an important package. Martha is torn between Jonas and Bartosz."
        },
        {
            "absoluteNumber": 6,
            "airedEpisodeNumber": 6,
            "airedSeason": 1,
            "airedSeasonID": 730976,
            "dvdEpisodeNumber": null,
            "dvdSeason": null,
            "episodeName": "Sic Mundus Creatus Est",
            "firstAired": "2017-12-01",
            "id": 6347555,
            "language": {
                "episodeName": "en",
                "overview": "en"
            },
            "lastUpdated": 1513720155,
            "overview": "Ulrich looks to the past for answers and dredges up disturbing family secrets. Armed with new tools, Jonas probes the cave's murky depths."
        },
        {
            "absoluteNumber": 7,
            "airedEpisodeNumber": 7,
            "airedSeason": 1,
            "airedSeasonID": 730976,
            "dvdEpisodeNumber": null,
            "dvdSeason": null,
            "episodeName": "Crossroads",
            "firstAired": "2017-12-01",
            "id": 6347556,
            "language": {
                "episodeName": "en",
                "overview": "en"
            },
            "lastUpdated": 1513720162,
            "overview": "Ulrich questions a frail and frightened Helge in the nursing home. Jonas searches for Mikkel, but the stranger warns him about meddling with the past."
        },
        {
            "absoluteNumber": 8,
            "airedEpisodeNumber": 8,
            "airedSeason": 1,
            "airedSeasonID": 730976,
            "dvdEpisodeNumber": null,
            "dvdSeason": null,
            "episodeName": "As You Sow, so You Shall Reap",
            "firstAired": "2017-12-01",
            "id": 6347557,
            "language": {
                "episodeName": "en",
                "overview": "en"
            },
            "lastUpdated": 1513720169,
            "overview": "In 1953, the disfigured bodies of two boys are exhumed at a construction site, the future location of Winden's nuclear power plant."
        },
        {
            "absoluteNumber": 9,
            "airedEpisodeNumber": 9,
            "airedSeason": 1,
            "airedSeasonID": 730976,
            "dvdEpisodeNumber": null,
            "dvdSeason": null,
            "episodeName": "Everything is Now",
            "firstAired": "2017-12-01",
            "id": 6347558,
            "language": {
                "episodeName": "en",
                "overview": "en"
            },
            "lastUpdated": 1513720178,
            "overview": "Ulrich runs afoul of the law, Helge tries to dodge Egon Tiedemann, Claudia harnesses the cave's powers, and Katharina lashes out at Hannah."
        },
        {
            "absoluteNumber": 10,
            "airedEpisodeNumber": 10,
            "airedSeason": 1,
            "airedSeasonID": 730976,
            "dvdEpisodeNumber": null,
            "dvdSeason": null,
            "episodeName": "Alpha and Omega",
            "firstAired": "2017-12-01",
            "id": 6347559,
            "language": {
                "episodeName": "en",
                "overview": "en"
            },
            "lastUpdated": 1513720186,
            "overview": "Peter gets a shock. Jonas learns the truth about his family, but there are more surprises still to come. Helge makes a sacrifice."
        }
    ]
}
If you look at the absoluteNumber of the special episode, it is set as NULL.
Maybe it could be for this reason ?

thanks for your help,
adrillex

kim
Power User
Posts: 545
Joined: 15 May 2014, 16:17

Re: Unable to fetch episode data

Post by kim » 09 Feb 2018, 02:20

https://www.thetvdb.com/?tab=series&id=332331&lid=7
503 Service Unavailable
No server is available to handle this request.
= try later ;)

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

Re: Unable to fetch episode data

Post by rednoah » 09 Feb 2018, 04:45

I would appreciate the file paths in question as text so I can copy & paste them into my automated test setup. I can't tell for sure why it's not working unless I try things myself.

However, if the information in the filename doesn't match the information in the database, then that's indeed a very likely explanation.
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

adrillex
Posts: 6
Joined: 08 Feb 2018, 23:28

Re: Unable to fetch episode data

Post by adrillex » 09 Feb 2018, 08:45

Sorry, here are the plain text format :

Code: Select all

Parameter: music = y
Parameter: artwork = n
Parameter: ut_dir = /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/
Parameter: ut_kind = multi
Parameter: ut_title = Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01
Parameter: ut_label =
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E02.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E03.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E04.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E05.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E06.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E07.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E08.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E09.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E10.FiNAL.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Group: [tvs:altered carbon] => [Altered.Carbon.S01E01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv, Altered.Carbon.S01E02.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv, Altered.Carbon.S01E03.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv, $Rename episodes using [TheTVDB]
Auto-detected query: [altered carbon]
Resource not found: https://api.thetvdb.com/search/series?name=altered+carbon
Failed to fetch episode data: [altered carbon]
CmdlineException: Failed to match files to episode data
Finished without processing any files
Failure (°_°)
It's not because of a service down because others series/film are working.
But if i try manually to get the api answer of the url shown, I get this :

Code: Select all

{
    "data": [
        {
            "aliases": [
                "Altered Carbon - Das Unsterblichkeitsprogramm"
            ],
            "banner": "graphical/332331-g5.jpg",
            "firstAired": "2018-02-02",
            "id": 332331,
            "network": "Netflix",
            "overview": "After 250 years on ice, a prisoner returns to life in a new body with one chance to win his freedom: by solving a mind-bending murder.",
            "seriesName": "Altered Carbon",
            "status": "Continuing"
        }
    ]
}
As you can see, there is a mistake in the name in the tv db. But "Altered carbon" is in the name so filebot should recognize it right ?
Thanks for your help, I appreciate.

EDIT : My bad, the series name in theTVDB is ok, its the aliases that have a weird name. So it should not come from here

adrillex
Posts: 6
Joined: 08 Feb 2018, 23:28

Re: Unable to fetch episode data

Post by adrillex » 12 Feb 2018, 12:55

up. Any idea ?

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

Re: Unable to fetch episode data

Post by rednoah » 12 Feb 2018, 16:22

Does manual search work for you now?

Code: Select all

filebot -list --db TheTVDB --q "Altered Carbon"
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

adrillex
Posts: 6
Joined: 08 Feb 2018, 23:28

Re: Unable to fetch episode data

Post by adrillex » 12 Feb 2018, 18:26

the command filebot -list --db TheTVDB --q "Altered Carbon" return me

Code: Select all

Altered Carbon - 1x01 - Out of the Past
Altered Carbon - 1x02 - Fallen Angel
Altered Carbon - 1x03 - In a Lonely Place
Altered Carbon - 1x04 - Force of Evil
Altered Carbon - 1x05 - The Wrong Man
Altered Carbon - 1x06 - Man with My Face
Altered Carbon - 1x07 - Nora Inu
Altered Carbon - 1x08 - Clash by Night
Altered Carbon - 1x09 - Rage in Heaven
Altered Carbon - 1x10 - The Killers
Altered Carbon - Special 1 - The History of Immortality
So I think its working
Thanks again

adrillex
Posts: 6
Joined: 08 Feb 2018, 23:28

Re: Unable to fetch episode data

Post by adrillex » 12 Feb 2018, 18:40

So I tried again the script

Code: Select all

264-ARK01 Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01
./rtorrent-postprocess: line 7: [: =: unary operator expected
[email protected]:~$ Locking /home/adrillex/.session/amc.log
Run script [fn:amc] at [Mon Feb 12 19:38:04 CET 2018]
Parameter: music = y
Parameter: artwork = n
Parameter: ut_dir = /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01
Parameter: ut_kind = multi
Parameter: ut_title = Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01
Parameter: ut_label =
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E02.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E03.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E04.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E05.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E06.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E07.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E08.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E09.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Input: /home/adrillex/torrents/Altered.Carbon.S01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01/Altered.Carbon.S01E10.FiNAL.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv
Group: [tvs:altered carbon] => [Altered.Carbon.S01E01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv, Altered.Carbon.S01E02.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv, Altered.Carbon.S01E03.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv, Altered.Carbon.S01E04.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv, Altered.Carbon.S01E05.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv, Altered.Carbon.S01E06.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv, Altered.Carbon.S01E07.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv, Altered.Carbon.S01E08.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv, Altered.Carbon.S01E09.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv, Altered.Carbon.S01E10.FiNAL.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv]
Rename episodes using [TheTVDB]
Auto-detected query: [altered carbon]
Failed to fetch episode data: [altered carbon]
CmdlineException: Failed to match files to episode data
Finished without processing any files
Failure (°_°)
So the problem is still here but filebot dont mention the api url as before.

adrillex
Posts: 6
Joined: 08 Feb 2018, 23:28

Re: Unable to fetch episode data

Post by adrillex » 12 Feb 2018, 18:57

sorry for the triple post, I forgot to say that i'm french .. so filebot -list --lang fr --db TheTVDB --q "Altered Carbon" return

Code: Select all

Resource not found: https://api.thetvdb.com/search/series?name=Altered+Carbon
TheTVDB: no results
Failure (°_°)
I don't understand why

kim
Power User
Posts: 545
Joined: 15 May 2014, 16:17

Re: Unable to fetch episode data

Post by kim » 12 Feb 2018, 20:45

The newer version of Filebot do not get the French data ?

V4.7.9

Code: Select all

filebot -list --lang fr --db TheTVDB --q "Altered Carbon"
Altered Carbon - 1x01 - La Griffe du passé
Altered Carbon - 1x02 - Crime passionnel
Altered Carbon - 1x03 - Le Violent
Altered Carbon - 1x04 - L'Enfer de la corruption
Altered Carbon - 1x05 - Le Faux Coupable
Altered Carbon - 1x06 - L'homme avec mon visage
Altered Carbon - 1x07 - Chien enragé
Altered Carbon - 1x08 - Le Démon s'éveille la nuit
Altered Carbon - 1x09 - La Proie du mort
Altered Carbon - 1x10 - Les Tueurs
Altered Carbon - 1xSpecial 1 - The History of Immortality
V4.7.19

Code: Select all

filebot -list --lang fr --db TheTVDB --q "Altered Carbon"
Fetch resource: https://api.thetvdb.com/search/series?name=Altered+Carbon
Resource not found: https://api.thetvdb.com/search/series?name=Altered+Carbon
Received 0 bytes
Rank [Altered Carbon] => [Altered Carbon]
Fetch resource: https://api.thetvdb.com/series/332331
Received 1,093 bytes
Fetch resource: https://api.thetvdb.com/series/332331
Received 845 bytes
Fetch resource: https://api.thetvdb.com/series/332331/episodes?page=1
Received 6,299 bytes
Altered Carbon - 1x01 - Out of the Past
Altered Carbon - 1x02 - Fallen Angel
Altered Carbon - 1x03 - In a Lonely Place
Altered Carbon - 1x04 - Force of Evil
Altered Carbon - 1x05 - The Wrong Man
Altered Carbon - 1x06 - Man with My Face
Altered Carbon - 1x07 - Nora Inu
Altered Carbon - 1x08 - Clash by Night
Altered Carbon - 1x09 - Rage in Heaven
Altered Carbon - 1x10 - The Killers
Altered Carbon - Special 1 - The History of Immortality
https://www.thetvdb.com/?tab=seasonall&id=332331&lid=17

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

Re: Unable to fetch episode data

Post by rednoah » 15 Feb 2018, 04:20

It seems to generally work as of today at least.

Here's what I get:

Code: Select all

filebot -rename . --lang FR --action TEST
Rename episodes using [TheTVDB]
Auto-detected query: [Altered Carbon]
Fetching episode data for [Altered Carbon]
[TEST] from [Altered.Carbon.S01E01.MULTi.1080p.NF.WEB-DL.DDP5.1.x264-ARK01.mkv] to [Altered Carbon - 1x01 - La Griffe du passé.mkv]
Processed 1 files
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

kim
Power User
Posts: 545
Joined: 15 May 2014, 16:17

Re: Unable to fetch episode data

Post by kim » 15 Feb 2018, 18:35

Confirmed working in V4.7.19...

the other day there NO "Français" here:
https://www.thetvdb.com/?string=Altered ... ion=Search
Altered Carbon Français 332331

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

Re: Unable to fetch episode data

Post by rednoah » 15 Feb 2018, 18:43

I guess somebody corrected the information online and that's why it's working now.
My (very excellent) support depends on Windows Store and Mac App Store sales and Patreon support. Paying users, donors and everyone who contributes to FileBot in one way or another will get the very best support.

:idea: Please read the FAQ and How to Request Help.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests