Sync Playlist to current date/time

Discuss client development (or even MPD development if you feel so inclined), ask questions about the client libs, MPD feature requests from client developers, etc...
Post Reply
jhonnywatson
Posts: 1
Joined: June 11th, 2018, 12:35 pm

Sync Playlist to current date/time

Post by jhonnywatson » June 11th, 2018, 12:42 pm

Hi,
I want to design a playlist for a complete month, which works like a live stream. The playlist starts for example on 1st 00:00. And if I start playing on 3rd at 4:00, I want to skip all songs which are before and start playing at exact this position. Like a live radio...

Do you know what I mean, and do you have an idea how to do it?

Sorry for my bad english!!

Best

max
Forum team
Posts: 755
Joined: January 15th, 2013, 3:43 pm

Re: Sync Playlist to current date/time

Post by max » June 11th, 2018, 2:32 pm

Probably what you need is some sort of regular check, like once every minute, which deletes all songs at the beginning of the queue which have expired. This could be done with a Python script, either as a daemon or as a cron job.

Post Reply