steeve / plugin.video.pulsar

Pulsar addon for XBMC/Kodi
http://forum.kodi.tv/showthread.php?tid=200957
Other
546 stars 351 forks source link

How to add custom provider / headers needed to get 'url' ? #159

Open jokoast opened 8 years ago

jokoast commented 8 years ago

I wanna add/try a custom pulsar provider, how to do this ? No point on the way to do this.

jokoast commented 8 years ago

I dit it, connect to Kodi with SSH and clone the custom provider in the addons folder, next to plugin.video.pulsar for example.

I wanna report an other issue. The .zip file in the last 2 versions commit are broken, if anybody have the issue (You have to restart XBMC before using Pulsar), uninstall and download the .zip file for the release tab, worked for me.

Uninstall Pulsar -> Reboot -> Reinstall Pulsar from the right source -> Reboot -> "Pulsar Daemon has started" -> Install the unofficial pulsar provider or you customs one and enjoy.

Nice job btw.

jokoast commented 8 years ago

In the same way, it's impossible to create a custom provider when we have to go through an api. All my shit works except when i have to return in the dict the url to download the torrent because the function you use don't accept headers so impossible to join to Pulsar the Authorization needed by the api to download the torrent.

An alternative ? Download the torrent with open() and in the url maybe join the absolute path to the file ? I'm thinking, i'm not pro in Python (and english) so if you have a digest way to do this, tell me. :)