dknlght / dkodi

GNU General Public License v2.0
15 stars 22 forks source link

Dramago Movies and TV Genre GetDirectory Errors #14

Open DedStovk opened 6 years ago

DedStovk commented 6 years ago

When selecting Dramago Movies Genres and/or TV Genres, they generate the following addon errors:

ERROR: GetDirectory - Error getting plugin://plugin.video.dramago/?mode=6&name=TV%20Show%20Genres&url=http%3a%2f%2fapi.dramago.com%2fGetAllShows

ERROR: GetDirectory - Error getting plugin://plugin.video.dramago/?mode=5&name=Movie%20Genres&url=http%3a%2f%2fapi.dramago.com%2fGetAllMovies

neqch commented 6 years ago

As an update, I can expand a little bit about this error. The error in my case comes from DramaGo version 1.0.10 on Kodi 17.3.

From the kodi log file, there is an instance of the error for either "Movie Genres" or "TV Show Genres" (i.e., the same result):

ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--

I am omitting part of the log where it mentions the line of code on the default.py of the plugin (I can add it if needed) and after this you get what DedStovk posted.

This KeyError (u7f9e) references an asian character (unicode) that exist in the api.dramago html list when you search for the movie or TV show genres. More specifically, the genre that seems to have this code is the "Sports" genre but only when this specific list is requested (GetGenres).

Actually, when you check the list on a browser you get that it is not only one unicode, but five: "Sport \u7f9e\u7f9e\u7684\u94c1\u62f3", translating I guess to "Sport 羞羞的铁拳". I think the list works up to the point where it hits the first unicode and cannot continue.

I am not sure but I vaguely remember this working before, but I didn't follow update timeline and found out about it while trying to use the plugin.

Any ideas let us know.

Thanks.

lems111 commented 6 years ago

@dknlght - this is such a popular add-on. I am using krypton version in nvidia shieldtv and getting error when trying to install from repo