(2023-01-22, 22:26)danfish Wrote: Sorry for the triple post, but I fixed it! Here's how.
1) Create or download an updated t1mlib.py per the instructions here.
2) Download the existing t1m Library Routines add-on here
3) Extract the zip, replace t1mlib.py (in the lib directory) with the updated one.
4) Create a new zip of the script.module.t1mlib directory. Call it script.module.t1mlib-4.0.7-1.zip. I believe it needs to be a higher number than the existing add-on, hence the -1.
5) Place the file on a network share, a USB drive, etc. Something Kodi can see.
6) Navigate Kodi to installing an new add-on. Use the Install From Zip option and browse to your script.module.t1mlib-4.0.7-1.zip.
7) Curse Google for not allowing you east write access to your own device.
8) Enjoy!
This is not working for me at all, but I know absolutely nothing about Python or Android coding, so maybe that is not surprising. After I made the changes to the timlib, I am now getting a syntax error.
Here is what i did:
I did not edit the t1mlib.py file directly - I did a copy and past of the entire edited file from PASTEBIN into my text editor and saved it locally. I replaced the old file in the .zip archive with the new one.
After I install with the zip option, I get the syntax error on t1mlib.py line 19. If I re-install the original t1m Library Routines from github using the same zip option, I am back to the original HTMLParser error.
Assuming that I introduced some syntax problem with my copy/paste, I went back to PASTEBIN and tried the "Download" button for the edited t1mlib.py file, and I put that one into the zip library without any edits on my part. Now I am back to the original HTMLParser error, even though when I check the contents of the t1mlib.py file in the last zip file I used for the update, it DOES show the updated lines. I am lost.
Log here:
https://paste.kodi.tv/irabaqidos
In this log, I have updated the t1m library with the downloaded t1mlib.py file, and it shows the HTMLParser error.
I probably need to clarify here - I am NOT testing the NHK World add-on, the video add-ons that I am trying to get working are Fox News and Cooking.
I did install and test the PBS Kids and NHK Live add-ons that others have referenced, and they DO work with the updated t1mlib.py file. So I am guessing there is more to do for different video add0ons? I see that in kodaksmith's original post about how to do the needed changes for python with Kodi 20.0, he mentioned editing some 'EXAMPLENAME' scraper.py files, but I cannot see anything there about what specific changes are needed to those files.