smirgol / plugin.video.crunchyroll

Watch videos from the anime platform Crunchyroll.com on Kodi
GNU Affero General Public License v3.0
51 stars 10 forks source link

Unable to go into any animes season list #40

Closed NimbusFox closed 10 months ago

NimbusFox commented 10 months ago

The Weakest Tamer Began a Journey to Pick Up Trash

2024-01-13 00:05:09.618 T:7584    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'resources.lib.model.CrunchyrollError'>
                                                   Error Contents: [400] Error occurred: Unsupported locale en-GB
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.crunchyroll/default.py", line 36, in <module>
                                                       crunchyroll.main(sys.argv)
                                                     File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/crunchyroll.py", line 82, in main
                                                       return check_mode(args, api)
                                                              ^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/crunchyroll.py", line 145, in check_mode
                                                       controller.view_season(args, api)
                                                     File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/controller.py", line 402, in view_season
                                                       req = api.make_request(
                                                             ^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/api.py", line 236, in make_request
                                                       return get_json_from_response(r)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/api.py", line 368, in get_json_from_response
                                                       raise CrunchyrollError(f"[{code}] Error occurred: {message}")
                                                   resources.lib.model.CrunchyrollError: [400] Error occurred: Unsupported locale en-GB
                                                   -->End of Python script error report<--

2024-01-13 00:05:09.759 T:7582    error <general>: GetDirectory - Error getting plugin://plugin.video.crunchyroll/?aired=2024-01-01&episode=1&genre=anime&mediatype=season&mode=seasons&plot=Stars%20are%20everything%2c%20granting%20abilities%20to%20Tamers.%20So%20when%20Ivy%20was%20born%20without%20one%2c%20her%20village%20took%20it%20as%20an%20ill%20omen!%20Now%20banished%2c%20she%20leads%20a%20lonely%20life%20of%20salvaging%20rubbish%20to%20survive.%20That%20is%20until%20she%20befriends%20Sora%2c%20a%20weak%20little%20slime%2c%20in%20the%20forest.%20Together%2c%20the%20delicate%20duo%20embarks%20on%20a%20heartwarming%20journey%20of%20survival%20and%20discovers%20there%e2%80%99s%20more%20to%20Ivy%20than%20being%20starless.&plotoutline=Stars%20are%20everything%2c%20granting%20abilities%20to%20Tamers.%20So%20when%20Ivy%20was%20born%20without%20one%2c%20her%20village%20took%20it%20as%20an%20ill%20omen!%20Now%20banished%2c%20she%20leads%20a%20lonely%20life%20of%20salvaging%20rubbish%20to%20survive.%20That%20is%20until%20she%20befriends%20Sora%2c%20a%20weak%20little%20slime%2c%20in%20the%20forest.%20Together%2c%20the%20delicate%20duo%20embarks%20on%20a%20heartwarming%20journey%20of%20survival%20and%20discovers%20there%e2%80%99s%20more%20to%20Ivy%20than%20being%20starless.&premiered=2024&rating=9.6&season=1&series_id=GQWH0M1XK&title=The%20Weakest%20Tamer%20Began%20a%20Journey%20to%20Pick%20Up%20Trash&tvshowtitle=The%20Weakest%20Tamer%20Began%20a%20Journey%20to%20Pick%20Up%20Trash&year=2024-01-01
2024-01-13 00:05:09.781 T:1401    error <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.crunchyroll/?aired=2024-01-01&episode=1&genre=anime&mediatype=season&mode=seasons&plot=Stars%20are%20everything%2c%20granting%20abilities%20to%20Tamers.%20So%20when%20Ivy%20was%20born%20without%20one%2c%20her%20village%20took%20it%20as%20an%20ill%20omen!%20Now%20banished%2c%20she%20leads%20a%20lonely%20life%20of%20salvaging%20rubbish%20to%20survive.%20That%20is%20until%20she%20befriends%20Sora%2c%20a%20weak%20little%20slime%2c%20in%20the%20forest.%20Together%2c%20the%20delicate%20duo%20embarks%20on%20a%20heartwarming%20journey%20of%20survival%20and%20discovers%20there%e2%80%99s%20more%20to%20Ivy%20than%20being%20starless.&plotoutline=Stars%20are%20everything%2c%20granting%20abilities%20to%20Tamers.%20So%20when%20Ivy%20was%20born%20without%20one%2c%20her%20village%20took%20it%20as%20an%20ill%20omen!%20Now%20banished%2c%20she%20leads%20a%20lonely%20life%20of%20salvaging%20rubbish%20to%20survive.%20That%20is%20until%20she%20befriends%20Sora%2c%20a%20weak%20little%20slime%2c%20in%20the%20forest.%20Together%2c%20the%20delicate%20duo%20embarks%20on%20a%20heartwarming%20journey%20of%20survival%20and%20discovers%20there%e2%80%99s%20more%20to%20Ivy%20than%20being%20starless.&premiered=2024&rating=9.6&season=1&series_id=GQWH0M1XK&title=The%20Weakest%20Tamer%20Began%20a%20Journey%20to%20Pick%20Up%20Trash&tvshowtitle=The%20Weakest%20Tamer%20Began%20a%20Journey%20to%20Pick%20Up%20Trash&year=2024-01-01) failed

