From d9f1e1a2b8933011946d83d3472920138083c6e9 Mon Sep 17 00:00:00 2001 From: rmrector Date: Mon, 22 Apr 2024 23:55:55 +0000 Subject: [PATCH] [metadata.themoviedb.org.python] 3.0.1 --- metadata.themoviedb.org.python/addon.xml | 7 +++++-- metadata.themoviedb.org.python/changelog.txt | 3 +++ metadata.themoviedb.org.python/python/scraper.py | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/metadata.themoviedb.org.python/addon.xml b/metadata.themoviedb.org.python/addon.xml index ad49c690..ba69d20a 100644 --- a/metadata.themoviedb.org.python/addon.xml +++ b/metadata.themoviedb.org.python/addon.xml @@ -1,7 +1,7 @@ @@ -11,7 +11,10 @@ library="python/scraper.py"/> true - v3.0.0 (2024-04-17) + v3.0.1 (2024-04-22) +- fix scraper error when tags are disabled + +v3.0.0 (2024-04-17) - version 3 for Kodi 20 Nexus and above v2.2.1 (2024-04-12) diff --git a/metadata.themoviedb.org.python/changelog.txt b/metadata.themoviedb.org.python/changelog.txt index 94f88325..772e5484 100644 --- a/metadata.themoviedb.org.python/changelog.txt +++ b/metadata.themoviedb.org.python/changelog.txt @@ -1,3 +1,6 @@ +v3.0.1 (2024-04-22) +- fix scraper error when tags are disabled + v3.0.0 (2024-04-17) - version 3 for Kodi 20 Nexus and above diff --git a/metadata.themoviedb.org.python/python/scraper.py b/metadata.themoviedb.org.python/python/scraper.py index d13bb0a6..fe17c606 100644 --- a/metadata.themoviedb.org.python/python/scraper.py +++ b/metadata.themoviedb.org.python/python/scraper.py @@ -160,7 +160,8 @@ def set_info(infotag: xbmc.InfoTagVideo, info_dict): infotag.setWriters(info_dict['credits']) infotag.setDirectors(info_dict['director']) infotag.setPremiered(info_dict['premiered']) - infotag.setTags(info_dict['tag']) + if 'tag' in info_dict: + infotag.setTags(info_dict['tag']) if 'mpaa' in info_dict: infotag.setMpaa(info_dict['mpaa']) if 'trailer' in info_dict: