firsttris / plugin.video.sendtokodi

:tv: plays various stream sites on kodi using youtube-dl
MIT License
121 stars 27 forks source link

Unable to play direct stream link #89

Closed edwin0991 closed 1 year ago

edwin0991 commented 1 year ago

Describe the bug Whenever I try to play direct stream link, nothing happens. I tried sending the link via Kore remote and also via sendtokodi android app. No response. However, youtube videos play just fine by url.

To Reproduce No video plays when I send direct url to addon.

Expected behavior Link should stream in kodi video player. I also tried different links, none worked.

Kodi and sendtokodi version (please complete the following information):

Provide a Kodi log

http://paste.kodi.tv/amidozefov

Logs show plugin.video.sendtokodi not found. But i have the latest version installed.

In case a certain website does not work for you

Additional context I have tried different direct kinks , none worked. However, youtube links play fine when i send via the Kore remote.

nullket commented 1 year ago

Can you please elaborate the term direct links a bit further? I am assuming you mean anything but YouTube links?

Could you please check YouTube links when they are send via the sendtokodi iOS app/browser plugin and not via kore? Depending on your kore settings it might be the case that YouTube links are send to the YouTube plugin and NOT to sendtokodi.

Furthermore, your log shows a lot of errors from sendtokodi. I assume there are some breaking changes in Kodi v20 we haven’t checked yet. I can look into this but it might take some time (not in doing but in finding free time)

Finally, please provide a link and a log where it works and also both for an example where it does not work as intended.

nullket commented 1 year ago

There was also a breaking change in kodi 20 which seems to avoid automatic updates. Please remove the sendtokodi repository AND the addon completely and reinstall it by installing the repo from zip and then the addon from the repo (within kodi)

edwin0991 commented 1 year ago

https://paste.kodi.tv/vuyicakele. These are the logs. Here are the things i tried.

  1. Direct link from kore. Didnt work.
  2. Direct link via sendtokodi app. Didnt work.
  3. Direct youtube link from kore. Didnt work.
  4. Direct youtube link from send to kodi app. Didnt work.
  5. Direct youtube link with prefer sendtokodi addon unticked from Kore. WORKED.

I will the new addon in the zip later.

nullket commented 1 year ago

Based on your log you do not even have the sendtokodi plugin installed at all. Your point 5 works as kore then uses the YouTube addon instead of SendToKodi.

Please remove all sendtokodi repo traces you find (uninstall the repo(s)). Then install the repo from the zip file linked above (do not use a previous downloaded one). Afterwards within Kodi open the just installed repo and install the sendtokodi addon from there.

edwin0991 commented 1 year ago

https://paste.kodi.tv/camovoqonu This is log file with your zip file. I think i was not installing it correctly. Now atleast it shows in my video addons.

nullket commented 1 year ago

I seems like some library is not available on your system. Might be due to the fact that you use some kind of android environment?

I will check if it works on a fresh Linux install (to make sure it does not only work on my machine which has the dependencies maybe installed for another reason).

Please go to the addon settings and set the resolver to YouTube-dl (per default it uses yt-dlp) and try again (include a log if you can). Maybe that is a workaround for the dependency problem.

Also if you have a Linux/Windows plattform and could install Kodi and the addon there just for testing, that would be great!

edwin0991 commented 1 year ago

I am using an android tv. Youtube-dl works. Here are the logs http://paste.kodi.tv/xusitidoxe But yt-dlp does not work. Thanks for your help.

nullket commented 1 year ago

yt-dlp is more or less the newer and a bit more maintained resolver. Therefore, it is the default. Internally it uses pycryptodome which seems to be preinstalled in kodi. On a completely fresh setup within kodi 20 on linux I had no issues at all with using our addon. So I am guessing this is an Android issue.

Based on my 2 minute research there was in fact an issue with pycryptodome on android platforms. I am guessing that this issue still persists in a certain way. Please make sure you system is updated and if the problems remains, you might want to open an issue in the kodi/xbmc repo with a log which has the pycryptodome traceback in it.

I am closing this for now, as it seems like this issue is not fixable for us and is a general kodi on android issue. Feel free to still reply here.

nullket commented 1 year ago

The pycryptodome packaging issue on Android should be resolved on 20.1 according to the kodi changelog.