Howdy, howdy,
My first post on the first add-on I've worked on.
I've taken the good work @
kodaksmith and @
learningit did with this add-on, added some functionality and prettied it up a bit. I've been enjoying it for about a month and decided to share. I've added functionality for 'The Agenda', podcasts, search, and new listings for 'Series', 'Docs' and 'A-Z'. Where possible, I list ALL of the shows on a single page. 'The Agenda' only allows 20 results at a time. Podcasts show 50 results per page. I even added the schedule since it was there on the tvo.org website and simple to add. I've included air dates where available and you can sort by title, date, duration and episode (although the season and episode data provided by the website are misleading sometimes. For example, when looking at a list of series, 'season' and 'episode' refer to the LATEST episode and not how many seasons and episodes TVO provides of each series).
My search is a little clunky but works. It's a two step process of typing your search term and then clicking on the 'Search for: <your search>' link that appears. That avoids the 'Enter search term' pop-up showing up and having to retype your search whenever a refresh happens while on the first page of results. And no, just hitting <Escape> doesn't get around it (some odd search results show up). If someone knows of a way to do it in one step I'd love to add it to the code. Also, the TVO website provides a nice filter to include only search results of 'type' = 'video' but I've been unsuccessful getting that filter to work with the python requests module. Instead I have to grab 100 results at a time and pick out the 'video' ones. Again, if you can get the filter working please let me know how. I may add a 'Search history' later on.
I'm not sure of the best way to share but this is how you can get this code:
-add 'https://ertyertyerty.github.io/' as a source in your 'File manager'
-go through the process to install an add-on from a zip file, choosing the source you just created, and install the 't1mlib' zip file first followed by the 'tvo' zip file. The 'tvo' file needs the updated 't1mlib' file so order is important.
Regarding @
barney63's last post, I'm still using Kodi 19.5 but this MAY fix your problem. One thing I noticed while using the original t1mlib library were warnings in the log about 'xbmc.translatePath' being deprecated. It looks like Kodi 20 or 20.1 may have officially gotten rid of it. It's been replaced with 'xbmcvfs.translatePath'. You can either try my files or edit your existing t1mlib.py file, adding those three 'vfs' letters to the nine times 'xbmc.translatePath' is used.