The Wrong Way to Use Healing Magic

2024-01-13 00:01:31.423 T:7317    error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'resources.lib.model.CrunchyrollError'>
                                                   Error Contents: [400] Error occurred: Unsupported locale en-GB
                                                   Traceback (most recent call last):
                                                     File "/storage/.kodi/addons/plugin.video.crunchyroll/default.py", line 36, in <module>
                                                       crunchyroll.main(sys.argv)
                                                     File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/crunchyroll.py", line 82, in main
                                                       return check_mode(args, api)
                                                              ^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/crunchyroll.py", line 145, in check_mode
                                                       controller.view_season(args, api)
                                                     File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/controller.py", line 402, in view_season
                                                       req = api.make_request(
                                                             ^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/api.py", line 236, in make_request
                                                       return get_json_from_response(r)
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^^
                                                     File "/storage/.kodi/addons/plugin.video.crunchyroll/resources/lib/api.py", line 368, in get_json_from_response
                                                       raise CrunchyrollError(f"[{code}] Error occurred: {message}")
                                                   resources.lib.model.CrunchyrollError: [400] Error occurred: Unsupported locale en-GB
                                                   -->End of Python script error report<--

2024-01-13 00:01:31.599 T:1401    error <general>: GetDirectory - Error getting plugin://plugin.video.crunchyroll/?title=The+Wrong+Way+to+Use+Healing+Magic&tvshowtitle=The+Wrong+Way+to+Use+Healing+Magic&season=1&episode=2&plot=An+ordinary+walk+home+from+school+turns+into+an+epic+journey+for+Usato.+After+suddenly+being+dropped+into+another+world+with+two+fellow+students%2C+Usato+learns+he+was+summoned+there+by+accident.+But+things+turn+around+when+he+discovers+a+unique+aptitude+for+healing+magic%21+Now%2C+he+trains+beyond+human+limitations%2C+using+his+self-healing+abilities+to+gain+absurd+strength+and+unrivaled+stamina.&plotoutline=An+ordinary+walk+home+from+school+turns+into+an+epic+journey+for+Usato.+After+suddenly+being+dropped+into+another+world+with+two+fellow+students%2C+Usato+learns+he+was+summoned+there+by+accident.+But+things+turn+around+when+he+discovers+a+unique+aptitude+for+healing+magic%21+Now%2C+he+trains+beyond+human+limitations%2C+using+his+self-healing+abilities+to+gain+absurd+strength+and+unrivaled+stamina.&series_id=G0XHWM1EK&year=2024-01-01&aired=2024-01-01&premiered=2024&rating=9.8&mediatype=season&mode=seasons&genre=anime
2024-01-13 00:01:31.601 T:1401    error <general>: CGUIMediaWindow::GetDirectory(plugin://plugin.video.crunchyroll/?title=The+Wrong+Way+to+Use+Healing+Magic&tvshowtitle=The+Wrong+Way+to+Use+Healing+Magic&season=1&episode=2&plot=An+ordinary+walk+home+from+school+turns+into+an+epic+journey+for+Usato.+After+suddenly+being+dropped+into+another+world+with+two+fellow+students%2C+Usato+learns+he+was+summoned+there+by+accident.+But+things+turn+around+when+he+discovers+a+unique+aptitude+for+healing+magic%21+Now%2C+he+trains+beyond+human+limitations%2C+using+his+self-healing+abilities+to+gain+absurd+strength+and+unrivaled+stamina.&plotoutline=An+ordinary+walk+home+from+school+turns+into+an+epic+journey+for+Usato.+After+suddenly+being+dropped+into+another+world+with+two+fellow+students%2C+Usato+learns+he+was+summoned+there+by+accident.+But+things+turn+around+when+he+discovers+a+unique+aptitude+for+healing+magic%21+Now%2C+he+trains+beyond+human+limitations%2C+using+his+self-healing+abilities+to+gain+absurd+strength+and+unrivaled+stamina.&series_id=G0XHWM1EK&year=2024-01-01&aired=2024-01-01&premiered=2024&rating=9.8&mediatype=season&mode=seasons&genre=anime) failed

This happens for multiple anime as evidenced by the logs above.

These errors occur when I want to load up the season list for an anime. I can watch streams fine if they are in my resume or history but I cannot go looking for a new anime to watch

NimbusFox commented 10 months ago

Never mind I found a solution. Changing my subtitles from English UK to English US fixed it.

smirgol commented 10 months ago

Good point though. I don't think there is a en-GB language on Crunchyroll any more. I guess there was in the past, but looking at the data I can't find anything that supports that any more. I probably should remove it from the settings. I'll re-open this, so I don't forget about it. :)

smirgol commented 10 months ago

resolved in staging. Note that you need to re-set language settings due to inevitable breaking changes. The addon should inform you about that when starting it, too.