[CLI TVDB Artwork] The Batman {tvdb-73180} returns 403 for some artwork with artwork script

Any questions? Need some help?
Post Reply
regentoforigin
Posts: 1
Joined: 29 May 2023, 23:58

[CLI TVDB Artwork] The Batman {tvdb-73180} returns 403 for some artwork with artwork script

Post by regentoforigin »

While attempting to backfill my TV Show collection's artwork for use with Plex, I encountered the following error while fetching artwork via cli for The Batman {tvdb-73180}:

Console Output: Select all

PS Z:\Media\TV Shows\The Batman {tvdb-73180}> filebot.exe -script fn:artwork .
[EPISODE] The Batman - 1x01 - The Bat in the Belfry [Z:\Media\TV Shows\Streaming\The Batman {tvdb-73180}\Season 01\The Batman - S01E01 - The Bat in the Belfry [1080p, AVC, DDP2.0].mp4]
Artwork not found: TheTVDB::73180 [Z:\Media\TV Shows\The Batman {tvdb-73180}\poster.jpg]
Artwork not found: TheTVDB::73180 [Z:\Media\TV Shows\The Batman {tvdb-73180}\series.jpg]
Artwork not found: TheTVDB::73180 [Z:\Media\TV Shows\The Batman {tvdb-73180}\fanart.jpg]
Artwork not found: TheTVDB::73180 [Z:\Media\TV Shows\The Batman {tvdb-73180}\Season 01\season.jpg]
Artwork not found: TheTVDB::73180 [Z:\Media\TV Shows\The Batman {tvdb-73180}\Season 01\seasonwide.jpg]
Fetch https://artworks.thetvdb.com/banners/episodes/73180/109255.jpg [Z:\Media\TV Shows\The Batman {tvdb-73180}\Season 01\The Batman - S01E01 - The Bat in the Belfry [1080p, AVC, DDP2.0].jpg]
Client Error: https://artworks.thetvdb.com/banners/episodes/73180/109255.jpg [403 Forbidden ]
net.filebot.web.HttpClientError: https://artworks.thetvdb.com/banners/episodes/73180/109255.jpg [403 Forbidden ]
        at net.filebot.web.WebRequest.checkErrorCode(Unknown Source)
        at net.filebot.web.WebRequest.httpRequestV2(Unknown Source)
        at net.filebot.web.WebRequest.fetch(Unknown Source)
        at net.filebot.web.WebRequest.fetch(Unknown Source)
        at net.filebot.cli.ScriptShellMethods.saveAs(Unknown Source)
        at __script_581dde9c1e8e56a309797ac07f3b9147_8e0.fetchEpisodeArtwork(__script_581dde9c1e8e56a309797ac07f3b9147_8e0:49)
        at __script_581dde9c1e8e56a309797ac07f3b9147_8e0$_run_closure2.doCall(__script_581dde9c1e8e56a309797ac07f3b9147_8e0:83)
        at __script_581dde9c1e8e56a309797ac07f3b9147_8e0.run(__script_581dde9c1e8e56a309797ac07f3b9147_8e0:73)
        at net.filebot.GroovyEngine.eval(Unknown Source)
        at net.filebot.cli.ScriptShell.evaluate(Unknown Source)
        at net.filebot.cli.ScriptShell.runScript(Unknown Source)
        at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
        at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
        at net.filebot.Main.main(Unknown Source)

Error (o_O)
PS Z:\Media\TV Shows\The Batman {tvdb-73180}>
I have repeated this error from various VPN endpoints and computers (connecting to the file system over Network). I have additionally confirmed that the URL in question (https://artworks.thetvdb.com/banners/ep ... 109255.jpg) does fail in browsers. Additionally, browsing to the show directly in the TVDB yields errors in their own data for the show starting with Season 1 Episode 1: https://thetvdb.com/series/the-batman/episodes/109255

I have worked around this in my own library by skipping "The Batman" while processing my TV Shows, but it would be fantastic if the tvdb specific logic for the artwork script handled 403 errors more gracefully.
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [CLI TVDB Artwork] The Batman {tvdb-73180} returns 403 for some artwork with artwork script

Post by rednoah »

Fixed. FileBot will now log and ignore network errors and move on.

:idea: https://github.com/filebot/scripts/comm ... 3c4545dcc8
:idea: Please read the FAQ and How to Request Help.
Post Reply