-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Linux, use the system yt-dlp if available instead of embedded #103
Comments
...that or pull in the current yt-dlp master and test to see if you can get cloudflarestream URIs to playback? It works in yt-dlp itself but not sendtokodi. https://customer-aw5py76sw8wyqzmh.cloudflarestream.com/2463f6d3e06fa29710a337f5f5389fd8/iframe |
The plugin is updated once day with the upstream yt_dlp master branch. If there were changes a new plugin version is released and should be automatically updated in your Kodi instance. So we might be even faster than arch ;)? https://github.com/firsttris/plugin.video.sendtokodi/commits?author=github-actions%5Bbot%5D I have no experience in that but I assume that it is not possible to import a system wide installed python module in an embedded python environment (I simply don’t know!)? |
@nullket I have a working prototype of using external yt-dlp, which enables use of yt-dlp even on Kodi versions constrained to Python 2. I wanted to ask whether you think it's a good idea to expose a setting for users to specify the path manually? This is not done by importing Python modules (which wouldn't work on Python 2 anyway), but by parsing command output from a working executable. Nevertheless, it was implemented in about three lines of code, so it's very easy on the eyes. Just wanted a second opinion before adding the boring bits (e.g. addon settings). |
I'd be interested in seeing how this works @anohren . This addon won't work with Kodi Windows builds as yt-dlp bumped it's minver of python to 3.9 and Kodi doesn't plan on upping from 3.8 any time soon, so being able to point to an external yt-dlp executable would be useful. |
Sure, if I can find it then I can post a simple search/replace snippet here in a comment. That'd be the quickest way to get you up and running again without waiting for this addon to incorporate this (questionable) change. After that you only have to make sure the addon isn't accidentally updated, either from within Kodi (maybe just disable the repo?) or in the OS. |
Found it. Near the end of the addon's
Note that I don't know if the command line options look identical for yt-dlp on Windows, so customize as needed. Haven't used this lately but at least troubleshooting should be easier when you can call the same yt-dlp command externally and see what it spits out. |
Thanks @anohren , I was able to get this working with your example. A few more lines of code needed to be updated/commented out to make sure no attempts are made to access the yt-dlp included python code, and I threw in something to hide the yt-dlp.exe console window from popping up in front of Kodi as well. Seems to work pretty well now. Here's my version of the section that needs commenting/updating:
|
I use Arch and use the -git builds of yt-dlp. As such, it's more up to date with fixes for cloudflare streams and the like. I suggest that you determine if yt-dlp exists within the system python, and if it does, use that instead of the one embedded with the plugin.
The text was updated successfully, but these errors were encountered: