Commit d2768293 authored by Antoine Cellerier's avatar Antoine Cellerier

Export the fact that a playlist item is read only or can be deleted

parent febff572
......@@ -449,6 +449,15 @@ void E_(PlaylistListNode)( intf_thread_t *p_intf, playlist_t *p_pl,
sprintf( value, "%d", i_depth );
E_(mvar_AppendNewVar)( itm, "depth", value );
if( p_node->i_flags & PLAYLIST_RO_FLAG )
{
E_(mvar_AppendNewVar)( itm, "ro", "ro" );
}
else
{
E_(mvar_AppendNewVar)( itm, "ro", "rw" );
}
E_(mvar_AppendVar)( s, itm );
}
else
......@@ -475,6 +484,15 @@ void E_(PlaylistListNode)( intf_thread_t *p_intf, playlist_t *p_pl,
sprintf( value, "%d", i_depth );
E_(mvar_AppendNewVar)( itm, "depth", value );
if( p_node->i_flags & PLAYLIST_RO_FLAG )
{
E_(mvar_AppendNewVar)( itm, "ro", "ro" );
}
else
{
E_(mvar_AppendNewVar)( itm, "ro", "rw" );
}
E_(mvar_AppendVar)( s, itm );
for (i_child = 0 ; i_child < p_node->i_children ; i_child++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment