Skip to content

tvmaze_lookup fails as URL changed #1724

@alneven

Description

@alneven

Based on the problem description here:
https://discuss.flexget.com/t/tvmaze-lookup-defect-notify-entries-telegram/3250

Expected behaviour:

tvmaze information like URL, or poster is cached and can be used for notifications

Actual behaviour:

the link is not working, as the URL / value in the string has been changed

this is since 25.02, 23 o'clock

Steps to reproduce:

  • Step 1: ...

Config:

 [Image]({{tvmaze_series_original_image|replace("_", "%5F")}})
 [Show page]({{tvmaze_series_url|replace("_", "%5F")}})

Log:

2017-03-08 18:25 DEBUG    api_tvmaze    get_favtvshowshd querying tvmaze API with the following URL: http://api.tvmaze.com/lookup/shows
2017-03-08 18:25 DEBUG    utils.requests get_favtvshowshd Fetching URL http://api.tvmaze.com/lookup/shows with args () and kwargs {u'allow_redirects': True, 'params': {u'thetvdb_id': 304196}, u'timeout':
2017-03-08 18:25 DEBUG    tvmaze_lookup get_favtvshowshd 400 Client Error: Bad Request for url: http://api.tvmaze.com/lookup/shows?thetvdb_id=304196
2017-03-08 18:25 DEBUG    api_tvmaze    get_favtvshowshd returning search params for series lookup: {u'tvdb_id': 304196, u'tvmaze_id': None, u'name': u'The Path', u'tvrage_id': None}
2017-03-08 18:25 DEBUG    api_tvmaze    get_favtvshowshd searching db tvmaze_series for the values [(u'tvdb_id', 304196), (u'tvmaze_id', None), (u'name', u'The Path'), (u'tvrage_id', None)]
2017-03-08 18:25 DEBUG    api_tvmaze    get_favtvshowshd trying to fetch series The Path from tvmaze
2017-03-08 18:25 DEBUG    api_tvmaze    get_favtvshowshd querying tvmaze API with the following URL: http://api.tvmaze.com/lookup/shows
2017-03-08 18:25 DEBUG    utils.requests get_favtvshowshd Fetching URL http://api.tvmaze.com/lookup/shows with args () and kwargs {u'allow_redirects': True, 'params': {u'thetvdb_id': 304196}, u'timeout':
2017-03-08 18:25 DEBUG    tvmaze_lookup get_favtvshowshd 400 Client Error: Bad Request for url: http://api.tvmaze.com/lookup/shows?thetvdb_id=304196
2017-03-08 18:25 DEBUG    api_tvdb      get_favtvshowshd Looking up tvdb information for The Path 304196
2017-03-08 18:25 DEBUG    api_tvdb      get_favtvshowshd Series <name=The Path,tvdb_id=304196> information restored from cache.

Additional information:

It looks like the tvmaze API URL changed

from
http://api.tvmaze.com/lookup/shows?thetvdb_id=304196

to
http://api.tvmaze.com/lookup/shows?thetvdb=304196

The link is without the "_id" string...

Info from the TVMAZE API website:
http://imgur.com/ykzhLfz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions