cywteow / gogoanime

Kodi plugin to watch gogoanime
14 stars 6 forks source link

GoGoAnime error on launch #13

Closed Johnny5sword closed 2 years ago

Johnny5sword commented 2 years ago

Hi! It's me again from #12 .

Versions

Issue

After clicking the GoGoAnime Add-on, it's loading for a little while and then shows a banner notification of GoGoAnime error and directs me to the Add-ons directory screen.

Logs

ERROR LOG ``` ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<-- - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: Error Contents: module 'xbmcvfs' has no attribute 'translatePath' Traceback (most recent call last): File "/private/var/mobile/Containers/Data/Application/BF188770-BE9D-4BA9-BBE9-A8799AF0E4B1/Documents/Kodi/addons/plugin.video.gogoanime/addon.py", line 5, in from resources.lib.database import InternalDatabase, ExternalDatabase File "/private/var/mobile/Containers/Data/Application/BF188770-BE9D-4BA9-BBE9-A8799AF0E4B1/Documents/Kodi/addons/plugin.video.gogoanime/resources/lib/database.py", line 8, in __profile__ = xbmcvfs.translatePath(Addon().getAddonInfo('profile')) AttributeError: module 'xbmcvfs' has no attribute 'translatePath' -->End of Python script error report<-- ```
cywteow commented 2 years ago

You're still running from IOS? It seems like there is a folder path issue. It's unable to retrieve the folder path from your device. Honestly, kodi is not designed to run in IOS.

cywteow commented 2 years ago

Try to get kodi 19.4 here

https://kodi.tv/download/ios

Johnny5sword commented 2 years ago

Unfortunately, 64-bit Kodi builds aren't compatible with my device (iPad 2 - 32-bit). So this is the last Kodi version(v19 from appdb.to) I could find and install. From https://mirrors.kodi.tv/releases/darwin/ , 18.9 was the last released version listed there for ios(32bits) while 19.4 is only available for ios-arm64.

Johnny5sword commented 2 years ago

I'm gonna try changing xbmc translatePath like the suggested solution over here: https://github.com/maloep/romcollectionbrowser/issues/442 maybe that could work? might as well try it

cywteow commented 2 years ago

My code is already using xbmcvfs instead of xbmc from the error log.

Johnny5sword commented 2 years ago

Welp, there seems to be no solution. I'm just gonna close this then. Thanks for sparing me your time

Johnny5sword commented 2 years ago

I managed to get it working on my side:

I changed all xbmcvfs.translatePath -> xbmc.translatePath in

It launches without error. Most sources work now and search is now fixed for me.

cywteow commented 2 years ago

Nice, this is for kodi 19 alpha version?

Johnny5sword commented 2 years ago

Yep, Kodi 19.0-ALPHA1 Git:20191116-136925bb7b Looks like the newer xbmcvfs still wasn't available back then

cywteow commented 2 years ago

Yea. Hope you get an android tv or device soon XD this method isn't gonna last very long and resolveurl may be out of support soon.