Hi Sergey,

2013/10/1 ๓ลาวลส ้ืมฮฯื <genunix@tut.by>
> Hello!
> I need help in following issue. I need to insert a small playlist at the beginning of each hour. Playlist is generated automatically by the cron.
> This is important part of script.
> def playlist_watch(uri)
> š pl = playlist.once(reload_mode="watch", uri)
> š merge_tracks(usmart_crossfade(pl))
> end
> radio = switch([({ 6h-11h }, šmrn_radio),
> š š š š š š š š ({ 11h-18h }, day_radio),
> š š š š š š š š ({ 18h-6h }, ševn_radio)])
> radio = fallback(
> track_sensitive=false,
> transitions=[to_news, to_music],
> [switch([({00m00s-00m03s}, playlist_watch("#{playlists}/news.pls")),
> š š š š š š š({30m00s-30m03s}, playlist_watch("#{playlists}/news30.pls")),
> š š š š š š š({45m00s-45m03s}, playlist_watch("#{playlists}/weather.pls"))
> š š š š š š]),
> š š radio, default])
> radio = normalize(usmart_crossfade(start_next=4., width=3.5, radio))
> The first track in the playlist, which is reloaded with playlist.once, played twice! I need to khow why and how can I resolve this!

I just tried this very simple script:
ššoutput.ao(fallible=true, playlist.once("/path/to/directory"))

And the first track was only played once.. Perhaps there's another part in your script that causes the issue? What is for instance the definition of usmart_crossfade? What happens when you execute just a single playlist.once with nothing else?