@effemmeffe wrote:
My move-series task contains, among others, this lines:
template: - series-metainfo move: to: "/{? folder.root ?}{? folder.series ?}{{tvdb_series_name|default(series_name)|pathscrub}}/S{{tvdb_season|pad(2)|default(series_season|pad(2))}}/" rename: "{{tvdb_series_name|default(series_name)|pathscrub}} - {{tvdb_ep_id|default(series_id)}}{% if tvdb_ep_name|default(False) %} - {{tvdb_ep_name|pathscrub}}{% endif %}{% if quality|default(False) %} - [{{quality}}]{% endif %}"
Somewhere in my config I have this:
series-metainfo: metainfo_series: yes thetvdb_lookup: yes
My hope was to use the tvdb lookup data to rename the episodes and if they are not present to use the fallback data from metainfo plugin.
But sometimes I get an error, in this case for Battlestar Galactica:
2018-06-26 09:19 DEBUG api_tvdb move-series Looking up tvdb information for 'Bsg'. TVDB ID: None 2018-06-26 09:19 DEBUG api_tvdb move-series Series <name=Bsg,tvdb_id=None> not found in cache, looking up from tvdb. 2018-06-26 09:19 DEBUG utils.requests move-series GETing URL https://api.thetvdb.com/search/series with args () and kwargs {'json': None, 'params': {'name': u'Bsg'}, u'timeout': 30, 'headers': {u'Accept-Language': u'en', u'Authorization': u'Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MzAwNTA0NDksImlkIjoiRmxleEdldCIsIm9yaWdfaWF0IjoxNTI5OTY0MDQ5fQ.sM6ZY636cxPguc3joJBXCr6NsE3Qncrq-f7GtHJD2eRIvRk53P8nBhwtdnXaiX3Hs_gJeSu4D3HGW0lxnqo3dJ2KFyH7HP_sTU3NreSpYjrF3SxNNCAdyopmXxdPcdJq_GYN8qETEKpwWgokFVytzbVsYV0HKylizI3eRgqvzt8tFlukJZSXBOjAGE9S_FyAm1m4AHwQUpwmDla7wzN9dzHHkrS59n1aVjSEw3S6jb6TXDrQ9dBPGzEIo_hU0BKTCPH7Wks7W1H8b-UeA1O2TdQZPtz5bJ-DK-01KUWiK8t_2ps9jfEJzc85IHChDRgn5GDehCIkIz7jiSVHHOWusg'}} 2018-06-26 09:19 DEBUG thetvdb_lookup move-series Error looking up tvdb series information for BSG.S3.Deleted.Scenes.1: Unable to get search results for Bsg: 404 Client Error: Not Found for url: https://api.thetvdb.com/search/series?name=Bsg 2018-06-26 09:19 DEBUG utils.template move-series Error during rendering: (UndefinedError) 'tvdb_season' is undefined 2018-06-26 09:19 CRITICAL plugin move-series Path value replacement `/media/video-nas/Library/TV/{{tvdb_series_name|default(series_name)|pathscrub}}/S{{tvdb_season|pad(2)|default(series_season|pad(2))}}/` failed: (UndefinedError) 'tvdb_season' is undefined 2018-06-26 09:19 WARNING task move-series Aborting task (plugin: move)
If I try to go to https://api.thetvdb.com/search/series?name=Bsg from my browser I get an error:
{"Error":"Not authorized"}
How can I fix this?
Are my rename lines correct?
Do I have to authorize the tvdb lookup with some api key?
Posts: 1
Participants: 1