Giter Site home page Giter Site logo

bossanova808 / script.service.playbackresumer Goto Github PK

View Code? Open in Web Editor NEW
6.0 6.0 5.0 377 KB

Kodi utility to periodically save restore prints - in case of crashes. (Development repo from May 2019)

License: GNU General Public License v3.0

Python 100.00%

script.service.playbackresumer's People

Contributors

bossanova808 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

script.service.playbackresumer's Issues

where to get the python2 version?

the hevc HW accel of my tvbox cannot work well in kodi 18 and 19, it has to stay with kodi 17.
is there any way to get the old version working with kodi 17 / python 2?

TypeError thrown

ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: '<' not supported between instances of 'NoneType' and 'int'
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.service.playbackresumer/resources/lib/player.py", line 32, in onPlayBackStopped
self.update_resume_point(-2)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.service.playbackresumer/resources/lib/player.py", line 134, in update_resume_point
if Store.library_id < 0:
TypeError: '<' not supported between instances of 'NoneType' and 'int'
-->End of Python script error report<--

Possible audio player addition

Would be great if this could work for the audio player as well as the video.

My use case is with a raspberry Pi for media playing in the car. I have a Mausberry 4A power supply that monitors the acc line and gives the pi about 30-40 seconds to shut down gracefully before killing the power. On resume, though, Kodi wants to start over with music selection, which is a bummer if you just ran got out of the car for a minute.

In a perfect world, Kodi would remember where in the file structure the player was, in addition to where in the song, and cue the song at the same point. Iโ€™d say having it cued in a paused state would be ideal, so that it could be resumed when ready, not just automatically blasting everyone without notice. If I had a wishlist these things would be on it.

Thanks for the consideration!
Erik

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.