holizz / cplay

curses front-end for various audio players
GNU General Public License v2.0
22 stars 13 forks source link

resuming feature for playlist (audiobooks/podcast) ? #4

Open gotbletu opened 8 years ago

gotbletu commented 8 years ago

Not sure if this project is still alive but hope someone can add this feature =)

Wish cplay would automatically save the position where you left off when you exit (per playlist) and resume when you open that playlist again. This is mainly for long audiobooks/podcast.

I found a commandline script to do this but I like the cplay ncurses interface better.

This is the current script i found that has resuming for mplayer m3u playlist. Maybe you can use the existing code and add that to cplay. https://github.com/pts/mplaylist/blob/master/mplaylist

Thanks

xi commented 8 years ago

Sorry to hijack this feature request, but I hope this is ok because I did not see any activity in this repo for a while.

I am maintaining a fork of cplay at https://github.com/xi/cplay-ng. I tried to implement your request with some changes in https://github.com/xi/cplay-ng/pull/1. Could you please give me feedback on that?

Note that I did not implement resuming per playlist but per directory because the playlist in cplay is not really bound to a playlist file on disk. You could for example start cplay with a playlist like this: cplay test.m3u, then delete the whole playlist and add some file manually. It would be strange if the data would be saved as test.m3u.pos.