bneijt / ipfs-video-kodi

Kodi video addon to play IPFS video content
https://ipfs.video
GNU General Public License v3.0
15 stars 6 forks source link

Add multiple rootCIDs #5

Closed anand-bitra closed 2 years ago

anand-bitra commented 2 years ago

Please add this code to take multiple rootCIDs. settings.xml : <?xml version="1.0" encoding="utf-8" standalone="yes"?>

main.py : Next the line 21 if _rootCid == "rootCid1": _rootCid = xbmcplugin.getSetting(_handle, "rootCid1") elif _rootCid == "rootCid2": _rootCid = xbmcplugin.getSetting(_handle, "rootCid2") elif _rootCid == "rootCid3": _rootCid = xbmcplugin.getSetting(_handle, "rootCid3") elif _rootCid == "rootCid4": _rootCid = xbmcplugin.getSetting(_handle, "rootCid4") elif _rootCid == "rootCid5": _rootCid = xbmcplugin.getSetting(_handle, "rootCid5")

bneijt commented 2 years ago

This will still only have one active root cid at a time, I think it makes more sense to allow for multiple root cid's that are all active at the same time, but that would mean we have to merge the file tree and I could not come up with a way to solve collisions.

Do you have any ideas on what we should be doing here? Maybe we should add support for ipns?

bneijt commented 2 years ago

Released 0.0.7 https://github.com/bneijt/ipfs-video-kodi/releases/tag/0.0.7

Hope this closes all the issues you posted, if not, feel free to post more issues.

Thank you for testing this plugin!