Project

General

Profile

Bug #6262

Typo prevents tv_meta_tvdb.py from fetching posters

Added by James Bevan over 1 year ago. Updated over 1 year ago.

Status:
Fixed
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2023-04-08
Due date:
% Done:

0%

Estimated time:
Found in version:
4.3-2115~ga10f7ea44
Affected Versions:

Description

A typo in the parameters for get_poster() prevents tv_meta_tvdb.py from fetching posters:

def get_poster(self, title = None, tvdbid = None, languague = "en"):
root@64f6da68c0bd:/# /usr/bin/tv_meta_tvdb.py --tvdb-key <my-legacy-api-key> --title "Race Across The World" 
2023-04-07 07:52:44,699:INFO:tv_meta_tvdb:{'key': '<my-legacy-api-key>', 'languages': None}
{"poster": null, "fanart": "https://thetvdb.com/banners/fanart/original/5c790600db31d.jpg"}
root@64f6da68c0bd:/#

Where it should specify 'language', it specifies 'languague'. With the variable name corrected:

root@64f6da68c0bd:/# /usr/bin/tv_meta_tvdb.py --tvdb-key <my-legacy-api-key> --title "Race Across The World" 
2023-04-08 08:27:39,957:INFO:tv_meta_tvdb:{'key': '<my-legacy-api-key>', 'languages': None}
{"poster": "https://thetvdb.com/banners/posters/5c7cef5b3b416.jpg", "fanart": "https://thetvdb.com/banners/fanart/original/5c790600db31d.jpg"}
root@64f6da68c0bd:/#

I'm opening this Issue to reference in a PR I'm preparing with a fix.

References:

Also available in: Atom PDF