bug-gnupod
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnupod] Delete Playlist?


From: Heinrich Langos
Subject: Re: [Bug-gnupod] Delete Playlist?
Date: Thu, 26 Mar 2009 09:53:05 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

On Wed, Mar 25, 2009 at 07:39:11PM -0400, Scott Talbert wrote:
> On Wed, 25 Mar 2009, Heinrich Langos wrote:
>
>>> Is there a way to delete a playlist with gnupod (other than editing the
>>> XML)?
>>
>> Not yet.
>>
>> But good thing you asked. I'll put that on my TODO list for gnupod_delete
>> I can simply add a "--remove-empty-playlists" option.
>>
>> Playlist handling was a little limited since gnupod_search works in a linear
>> fashion. It reads the XML file and processes it at the same time. Since
>> playlists are listed after the songs in the XML file, you could not do
>> selections or deletions based on playlist membership.
>>
>> The new gnupod_delete works in two passes. So I could add something
>> like "remove this playlist with all its files".
>
> Actually, I am looking to simply delete a playlist, regardless of what  
> songs are contained in it (some or none).  I don't want to delete any of  
> the files contained in the playlist.

Well, thats quite easy to do. I'll just have to think about a way to
integrate it into the current user interface. (I.e. wether to make a 
gnupod_delete work exclusively either on playlists or on songs, or 
wether to try to get it all in one go.)

I guess it is easier to have "gnupod_delete --playlist foo" ignore all
the filter/sort/view/limit options that apply to songs and simply 
delete the playlist.

In a second step we could have an additionl "--with-files" option that 
would only work in conjunction with "--playlist" and that would also 
remove the files from that playlist. That one could take additional
arguments to further filter the files that are to be deleted.

BTW: what happens to songs that are pdcasts by media type and not listed in
a playlist? are they visible on the ipod at all?

>> BTW: Would you like gnupod_delete to be interactive by default and
>> to have a "-f"/"--force" options for non-interactive deletion or
>> would you rather have it non-interactive by default?
>
> Hmm...good question.  Personally, I use gnupod mainly from scripts so I  
> would be using it primarily non-interactive.  But I can see where you  
> might want the default to be interactive so you would not delete files by 
> accident.

Maybe a default behaviour of only asking when more than 10(20?) songs are 
to be deleted and both --force and --interactive to allow full control?

cheers
-henrik





reply via email to

[Prev in Thread] Current Thread [Next in Thread]