Skip to main content

Remember and restore playback progress for specified tracks.

Project description

Latest PyPI version CI build status Test coverage

Remember and restore playback progress for specified tracks.

The extension can be configured to save progress on any track you want to based on pattern matching, meaning you can enable it only for relevant media, e.g. podcasts and audiobooks.

Progress is saved continually while a track is being played. Whenever that same track is played again, the extension will restore the saved progress so you can listen from where you left off.

When a track is played to its end, the saved progress will reset. It is also possible to reset the saved progress by stopping (not pausing) the track.

Installation

Install by running:

python3 -m pip install Mopidy-Progress

Configuration

The default configuration looks like this:

[progress]
enabled = true
min_length_minutes = 30
patterns =

    ^podcast\+

With the defaults, progress will be saved for tracks from the Mopidy-Podcast extension and tracks that are longer than 30 minutes. Other tracks will always play from the beginning as normal.

To change this behaviour, you must add configuration for Mopidy-Progress to your Mopidy configuration file:

[progress]
enabled = true
min_length_minutes = [integer]
patterns =

    [pattern],
    [pattern],
    ...

The ‘patterns’ setting determines which tracks progress will be remembered for based on their track URI.

You can find the URI of a track in several ways, one of them being adding the track to any playlist and then opening the playlist file in a text editor. (By default playlists are stored in ~/.local/share/mopidy/m3u/)

Patterns use regular expression matching. Be aware that some symbols will have special meaning in regular expressions and must be escaped, like the ‘+’ symbol this pattern:

^podcast+

The above pattern matches any track with an URI starting with ‘podcast+’, which will be any track from the Mopidy-Podcast extension.

Another example of an expression could be:

^local:track:Audiobooks

This one matches all tracks in a special user-defined directory of the Mopidy-Local extension. For more information on such directories, consult the readme for [Mopidy-Local](https://github.com/mopidy/mopidy-local).

Project resources

Credits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Mopidy-Progress-0.1.7.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Mopidy_Progress-0.1.7-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file Mopidy-Progress-0.1.7.tar.gz.

File metadata

  • Download URL: Mopidy-Progress-0.1.7.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for Mopidy-Progress-0.1.7.tar.gz
Algorithm Hash digest
SHA256 5d4db22b085b87182d222585455bf3085d9a8e06249e29ad971ba73bc965df5d
MD5 ce097e51ca26bd6f0128c508a3dbe1d9
BLAKE2b-256 9b3162f34e5ffa9a537023354fc670fe6ebeac2ab13a3f4c2142d2c6a121a622

See more details on using hashes here.

File details

Details for the file Mopidy_Progress-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for Mopidy_Progress-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6cf72905451f46349c73db79fd1287dfce24f3756bdb93de844880a63287da94
MD5 0b5749f5b0b7b9fef75b75206cda9dc6
BLAKE2b-256 68c0421aa02a12ee594eeff0513e5f94c696e4b32f98595f51684ba86609bd83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page