Closed probonopd closed 3 years ago
What is is you want to run exactly? This repo is for a public lbry.tv api which would support websites like lbry.tv.
Maybe you're looking for the lbry-desktop repo, but don't think the sdk runs on arm devices without having it built there manually.
Well, I am looking for "the API Server" that is apparently required to watch Lbry on KODI.
It can use the public api we have running on api.lbry.tv
Also, maybe check out https://amp.reddit.com/r/lbry/comments/k40w1q/kodi_plugin_for_lbry/ ?
Also, maybe check out https://amp.reddit.com/r/lbry/comments/k40w1q/kodi_plugin_for_lbry/ ?
Yes, this exact plugin is the reason that I am asking, because it asks for an "API Server" to be used: https://github.com/accumulator/plugin.video.lbry/issues/3
Are you saying I can just enter api.lbry.tv
and use that with the plugin?
Give that a try, should work. The other option would be to run the lbry-sdk on the device itself, or on another device on the network and allow external access (would need to run api server on 0.0.0.0)
Entered https://api.lbry.tv
without a port number, gave an error message. /storage/.kodi/temp/kodi.log
:
2021-01-03 22:08:40.327 T:3463443312 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'simplejson.errors.JSONDecodeError'>
Error Contents: Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
File "/storage/.kodi/addons/plugin.video.lbry/lbry.py", line 6, in <module>
plugin.run()
File "/storage/.kodi/addons/plugin.video.lbry/resources/lib/plugin.py", line 403, in run
plugin.run()
File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 130, in run
self._dispatch(self.path)
File "/storage/.kodi/addons/script.module.routing/lib/routing.py", line 141, in _dispatch
view_func(**kwargs)
File "/storage/.kodi/addons/plugin.video.lbry/resources/lib/plugin.py", line 293, in lbry_new
result = call_rpc('claim_search', query)
File "/storage/.kodi/addons/plugin.video.lbry/resources/lib/plugin.py", line 59, in call_rpc
raise e
JSONDecodeError: Expecting value: line 1 column 1 (char 0)
-->End of Python script error report<--
2021-01-03 22:08:40.525 T:3446666096 ERROR: GetDirectory - Error getting plugin://plugin.video.lbry/new/1
2021-01-03 22:08:40.528 T:4093468688 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.lbry/new/1) failed
Seems to be tripping over at https://github.com/accumulator/plugin.video.lbry/blob/main/resources/lib/plugin.py#L36.
From looking at this, can you tell whether this is a command that is in a format that https://api.lbry.tv
should understand?
You can see how they are called in the network tab on lbry.tv
I don't think it was intended to work with the public api, but a local one with a running on the device.
You can try api.lbry.tv/api/v1/proxy instead.
Incredible! This works! Thank you so very, very much. :+1: :100: :1st_place_medal:
Woohoo, I'm glad to hear that! If you find the time, please comment on his repo with the details. Maybe he can make that the default since most folks wouldn't need to run a local sdk.
The pull request above does exactly that @tzarebczan. Thank you for your help.
No, thank you! Shoot me over your LBC address on Twitter Dm (@tomzarebczan) and we'll get a tip over :)
I want to run this on a small ARM-powered device which has no place for Docker. Downloaded and built it with go, but then? How to use it?
Related: https://github.com/accumulator/plugin.video.lbry/issues/3