Closed arpejupe closed 3 years ago
Same issue on Raspbian Buster 10.
Disabling subtitles (ticked grey to the left)in the add-on settings fixes the issue, and the subtitles still load (whut)
Happy debugging ;-)
That is weird about the subtitles showing when turned off! I think Kodi must consume the old subtitle file? I have done some cleaning up to try and stop that from happening. I've been working to switch to Python 3 for Kodi Matrix, and fix all the issues that have accumulated (see feature/matrix branch). This is a large change as the HTML parser I was using wasn't ported to Matrix. I think everything is working apart from the speakers list now. However, the updated plugin will not support earlier versions.
I'm not really using Kodi actively these days. Is upgrading to Matrix going to be straightforward, or is it something that is likely to drag on for a while?
Is upgrading to Matrix going to be straightforward
I'm still on 18.7, the update from 17 was smooth, no noticeable issues. I will hold off until it's marked as stable (and hold a little more, because I don't want to debug my TV :-p )
I think Kodi must consume the old subtitle file
This is what I thought about the subtitles, but I cleanup the .kodi/temp/*.lwp
and .kodi/temp/*.srt
and tried a new video. Subtitles loaded :-o
Thought, I think your warning about memory leak if the option is disable is quite on point ^^
Hi moreginger, I'm looking for a solution or a temporary patch for this video issue (and also to understand the state of the bug). I read a post by user "kodaksmith" on Kodi forum where he suggests to comments two lines on ted-talks-scraper.py. Next of this comments there's a comment by you where you talked about a library (parsedom) that was not ported to Python 3.
I've look further in code and I see that this method call ted subtitles passing id of the video and language, for example compoing an url similar to:
https://www.ted.com/talks/subtitles/id/123/lang/it
This link return a Json file with delays and subtitles to show.
I stopped here with my investigation. So what I don't understand (maybe for my poor english) is:
Thanks a lot, and sorry if I had bothered you.
Dario
EDIT: I see that my log is different:
2021-05-02 18:33:43.590 T:2418008944 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the followi>
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS! Error Type: <type 'exceptions.Exception'> Error Contents: Could not parse HTML: <!DOCTYPE html><> for url 'http://feedproxy.google.com/~r/TEDTalks_video/~3/9_KooZWtaxg/karen_scrivener_a_co> Traceback (most recent call last): File "/storage/.kodi/addons/plugin.video.ted.talks/default.py", line 16, in
ted_talks.Main(args_map=args_map).run() File "/storage/.kodi/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 326> modes[mode].run(self.args_map) File "/storage/.kodi/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 138> self.run_internal(args) File "/storage/.kodi/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 156> self.ui.playVideo(args['url'], args['icon'] if 'icon' in args else None) File "/storage/.kodi/addons/plugin.video.ted.talks/resources/lib/ted_talks.py", line 71,> title, url, subs, info_labels = self.ted_talks.getVideoDetails(url=url, video_quality=> File "/storage/.kodi/addons/plugin.video.ted.talks/resources/lib/ted_talks_scraper.py", > raise type(e)(e.message + "\nfor url '%s'" % (url)) Exception: Could not parse HTML: <!DOCTYPE html><> for url 'http://feedproxy.google.com/~r/TEDTalks_video/~3/9_KooZWtaxg/karen_scrivener_a_co> -->End of Python script error report<--
@hammeronthenet
Thanks for the information, and no problem. There are at least two issues in play:
In the interim, you may be able to get playback to work by disabling subtitles, which are completely broken due to TED site changes (specifically the code to extract the "introDuration" for the subtitles is broken). I'm not sure from the stack trace above if that will be enough.
So in summary, I hope to have a working addon for Matrix soon, and backporting fixes to older versions of Kodi may happen if I have time, but it's not a priority for me.
Having not had any more feedback about this, I'm assuming the working matrix version in the kodi repos is sufficient.
Kodi 18.2-Leia is not playing any videos on Libreelec 9.0.2 Generic.x86_64