22-05-2024, 01:12
(19-05-2024, 20:11)martinstz написа: Интересно! Явно в Коди си качват нови версии на python, но не сменят номера на версията на приложението, защото и аз съм с Коди 21, но нямам проблеми, но чета, че в последната версия на python е премахната библиотеката imp, чието импортиране в случая гърми с грешка. Качена е версия на добавката, в която е премахната тази библиотека. Пробвайте след актуализацията, как ще се държи.
Благодаря! Сега плъгина зарежда и може да търси субтитри.
Ще използвам случая да отправя още една молба като имате време - под Linux свалянето на субтитри (или разархивирането, не знам) работи само при subsunacs.
За другите провайдъри дава грешка при разрахвирането. Ако може да се оправи и това, ще съм много благодарен, а сигурно и не само аз.
Код:
2024-05-21 23:57:17.609 T:4956 error <general>: $HOME/.kodi/addons/service.subtitles.modedbg/service.py
2024-05-21 23:57:17.609 T:4956 error <general>: :319:
2024-05-21 23:57:17.609 T:4956 error <general>: SyntaxWarning
2024-05-21 23:57:17.609 T:4956 error <general>: :
2024-05-21 23:57:17.609 T:4956 error <general>: invalid escape sequence '\/'
2024-05-21 23:57:17.609 T:4956 error <general>:
2024-05-21 23:57:17.609 T:4956 error <general>:
2024-05-21 23:57:17.609 T:4956 error <general>: zf = re.search('.*\/(.+?\.zip)',zipped).group(1)
2024-05-21 23:57:17.610 T:4956 error <general>:
2024-05-21 23:57:17.610 T:4956 error <general>: $HOME/.kodi/addons/service.subtitles.modedbg/service.py
2024-05-21 23:57:17.610 T:4956 error <general>: :346:
2024-05-21 23:57:17.610 T:4956 error <general>: SyntaxWarning
2024-05-21 23:57:17.610 T:4956 error <general>: :
2024-05-21 23:57:17.610 T:4956 error <general>: invalid escape sequence '\/'
2024-05-21 23:57:17.610 T:4956 error <general>:
2024-05-21 23:57:17.610 T:4956 error <general>:
2024-05-21 23:57:17.610 T:4956 error <general>: zf = re.search('.*\/(.+?\.zip)',zipped).group(1)
2024-05-21 23:57:17.610 T:4956 error <general>:
2024-05-21 23:57:17.610 T:4956 error <general>: $HOME/.kodi/addons/service.subtitles.modedbg/service.py
2024-05-21 23:57:17.610 T:4956 error <general>: :376:
2024-05-21 23:57:17.610 T:4956 error <general>: SyntaxWarning
2024-05-21 23:57:17.610 T:4956 error <general>: :
2024-05-21 23:57:17.610 T:4956 error <general>: invalid escape sequence '\/'
2024-05-21 23:57:17.610 T:4956 error <general>:
2024-05-21 23:57:17.610 T:4956 error <general>:
2024-05-21 23:57:17.610 T:4956 error <general>: servurl = servurl.replace('\/','/')
2024-05-21 23:57:17.610 T:4956 error <general>:
2024-05-21 23:57:17.611 T:4956 error <general>: $HOME/.kodi/addons/service.subtitles.modedbg/service.py
2024-05-21 23:57:17.611 T:4956 error <general>: :385:
2024-05-21 23:57:17.611 T:4956 error <general>: SyntaxWarning
2024-05-21 23:57:17.611 T:4956 error <general>: :
2024-05-21 23:57:17.611 T:4956 error <general>: invalid escape sequence '\/'
2024-05-21 23:57:17.611 T:4956 error <general>:
2024-05-21 23:57:17.611 T:4956 error <general>:
2024-05-21 23:57:17.611 T:4956 error <general>: zipfile = dlzip.replace('\/','/')
2024-05-21 23:57:17.611 T:4956 error <general>:
2024-05-21 23:57:17.612 T:4956 error <general>: $HOME/.kodi/addons/service.subtitles.modedbg/service.py
2024-05-21 23:57:17.612 T:4956 error <general>: :503:
2024-05-21 23:57:17.612 T:4956 error <general>: SyntaxWarning
2024-05-21 23:57:17.612 T:4956 error <general>: :
2024-05-21 23:57:17.612 T:4956 error <general>: invalid escape sequence '\['
2024-05-21 23:57:17.612 T:4956 error <general>:
2024-05-21 23:57:17.613 T:4956 error <general>:
2024-05-21 23:57:17.613 T:4956 error <general>: ttitle = re.search('(.+?)\[CO', item['title'])
2024-05-21 23:57:17.613 T:4956 error <general>:
2024-05-21 23:57:18.640 T:4956 warning <general>: Create - unsupported protocol(archive) in archive://%2Fhome%2Fzeroadhesion%2F.kodi%2Fuserdata%2Faddon_data%2Fservice.subtitles.modedbg%2Ftemp%2FShogun.2024.S01E06.1080p.HEVC.x265-MeGusta.%28subsland.com%29.zip/
2024-05-21 23:57:18.644 T:4956 error <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'IndexError'>
Error Contents: list index out of range
Traceback (most recent call last):
File "$HOME/.kodi/addons/service.subtitles.modedbg/service.py", line 544, in <module>
subs = Download(params["ID"],params["link"],params["filename"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "$HOME/.kodi/addons/service.subtitles.modedbg/service.py", line 422, in Download
if xbmcvfs.exists(subtitle_list[0]):
~~~~~~~~~~~~~^^^
IndexError: list index out of range
-->End of Python script error report<--
2024-05-21 23:57:18.708 T:3845 error <general>: GetDirectory - Error getting plugin://service.subtitles.modedbg/?action=download&link=https://subsland.com/downloadsubtitles/Shogun.2024.S01E06.1080p.HEVC.x265-MeGusta.(subsland.com).zip&ID=subsland&filename=filename of the subtitle