gominoa / gominoa-xbmc-addons

13 stars 23 forks source link

Kodi 17 issues #8

Closed rocky4546 closed 7 years ago

rocky4546 commented 7 years ago

I am having issues using Pandoki within Kodi 17. System is Ubuntu 16.04 with Intel NUC. I am not a Pandora One user. When I try streaming only, it works for the first 2 songs and then terminates by crashing kodi and having kodi restart. The kodi log indicates a http 403 error is the last thing which occurs. I have seen 403 errors that it works through and does not crash. I have not dug into the issue to have any more info at this time.

If I try the setting Cache or Full Save, it will start playing the first song, then terminate after about 5-10 seconds to play the second and then the third. At some point, it just stops playing, but does not seem to crash. The log indicates that the stream was cut and only a partial file was provided. I have a 70Mb internet speed, so that should not be the issue. I have tried changing the delay time to 30 and it will still happen.

I am a SWE and have some python programming experience with Kodi. If you want any help debugging, testing, etc., let me know, but that is up to you.

rocky4546 commented 7 years ago

I have determined the issue. Pandora periodically has a slow download rate and pandoki is not setup to handle this. The end result is that Pandora shuts down to you because of how pandoki is pounding on the server. I have made changes to the .../plugin.audio.pandoki/resources/lib/pandoki/pankodi.py file that seems to correct this issue. The change will cause pandoki to delay playing the first song until it is downloaded. The player needed to have the complete file before starting to play. It also has a setting at the top of the file to set the max downloads at a time. (I did not update the settings to keep this simple). It is currently set to 3 downloads at the same time. So, the impact is that it might take 3-4 minutes before it starts playing, but then it works fine. Required settings are: Track Handling: Anything but Stream_Only should work.

To Install, you will need to download the file, remove the ".txt" from the end of the filename and replace the file at .../plugin.audio.pandoki/resources/lib/pandoki/pankodi.py Note if a kodi addon update is pushed and the change is not made to the baseline, then the file will revert.

This is an extremely nice product! Let me know if this works for others... Sincerely... pandoki.py.txt

rocky4546 commented 7 years ago

I have also updated the mypithos script to support 128K for non-one users. With this, you will get 32K for low, 64K for medium and 128K for high. It is attached. To Install, download file, remove the ".txt" from the end of the filename and replace the file at .../plugin.audio.pandoki/resources/lib/mypithos/pithos.py pithos.py.txt

rocky4546 commented 7 years ago

I have fixed the issue from my fork rocky4546.