diff --git a/CHANGES.md b/CHANGES.md index c7e30ea4..9cba35c2 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,10 @@ -### 3.32.0 (2024-06-25 21:15:00 UTC) +### 3.32.1 (2024-06-26 01:15:00 UTC) + +* Fix update tvinfo test data +* Fix type of self.plays_self + + +### 3.32.0 (2024-06-25 21:15:00 UTC) * Update apprise 1.6.0 (0c0d5da) to 1.8.0 (81caf92) * Update attr 23.1.0 (67e4ff2) to 23.2.0 (b393d79) diff --git a/lib/api_tmdb/tmdb_api.py b/lib/api_tmdb/tmdb_api.py index 64516a8d..0355bccd 100644 --- a/lib/api_tmdb/tmdb_api.py +++ b/lib/api_tmdb/tmdb_api.py @@ -360,8 +360,8 @@ class TmdbIndexer(TVInfoBase): characters.append( TVInfoCharacter(name=clean_char_name, ti_show=ti_show, person=[_it_person_obj], episode_count=character.get('episode_count'), - plays_self=clean_char_name and - (clean_char_name or '').lower() in ('self', clean_lower_person_name)) + plays_self=enforce_type(clean_char_name and + (clean_char_name or '').lower() in ('self', clean_lower_person_name), bool, False)), ) _it_person_obj.characters = characters @@ -768,8 +768,8 @@ class TmdbIndexer(TVInfoBase): clean_lower_person_name = (clean_person_name or '').lower() or None character_obj = TVInfoCharacter( name=clean_char_name, - plays_self=clean_char_name and - (clean_char_name or '').lower() in ('self', clean_lower_person_name), + plays_self=enforce_type(clean_char_name and + (clean_char_name or '').lower() in ('self', clean_lower_person_name), bool, False), person=[ TVInfoPerson( p_id=person_obj['id'], name=clean_person_name, diff --git a/lib/api_trakt/indexerapiinterface.py b/lib/api_trakt/indexerapiinterface.py index 0318901c..13b235a8 100644 --- a/lib/api_trakt/indexerapiinterface.py +++ b/lib/api_trakt/indexerapiinterface.py @@ -333,7 +333,8 @@ class TraktIndexer(TVInfoBase): _ti_character = TVInfoCharacter( name=clean_ch, regular=c.get('series_regular'), ti_show=ti_show, person=[result], episode_count=c.get('episode_count'), - plays_self=(clean_ch or '').lower() in ('self', clean_lower_person_name)) + plays_self=enforce_type((clean_ch or '').lower() in + ('self', clean_lower_person_name), bool, False)) pc.append(_ti_character) ti_show.cast[(RoleTypes.ActorGuest, RoleTypes.ActorMain)[ c.get('series_regular', False)]].append(_ti_character) diff --git a/lib/api_tvmaze/tvmaze_api.py b/lib/api_tvmaze/tvmaze_api.py index f019d360..90c6e336 100644 --- a/lib/api_tvmaze/tvmaze_api.py +++ b/lib/api_tvmaze/tvmaze_api.py @@ -443,7 +443,8 @@ class TvMaze(TVInfoBase): sizes={TVInfoImageSize.original: c.character.image['original'], TVInfoImageSize.medium: c.character.image['medium']})] ch.append(TVInfoCharacter(name=self._clean_character_name(c.character.name), - ti_show=ti_show, episode_count=1, plays_self=c.character.plays_self, + ti_show=ti_show, episode_count=1, + plays_self=enforce_type(c.character.plays_self, bool, False), voice=c.character.voice, image= c.character.image and c.character.image.get('original'), thumb_url= c.character.image and c.character.image.get('medium'), @@ -537,7 +538,8 @@ class TvMaze(TVInfoBase): sizes={TVInfoImageSize.original: c.character.image['original'], TVInfoImageSize.medium: c.character.image['medium']})] ch.append(TVInfoCharacter(name=_clean_char_name, ti_show=ti_show, regular=regular, episode_count=1, - person=[_ti_person_obj], plays_self=c.character.plays_self, + person=[_ti_person_obj], + plays_self=enforce_type(c.character.plays_self, bool, False), voice=c.character.voice, image=c.character.image and c.character.image.get('original'), thumb_url=c.character.image and c.character.image.get('medium'), @@ -631,7 +633,8 @@ class TvMaze(TVInfoBase): TVInfoCharacter(image=cur_ch.image and cur_ch.image.get('original'), name=self._clean_character_name(cur_ch.name), ids=TVInfoIDs({TVINFO_TVMAZE: cur_ch.id}), - p_id=cur_ch.id, person=[person], plays_self=cur_ch.plays_self, + p_id=cur_ch.id, person=[person], + plays_self=enforce_type(cur_ch.plays_self, bool, False), thumb_url=cur_ch.image and cur_ch.image.get('medium'), ti_show=_s_o )) diff --git a/tests/mock_data/tvinfo_api_tests/038445677435284fabfae2ef510aae6158d0986f91821227d794aa0de97452bd.obj_data b/tests/mock_data/tvinfo_api_tests/038445677435284fabfae2ef510aae6158d0986f91821227d794aa0de97452bd.obj_data index 0b9507f5..6b67618e 100644 Binary files a/tests/mock_data/tvinfo_api_tests/038445677435284fabfae2ef510aae6158d0986f91821227d794aa0de97452bd.obj_data and b/tests/mock_data/tvinfo_api_tests/038445677435284fabfae2ef510aae6158d0986f91821227d794aa0de97452bd.obj_data differ diff --git a/tests/mock_data/tvinfo_api_tests/070c5721d6cd64ed2c8bb774d64cee3c6059a6778f917a3e2b45635a11763cd1.obj_data b/tests/mock_data/tvinfo_api_tests/070c5721d6cd64ed2c8bb774d64cee3c6059a6778f917a3e2b45635a11763cd1.obj_data index 96fa38bd..d964549c 100644 Binary files a/tests/mock_data/tvinfo_api_tests/070c5721d6cd64ed2c8bb774d64cee3c6059a6778f917a3e2b45635a11763cd1.obj_data and b/tests/mock_data/tvinfo_api_tests/070c5721d6cd64ed2c8bb774d64cee3c6059a6778f917a3e2b45635a11763cd1.obj_data differ diff --git a/tests/mock_data/tvinfo_api_tests/138fdd17c4f07812a4c6419958132e2cdc40576a93140db023034f77fcf0f924.data b/tests/mock_data/tvinfo_api_tests/138fdd17c4f07812a4c6419958132e2cdc40576a93140db023034f77fcf0f924.data deleted file mode 100644 index e3bccc8a..00000000 Binary files a/tests/mock_data/tvinfo_api_tests/138fdd17c4f07812a4c6419958132e2cdc40576a93140db023034f77fcf0f924.data and /dev/null differ diff --git a/tests/mock_data/tvinfo_api_tests/32cdb79136fdfa5fb9692246faee7375ca6bbdc212bf09691bd812ba7a6aa86e.data b/tests/mock_data/tvinfo_api_tests/32cdb79136fdfa5fb9692246faee7375ca6bbdc212bf09691bd812ba7a6aa86e.data deleted file mode 100644 index 1a4bce08..00000000 Binary files a/tests/mock_data/tvinfo_api_tests/32cdb79136fdfa5fb9692246faee7375ca6bbdc212bf09691bd812ba7a6aa86e.data and /dev/null differ diff --git a/tests/mock_data/tvinfo_api_tests/3a94845fdb57c43edbad3d9421eaf4e7f7e02fff947900d2fe4bb2ea831441f5.data b/tests/mock_data/tvinfo_api_tests/3a94845fdb57c43edbad3d9421eaf4e7f7e02fff947900d2fe4bb2ea831441f5.data new file mode 100644 index 00000000..a1370733 Binary files /dev/null and b/tests/mock_data/tvinfo_api_tests/3a94845fdb57c43edbad3d9421eaf4e7f7e02fff947900d2fe4bb2ea831441f5.data differ diff --git a/tests/mock_data/tvinfo_api_tests/49b250c07b75302ae0a9d91c31ed7669f446b08745580f7ccb4afd8ebb1171b8.data b/tests/mock_data/tvinfo_api_tests/49b250c07b75302ae0a9d91c31ed7669f446b08745580f7ccb4afd8ebb1171b8.data new file mode 100644 index 00000000..d636ea16 Binary files /dev/null and b/tests/mock_data/tvinfo_api_tests/49b250c07b75302ae0a9d91c31ed7669f446b08745580f7ccb4afd8ebb1171b8.data differ diff --git a/tests/mock_data/tvinfo_api_tests/5c131c71caee42943f77986490761f7eaf3a6306725a9974e22e4e926af40739.data b/tests/mock_data/tvinfo_api_tests/5c131c71caee42943f77986490761f7eaf3a6306725a9974e22e4e926af40739.data deleted file mode 100644 index a158ef73..00000000 Binary files a/tests/mock_data/tvinfo_api_tests/5c131c71caee42943f77986490761f7eaf3a6306725a9974e22e4e926af40739.data and /dev/null differ diff --git a/tests/mock_data/tvinfo_api_tests/6608b7844c63d79667a76763ef1d2ebf79aced77b0be2b030fa3739a5e3b8594.data b/tests/mock_data/tvinfo_api_tests/6608b7844c63d79667a76763ef1d2ebf79aced77b0be2b030fa3739a5e3b8594.data new file mode 100644 index 00000000..d7d5915a Binary files /dev/null and b/tests/mock_data/tvinfo_api_tests/6608b7844c63d79667a76763ef1d2ebf79aced77b0be2b030fa3739a5e3b8594.data differ diff --git a/tests/mock_data/tvinfo_api_tests/67c6166cd63b9882ca5f87c6c99765f402b29fcf767d75bb292f0246531f416d.obj_data b/tests/mock_data/tvinfo_api_tests/67c6166cd63b9882ca5f87c6c99765f402b29fcf767d75bb292f0246531f416d.obj_data index 346db3db..bf05ab6b 100644 Binary files a/tests/mock_data/tvinfo_api_tests/67c6166cd63b9882ca5f87c6c99765f402b29fcf767d75bb292f0246531f416d.obj_data and b/tests/mock_data/tvinfo_api_tests/67c6166cd63b9882ca5f87c6c99765f402b29fcf767d75bb292f0246531f416d.obj_data differ diff --git a/tests/mock_data/tvinfo_api_tests/688c32a119d14f722f980690d4c5b4b24b6bbaa37c93646c8ddb323d3abd5941.data b/tests/mock_data/tvinfo_api_tests/688c32a119d14f722f980690d4c5b4b24b6bbaa37c93646c8ddb323d3abd5941.data new file mode 100644 index 00000000..973bb799 Binary files /dev/null and b/tests/mock_data/tvinfo_api_tests/688c32a119d14f722f980690d4c5b4b24b6bbaa37c93646c8ddb323d3abd5941.data differ diff --git a/tests/mock_data/tvinfo_api_tests/6d76968f3b9ddf4188024166f0155e4499097b7f2c7d70e36912f1430a49a5a1.data b/tests/mock_data/tvinfo_api_tests/6d76968f3b9ddf4188024166f0155e4499097b7f2c7d70e36912f1430a49a5a1.data new file mode 100644 index 00000000..da8af040 Binary files /dev/null and b/tests/mock_data/tvinfo_api_tests/6d76968f3b9ddf4188024166f0155e4499097b7f2c7d70e36912f1430a49a5a1.data differ diff --git a/tests/mock_data/tvinfo_api_tests/847df805242d6d6889406e463f15ca6ae8c4d09f1019c27bba58b1dc955b69d1.data b/tests/mock_data/tvinfo_api_tests/847df805242d6d6889406e463f15ca6ae8c4d09f1019c27bba58b1dc955b69d1.data deleted file mode 100644 index 48efea00..00000000 Binary files a/tests/mock_data/tvinfo_api_tests/847df805242d6d6889406e463f15ca6ae8c4d09f1019c27bba58b1dc955b69d1.data and /dev/null differ diff --git a/tests/mock_data/tvinfo_api_tests/9da3eaf89b3f76c323011b7f3d882313c5a884cc0875035840c45c6628014d35.data b/tests/mock_data/tvinfo_api_tests/9da3eaf89b3f76c323011b7f3d882313c5a884cc0875035840c45c6628014d35.data deleted file mode 100644 index 49d99d72..00000000 Binary files a/tests/mock_data/tvinfo_api_tests/9da3eaf89b3f76c323011b7f3d882313c5a884cc0875035840c45c6628014d35.data and /dev/null differ diff --git a/tests/mock_data/tvinfo_api_tests/browse_start_date.data b/tests/mock_data/tvinfo_api_tests/browse_start_date.data index 0d07eb76..4dca93b3 100644 --- a/tests/mock_data/tvinfo_api_tests/browse_start_date.data +++ b/tests/mock_data/tvinfo_api_tests/browse_start_date.data @@ -1 +1 @@ -2024-01-11 \ No newline at end of file +2024-06-25 \ No newline at end of file diff --git a/tests/mock_data/tvinfo_api_tests/db16905196eddeffaf3f5a0e987e6dd7b8d4371f8a0e774f35e3c206f2393b6f.data b/tests/mock_data/tvinfo_api_tests/db16905196eddeffaf3f5a0e987e6dd7b8d4371f8a0e774f35e3c206f2393b6f.data new file mode 100644 index 00000000..88bc1615 Binary files /dev/null and b/tests/mock_data/tvinfo_api_tests/db16905196eddeffaf3f5a0e987e6dd7b8d4371f8a0e774f35e3c206f2393b6f.data differ diff --git a/tests/mock_data/tvinfo_api_tests/dcb3ba5cdec38f0c7504756f7f4e26db3fe8a73659c89072aeea544acd62ea2a.obj_data b/tests/mock_data/tvinfo_api_tests/dcb3ba5cdec38f0c7504756f7f4e26db3fe8a73659c89072aeea544acd62ea2a.obj_data index 73a037bd..566ee288 100644 Binary files a/tests/mock_data/tvinfo_api_tests/dcb3ba5cdec38f0c7504756f7f4e26db3fe8a73659c89072aeea544acd62ea2a.obj_data and b/tests/mock_data/tvinfo_api_tests/dcb3ba5cdec38f0c7504756f7f4e26db3fe8a73659c89072aeea544acd62ea2a.obj_data differ diff --git a/tests/mock_data/tvinfo_api_tests/dd38622fc86a1a77e81864dc8540e0f850de203181d7c9b422ec8fd944b0a107.obj_data b/tests/mock_data/tvinfo_api_tests/dd38622fc86a1a77e81864dc8540e0f850de203181d7c9b422ec8fd944b0a107.obj_data index bda9612c..82763552 100644 Binary files a/tests/mock_data/tvinfo_api_tests/dd38622fc86a1a77e81864dc8540e0f850de203181d7c9b422ec8fd944b0a107.obj_data and b/tests/mock_data/tvinfo_api_tests/dd38622fc86a1a77e81864dc8540e0f850de203181d7c9b422ec8fd944b0a107.obj_data differ diff --git a/tests/mock_data/tvinfo_api_tests/e91784d192f37a47e43a02946c1ce3e67a4188d4ea34a5b752655a1da6ead1cc.data b/tests/mock_data/tvinfo_api_tests/e91784d192f37a47e43a02946c1ce3e67a4188d4ea34a5b752655a1da6ead1cc.data new file mode 100644 index 00000000..919ffa95 Binary files /dev/null and b/tests/mock_data/tvinfo_api_tests/e91784d192f37a47e43a02946c1ce3e67a4188d4ea34a5b752655a1da6ead1cc.data differ diff --git a/tests/mock_data/tvinfo_api_tests/efde2d6c71174c56417094effa9400e8878d02fe33db28b9dc32cb13f8c92795.data b/tests/mock_data/tvinfo_api_tests/efde2d6c71174c56417094effa9400e8878d02fe33db28b9dc32cb13f8c92795.data deleted file mode 100644 index b070bb32..00000000 Binary files a/tests/mock_data/tvinfo_api_tests/efde2d6c71174c56417094effa9400e8878d02fe33db28b9dc32cb13f8c92795.data and /dev/null differ diff --git a/tests/mock_data/tvinfo_api_tests/f5a4724a646d1130923e6fdb9bad253444c192f4a26ae0c4983b88c274f6580b.data b/tests/mock_data/tvinfo_api_tests/f5a4724a646d1130923e6fdb9bad253444c192f4a26ae0c4983b88c274f6580b.data deleted file mode 100644 index 5918a202..00000000 Binary files a/tests/mock_data/tvinfo_api_tests/f5a4724a646d1130923e6fdb9bad253444c192f4a26ae0c4983b88c274f6580b.data and /dev/null differ diff --git a/tests/mock_data/tvinfo_api_tests/f8cea51a7466f77d5157b77338c2cc22240f0030008e9cec2a1fb3c2af388f56.obj_data b/tests/mock_data/tvinfo_api_tests/f8cea51a7466f77d5157b77338c2cc22240f0030008e9cec2a1fb3c2af388f56.obj_data index bda9612c..82763552 100644 Binary files a/tests/mock_data/tvinfo_api_tests/f8cea51a7466f77d5157b77338c2cc22240f0030008e9cec2a1fb3c2af388f56.obj_data and b/tests/mock_data/tvinfo_api_tests/f8cea51a7466f77d5157b77338c2cc22240f0030008e9cec2a1fb3c2af388f56.obj_data differ diff --git a/tests/mock_data/tvinfo_api_tests/fd225f6274b24f5b1905bc272d25d18e7203b033818d5ac2ba8d470231e15a2c.obj_data b/tests/mock_data/tvinfo_api_tests/fd225f6274b24f5b1905bc272d25d18e7203b033818d5ac2ba8d470231e15a2c.obj_data index 4b1e16a6..0b872a7b 100644 Binary files a/tests/mock_data/tvinfo_api_tests/fd225f6274b24f5b1905bc272d25d18e7203b033818d5ac2ba8d470231e15a2c.obj_data and b/tests/mock_data/tvinfo_api_tests/fd225f6274b24f5b1905bc272d25d18e7203b033818d5ac2ba8d470231e15a2c.obj_data differ