I'm struggling with some timing issues with some switches, and I THINK I've
narrowed down the problem to a misunderstanding on my part of how the
reload on a playlist works.
Let's say I've got two playlists I've created that are both about an hour
long, made up of multiple songs. Each one has a file as the very first
"song" on the playlist that needs to be played every hour as the new
playlist starts.
Now, I set those up as so:
timelessdrive1 = playlist(mode="normal", prefix="replay_gain:",
reload_mode="watch", "/mnt/musicMount/playlists/timelessdrive2.m3u")
timelessdrive2 = playlist(mode="normal", prefix="replay_gain:",
reload_mode="watch", "/mnt/musicMount/playlists/timelessLEGALID12550.m3u")
And I decided I want to write a switch to schedule these, so I do that:
default = switch([
({0h-0h59m}, timelessdrive1),
({1h-1h59m}, timelessdrive2),
({2h-2h59m}, timelessdrive1)
])
Now, let's say that I don't quite play all the tracks in timelessdrive1
before my switch hits. (Let's say it's an hour and 15 minutes instead of an
hour)
When I switch BACK to timelessdrive1 at 2 a.m., will it A) start where I
left off the first time I switched from it or B) go back to the beginning
of the playlist when I call it the second time?
If the answer is A, how should I call the playlists to make it behave as B?
Thanks in advance!
--
Chris Muldrow
Chief Digital Officer
The Free Lance-Star Companies
[email protected]
540-368-5006
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users