It wouldn't change much. The difference in playlist.once is that it
doesn't reload automatically. What you need here is to force
reloading, almost the opposite.

On Fri, Apr 26, 2013 at 3:05 PM, Christopher Muldrow
<[email protected]> wrote:
> David, if I used playlist.once instead of playlist, would it still behave as
> described?
>
>
> On Fri, Apr 26, 2013 at 3:15 AM, David Baelde <[email protected]>
> wrote:
>>
>> Hi Chris,
>>
>> The answer is A, as you probably observed yourself. If you want the
>> playlist to reload when the switch leaves it, you could use a special
>> effect with a side condition that triggers reload (by issuing a server
>> command).
>>
>> If you have unusual file scheduling constraints, there's a point where
>> it won't make sense to struggle with the simple operators of
>> liquidsoap, and using a request.dynamic with a custom function or
>> external script will be simpler. In your example, adding one
>> transition is simple enough, but keep this in mind if you plan to go
>> further.
>>
>> Cheers,
>>
>> David
>>
>> On Fri, Apr 19, 2013 at 3:53 PM, Christopher Muldrow
>> <[email protected]> wrote:
>> > 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
>> >
>>
>>
>>
>> --
>> David
>>
>>
>> ------------------------------------------------------------------------------
>> Try New Relic Now & We'll Send You this Cool Shirt
>> New Relic is the only SaaS-based application performance monitoring
>> service
>> that delivers powerful full stack analytics. Optimize and monitor your
>> browser, app, & servers with just a few lines of code. Try New Relic
>> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
>>
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
>
>
> --
> Chris Muldrow
> Chief Digital Officer
> The Free Lance-Star Companies
> [email protected]
> 540-368-5006
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>



-- 
David

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to