I've managed to corrupt my xml files a fair bit over the years so i
always make a backup first now. ;)

Thanks for sharing your plugin, editing the xml directly is fine and i
can modify yours and my existing code to do what i want.

Thank you

-----Original Message-----

Date: Mon, 11 Dec 2017 12:00:40 +0200
Subject: Re: [Rhythmbox-devel] Does PlaylistManager allow a plugin to
'monitor' a playlist folder?
To: rhythmbox-devel@gnome.org
From: Petko Ditchev <pditc...@gmail.com>

  
    
  
  
    I believe that it's not possible via
      the PlaylistManager class, but you could use some other python
      library to watch the folder (I don't know which but I guess there
      is one out there). I've written an extension to pick a folder for
      playlists and then manually import or export from it, so if you
      want to add an auto sync functionality you can use that code.
      Beware though that it's very easy to corrupt your playlists when
      you automate the improt/export stuff because RB automatically
      removes songs from playlists if it doesn't find them (which
      doesn't normally happen but when you reorganize stuff or use
other
      apps on your library it's a risk). Here's my plugin: https://gith
ub.com/petko10/rhythmbox-plugin-playlists-import-export

      

      On 11/12/17 04:41, lachlan-00 wrote:

    

    
>       If it's possible I was going to write a plugin to allow the
>         following
>       
> 
>       
>       Pick a folder to store playlists (eg
>         ~/.local/share/rhythmbox/playlists)
>       When the plugin loads it will search that folder for
>         playlists.
>       Once m3u's are found either create or update playlists.xml
>       Add checks for mod time and a refresh button to preferences.
>       
> 
>       
>       Does RB.PlaylistManager.parse_file allow this?
>       
> 
>       
>       
> 
>       _______________________________________________
> rhythmbox-devel mailing list
> rhythmbox-devel@gnome.org
> https://mail.gnome.org/mailman/listinfo/rhythmbox-devel
> 
>     

    

    

  

_______________________________________________
rhythmbox-devel mailing list
rhythmbox-devel@gnome.org
https://mail.gnome.org/mailman/listinfo/rhythmbox-devel
_______________________________________________
rhythmbox-devel mailing list
rhythmbox-devel@gnome.org
https://mail.gnome.org/mailman/listinfo/rhythmbox-devel

Reply via email to