service.autosubs
service.autosubs copied to clipboard
Kodi 20 and autosubs - kodi crash
`2023-01-24 11:10:38.916 T:1118 info
2023-01-24 11:11:01.204 T:1144 info
i have the same problem due to the attribute error, but i don't know how to fix it.
A temporary method to start kodi is to delete the plugin directory, in my case:
/home/astr/.kodi/addons/service.autosubs
@Wolvverine @chris2677 I have published #51 that should fix this issue. The problem is that I don't really know if this repository is in active maintenance. You can try fixing the issue by yourself - by doing these steps:
- Open file /home/astr/.kodi/addons/service.autosubs/resources/lib/autosubs.py in notepad (I am on Windows, for Linux use nano or vi)
- Change following code in the beginning of the file:
#!/usr/bin/python
import os
import xbmc
import xbmcaddon
Add line import xbmcvfs
as new line after import xbmc
- the beginning of your file should look like this:
#!/usr/bin/python
import os
import xbmc
import xbmcvfs
import xbmcaddon
- Replace the text
xbmc.translatePath
withxbmcvfs.translatePath
- example: line that looks like this__cwd__ = xbmc.translatePath(__addon__.getAddonInfo('path'))
should be now__cwd__ = xbmcvfs.translatePath(__addon__.getAddonInfo('path'))
This should fix the error.
It worked perfectly. I had to change all 3 paths so it looks like this. cwd = xbmcvfs.translatePath(addon.getAddonInfo('path')) profile = xbmcvfs.translatePath(addon.getAddonInfo('profile')) resource = xbmcvfs.translatePath(os.path.join(cwd, 'resources'))
Thanks for your help it's working perfectly now
T
On Tue, Feb 7, 2023 at 9:48 AM ghostxwheel @.***> wrote:
@Wolvverine https://github.com/Wolvverine @chris2677 https://github.com/chris2677 I have published #51 https://github.com/amet/service.autosubs/pull/51 that should fix this issue. The problem is that I don't really know if this repository is in active maintenance. You can try fixing the issue by yourself - by doing these steps:
- Open file /home/astr/.kodi/addons/service.autosubs/resources/lib/autosubs.py in notepad (I am on Windows, for Linux use nano or vi)
- Change following code in the beginning of the file:
#!/usr/bin/python
import os import xbmc import xbmcaddon
Add line import xbmcvfs as new line after import xbmc - the beginning of your file should look like this:
#!/usr/bin/python
import os import xbmc import xbmcvfs import xbmcaddon
- Replace the text xbmc.translatePath with xbmcvfs.translatePath - example: line that looks like this cwd = xbmc.translatePath(addon.getAddonInfo('path')) should be now cwd = xbmcvfs.translatePath(addon.getAddonInfo('path'))
This should fix the error.
— Reply to this email directly, view it on GitHub https://github.com/amet/service.autosubs/issues/50#issuecomment-1421199265, or unsubscribe https://github.com/notifications/unsubscribe-auth/APDORD4TVDJLROFJ34JB2PTWWKDITANCNFSM6AAAAAAUE5IQBI . You are receiving this because you were mentioned.Message ID: @.***>
@ghostxwheel @chris2677 Maybe ask the repo owner if he will update the projects?
I have pulled in the changes, if someone can submit it to Kodi for review @schumi2004 ?
Sorry for my late response. Let me test and submit it.
I actually just uninstalled the plugin for the same error and reinstalled today (4/22/2023). The official kodi repo has the plugin at version 1.1.1 as of today. I made these changes and it got rid of this error.
However, my system was still crashing, specifically when I would navigate in my skin to the MOVIES category AND have the "watched" movies flag turned on, it would crash nearly immediately. (If I had the view set to unwatched it did not crash). I could move the "watched" movies so they weren't in the path; it wouldn't crash. Thus, I had to "find" the offending movie(s) that once worked, and no longer did. The reason why I am mentioning it here is because I found said movie, and when I removed the subs that were in that folder, the crashing stopped.
Sadly I deleted those subs completely so I cant submit them for review. With debug logging on, and component logging on, the error above was one of them and with the offending sub file removed, everything is ok again.
I have same error when I install autosubs on android tv