2022-01-31, 21:43
On Kodi-19 I'm trying to replace the script.module.youtube.dl Kodi addon with script.module.yt-dlp since youtube-DL is dormant and not keeping up with changes which are breaking it. I want to share my experience to see if the behaviors are expected, if there is a workaround, or if it looks like I'm doing something very wrong.
I thought that I could do a simple replacement, but I have found some issues that require some rework. I'm testing using several applications, including this one. My success is spotty. I can fairly reliably download 'live TV shows that I can view' to disk. Live TV generally plays, but a number of shows are blocked due to geography, a license, etc. But I can play and download a few.
So far, I have been unable to play Website videos. I get various errors, which have changed through the day, which seems to be a youtube thing. At first I was getting errors about reusing a stream with a different server. Then, I noticed some urls which repeated the url prefix: 'https://youtube.../https://youtube... Now I'm getting no-permission (pasting url in browser gives same behavior). I have also seen what appears to be a few utf-8 issues, which I have tried to patch. Other than that I see "index out of bounds' errors while navigating some of the live-tv pages (which I don't think are related to yt-dlp).
I big challenge for me is that although I have used youtube-dl in my (unreleased) addon, I am not an expert at it. I find that I'm having to learn a lot in a short period of time (filters, internals, multiple apis) and I don't know how the apis should behave, other than through experimentation. (Welcome to programming)
Any comments are welcome
I thought that I could do a simple replacement, but I have found some issues that require some rework. I'm testing using several applications, including this one. My success is spotty. I can fairly reliably download 'live TV shows that I can view' to disk. Live TV generally plays, but a number of shows are blocked due to geography, a license, etc. But I can play and download a few.
So far, I have been unable to play Website videos. I get various errors, which have changed through the day, which seems to be a youtube thing. At first I was getting errors about reusing a stream with a different server. Then, I noticed some urls which repeated the url prefix: 'https://youtube.../https://youtube... Now I'm getting no-permission (pasting url in browser gives same behavior). I have also seen what appears to be a few utf-8 issues, which I have tried to patch. Other than that I see "index out of bounds' errors while navigating some of the live-tv pages (which I don't think are related to yt-dlp).
I big challenge for me is that although I have used youtube-dl in my (unreleased) addon, I am not an expert at it. I find that I'm having to learn a lot in a short period of time (filters, internals, multiple apis) and I don't know how the apis should behave, other than through experimentation. (Welcome to programming)
Any comments are welcome