Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kodi 17 issues #8

Closed
rocky4546 opened this issue Mar 1, 2017 · 3 comments
Closed

Kodi 17 issues #8

rocky4546 opened this issue Mar 1, 2017 · 3 comments

Comments

@rocky4546
Copy link

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
Copy link
Author

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
Copy link
Author

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 added a commit to rocky4546/gominoa-xbmc-addons that referenced this issue Mar 9, 2017
Problems associated with the 403 error and early termination of the song play is fixed with this patch.  Added maximum files cached in parallel. Added Notification capability.  Added Notification when song is started to be cached. Added Notification every 60 seconds of the % complete of the file being cached. Added wait until file is fully downloaded before ffmpeg is started on initial file.
rocky4546 added a commit to rocky4546/gominoa-xbmc-addons that referenced this issue Mar 9, 2017
Merged some of the changes/updates from pithos for python3 into this file which upgrades the file for support of 128K with non-one users.  It might also provide better one bit rates, but I do not have one, so not tested.
rocky4546 added a commit to rocky4546/gominoa-xbmc-addons that referenced this issue Mar 10, 2017
IT now downloads upto 3 files at a time to support the slow connection.  and maintains the number of downloads plus items not played on the list so that it will not run out of songs.  Has been checked with Cached and Saved.  This change does not affect the stream setting.  I have not figured out how to make streaming work with slow connections since downloads seem to be 50% of the stream rate from the Pandora server.
@rocky4546
Copy link
Author

I have fixed the issue from my fork rocky4546.

rocky4546 added a commit to rocky4546/gominoa-xbmc-addons that referenced this issue Aug 9, 2021
IT now downloads upto 3 files at a time to support the slow connection.  and maintains the number of downloads plus items not played on the list so that it will not run out of songs.  Has been checked with Cached and Saved.  This change does not affect the stream setting.  I have not figured out how to make streaming work with slow connections since downloads seem to be 50% of the stream rate from the Pandora server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant