There is already a plugin for Bookmarks from KDF (http://code.google.com/p/kdfplugins/downloads/list) , but this is unmaintained now for a couple of years and doesn't work on newer players (i. e. Radio or Touch).
I always wanted a feature like this because i listen a lot to radio dramas / audio books and it's always a pain to find the position where you stopped listening days ago.
So finally i decided to write a new plugin for a bookmarking feature. Since there had been a couple of posts in this forum where users asked for "audio bookmarks", i post it here - perhaps it can be useful for others too.
The code is based on the "What was that tune?" plugin from mherger (http://forums.slimdevices.com/showth...+was+that+tune) - thanks for that really handy tool and all the other work you do for the squeezebox system.
There are some distinct differences:
It works automatically:
Installation:
Some notes and caveats:
Please note that i am by no means an experienced squeezebox developer and i usually don't write code in Perl, so expect some bugs. Anyway, i have tested this with
and it works quite well for me.
I always wanted a feature like this because i listen a lot to radio dramas / audio books and it's always a pain to find the position where you stopped listening days ago.
So finally i decided to write a new plugin for a bookmarking feature. Since there had been a couple of posts in this forum where users asked for "audio bookmarks", i post it here - perhaps it can be useful for others too.
The code is based on the "What was that tune?" plugin from mherger (http://forums.slimdevices.com/showth...+was+that+tune) - thanks for that really handy tool and all the other work you do for the squeezebox system.
There are some distinct differences:
- "BookmarkHistory" only works with local music, not with internet streams (this is by design, as i use the album-id to identify the currently played album)
- It keeps track of the tracknumber and the position in a track of an album you listen to (independent of the player you use)
- Albums are automatically removed from the bookmark list when you reach the end of the last track (remember: this is for setting bookmarks, not for storing favourites)
It works automatically:
- In the settings of the plugin you select the genres for which bookmarks should be used.
- If you play an album with a matching genre the plugin will keep track of the tracknumber and the position in the track while the album is played.
- The bookmarked albums are listed in the plugin menu (most recent at the top). Klicking on an album will load the album and start it at the bookmarked position.
Installation:
- Unzip the attached file in your "Plugins" folder.
- Activate the plugin in Settings -> Plugins.
- Check the plugin configuration: The settings are self explanatory. You should at least define a value for the genre filter or the plugin will also be used for music albums (which presumably you don't want) . The filter is a list of comma separated keywords - only albums in which the genre contains one of the keywords are used for bookmarking.
Some notes and caveats:
- Albums need to be tagged with tracknumbers starting from 1 ascending, otherwise the plugin will jump to the wrong track.
- Rewind and next buttons wont work for bookmarked albums (because these also trigger the newsong event which then jumps back to the bookmarked position). You can, however, use the scroll bar.
- If a genre is dropped from the "List of genres" setting it may happen that bookmarks of albums with this genre are kept in the bookmark list, even if they are fully played.
- If you start an album from the "My Music" menu and you select the track that the bookmark is set to, the player will jump to the bookmarked position (if you select another track the track will play from the start and the plugin updates the bookmark.
- Because the plugin uses the album_id's to identify an album the bookmarks will be wiped when you perform a "Full rescan" of the database
Please note that i am by no means an experienced squeezebox developer and i usually don't write code in Perl, so expect some bugs. Anyway, i have tested this with
- recent 7.9 nightly build server - but it should also work with older versions
- Radio, Receiver (and iPeng on an iPod touch) as clients
- iPeng, Squeezepad as controller apps on iPod and iPad, Squeeze Control on Android
and it works quite well for me.