Help - Search - Members - Calendar
Full Version: Question about playlist locks
Hydrogenaudio Forums > Hosted Forums > foobar2000 > General - (fb2k)
beto
QUOTE(Anas @ Apr 12 2006, 06:19 AM) *


CODE
$if(%is_playing%,'●','  ')'  '%title%
$char(9)
['['$if(%is_locked%,'L')[','$abbr(%lock_name%)]']']
$char(9)%length%


Sorry to drag this offtopic but what is a locked playlist and how do I lock/unlock it? What is the lock name?
There is zero information about this in the columns_ui site and in this forum....(or I cannot search tongue.gif )

thanks
Anas
QUOTE
Sorry to drag this offtopic but what is a locked playlist and how do I lock/unlock it? What is the lock name?

Locked playlists are for example playlists created by Autoplaylist and cannot be edited. Once a playlist is locked you can't unlock it (as far as I know). When a plugin locks a playlist it can specify a lock name (for example Playlist queue). Hope this answers your questions. biggrin.gif
foosion
A playlist lock can be removed by the same component that installed it. There can be at most lock on any given playlist. A playlist lock gives a component the ability to filter the modifications on that playlist.

The "Read-only" lock from foo_utils is a rather simple lock, it merely prevents some changes from happening. More refined locks (like "Autoplaylist" or "Playback queue") only prevent other components (including the user interface, and thereby the user) from modifying certain aspects of a playlist, but they can dynamically update the playlist contents themselves without problems.
mixcherry
OT: The source code for Autoplaylist Plugin would be very helpful. Could it be released? I'd like to create something similar to Extended Playlist Generator (from 0.8.3), but based on Autoplaylist (limit on playlist length / items, reverse sorting - that would be useful for generating 'Top 20' playlists or something).
beto
Thank you foosion and Anas. It's clear now.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.