thetvdb / metadata.tvshows.thetvdb.com.v4.python

TheTVDB Official Kodi TV plugin
9 stars 4 forks source link

warning due to use of deprecated ListItem.setInfo() #44

Open thezoggy opened 2 hours ago

thezoggy commented 2 hours ago

Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.

with kodi 21.1 and latest tvdbd v4 scraper (1.1.6)

2024-09-15 16:03:43.948 T:34       info <general>: Starting Kodi (21.1 (21.1.0) Git:20240817-183eb85). Platform: Linux x86 64-bit
...
2024-09-15 16:03:44.035 T:34       info <general>: CAddonMgr::FindAddons: metadata.tvshows.thetvdb.com.v4.python v1.1.6 installed

when tvdb scraper updates a series you see a bunch of warnings generated with it:

2024-09-24 02:33:41.160 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: {'action': 'getepisodelist', 'url': '{"tvdb": "440448", "imdb": "tt33040785"}', 'pathSettings': '{"gender":"Other","language":"English","pin":"","season_type":"1","year":1900}'}
2024-09-24 02:33:41.161 T:38239   debug <CSettingsManager>: requested setting (uuid) was not found.
2024-09-24 02:33:41.161 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: settings:
2024-09-24 02:33:41.161 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: {'gender': 'Other', 'language': 'English', 'pin': '', 'season_type': '1', 'year': 1900, 'uuid': '4517a2c3-0470-4086-8b62-a46a3a2192fa'}
2024-09-24 02:33:41.161 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: about to call get series episodes
2024-09-24 02:33:41.161 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: Find episodes of tvshow with id <built-in function id>
2024-09-24 02:33:41.161 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: about to make request to url https://api4.thetvdb.com/v4/series/440448/episodes/default?page=0
2024-09-24 02:33:41.161 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: https://api4.thetvdb.com/v4/series/440448/episodes/default?page=0
2024-09-24 02:33:41.161 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: about to make request to url https://api4.thetvdb.com/v4/series/440448/episodes/default?page=1
2024-09-24 02:33:41.161 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: https://api4.thetvdb.com/v4/series/440448/episodes/default?page=1
2024-09-24 02:33:41.161 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: details in episodes.py
2024-09-24 02:33:41.161 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: {'title': '1화', 'season': 1, 'episode': 1, 'premiered': '2024-09-17', 'date': '2024-09-17', 'year': 2024, 'aired': '2024-09-17'}
2024-09-24 02:33:41.161 T:38239 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-09-24 02:33:41.161 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: details in episodes.py
2024-09-24 02:33:41.161 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: {'title': '2화', 'season': 1, 'episode': 2, 'premiered': '2024-09-17', 'date': '2024-09-17', 'year': 2024, 'aired': '2024-09-17'}
2024-09-24 02:33:41.162 T:38239 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: details in episodes.py
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: {'title': '3화', 'season': 1, 'episode': 3, 'premiered': '2024-09-17', 'date': '2024-09-17', 'year': 2024, 'aired': '2024-09-17'}
2024-09-24 02:33:41.162 T:38239 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: details in episodes.py
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: {'title': '4화', 'season': 1, 'episode': 4, 'premiered': '2024-09-17', 'date': '2024-09-17', 'year': 2024, 'aired': '2024-09-17'}
2024-09-24 02:33:41.162 T:38239 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: details in episodes.py
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: {'title': '5화', 'season': 1, 'episode': 5, 'premiered': '2024-09-24', 'date': '2024-09-24', 'year': 2024, 'aired': '2024-09-24'}
2024-09-24 02:33:41.162 T:38239 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: details in episodes.py
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: {'title': '6화', 'season': 1, 'episode': 6, 'premiered': '2024-09-24', 'date': '2024-09-24', 'year': 2024, 'aired': '2024-09-24'}
2024-09-24 02:33:41.162 T:38239 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: details in episodes.py
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: {'title': '7화', 'season': 1, 'episode': 7, 'premiered': '2024-09-24', 'date': '2024-09-24', 'year': 2024, 'aired': '2024-09-24'}
2024-09-24 02:33:41.162 T:38239 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: details in episodes.py
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: {'title': '8화', 'season': 1, 'episode': 8, 'premiered': '2024-10-01', 'date': '2024-10-01', 'year': 2024, 'aired': '2024-10-01'}
2024-09-24 02:33:41.162 T:38239 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: details in episodes.py
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: {'title': '9화', 'season': 1, 'episode': 9, 'premiered': '2024-10-01', 'date': '2024-10-01', 'year': 2024, 'aired': '2024-10-01'}
2024-09-24 02:33:41.162 T:38239 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: details in episodes.py
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: {'title': '10화', 'season': 1, 'episode': 10, 'premiered': '2024-10-01', 'date': '2024-10-01', 'year': 2024, 'aired': '2024-10-01'}
2024-09-24 02:33:41.162 T:38239 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: details in episodes.py
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: {'title': '11화', 'season': 1, 'episode': 11, 'premiered': '2024-10-08', 'date': '2024-10-08', 'year': 2024, 'aired': '2024-10-08'}
2024-09-24 02:33:41.162 T:38239 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: details in episodes.py
2024-09-24 02:33:41.162 T:38239   debug <general>: [metadata.tvshows.thetvdb.com.v4.python (1.1.6)]: {'title': '12화', 'season': 1, 'episode': 12, 'premiered': '2024-10-08', 'date': '2024-10-08', 'year': 2024, 'aired': '2024-10-08'}
2024-09-24 02:33:41.162 T:38239 warning <general>: Setting most video properties through ListItem.setInfo() is deprecated and might be removed in future Kodi versions. Please use the respective setter in InfoTagVideo.
2024-09-24 02:33:41.162 T:38239   debug <general>: CPythonInvoker(14, /data/.kodi/addons/metadata.tvshows.thetvdb.com.v4.python/thetvdb.py): script successfully run
thezoggy commented 2 hours ago

additional info about setInfo/InfoTagVideo: https://github.com/xbmc/xbmc/issues/22752