From me@lachlandewaard.org Mon Dec 11 02:47:02 2017 Return-Path: X-Original-To: rhythmbox-devel@gnome.org Delivered-To: rhythmbox-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 85CC2762ED for ; Mon, 11 Dec 2017 02:47:02 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.002 X-Spam-Level: X-Spam-Status: No, score=-0.002 tagged_above=-999 required=2 tests=[BAYES_20=-0.001, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CiMt-rZy5h8t for ; Mon, 11 Dec 2017 02:47:01 +0000 (UTC) X-Greylist: delayed 304 seconds by postgrey-1.34 at restaurant.gnome.org; Mon, 11 Dec 2017 02:47:01 UTC Received: from lachlandewaard.org (105.8.70.115.static.exetel.com.au [115.70.8.105]) by smtp.gnome.org (Postfix) with ESMTPS id 698C6762E2 for ; Mon, 11 Dec 2017 02:47:01 +0000 (UTC) Received: from df2106.local ([::ffff:203.16.236.143]) (AUTH: PLAIN user, TLS: TLSv1/SSLv3,256bits,AES256-GCM-SHA384) by lachlandewaard.org with ESMTPSA; Mon, 11 Dec 2017 12:34:58 +1000 id 0000000000F60002.000000005A2DEED2.00000506 Message-ID: <1512960111.1520.17.camel@lachlandewaard.org> From: lachlan-00 To: rhythmbox-devel@gnome.org Date: Mon, 11 Dec 2017 12:41:51 +1000 Content-Type: multipart/alternative; boundary="=-Bzzit3vY7aIQ0Y3jCGOT" X-Mailer: Evolution 3.26.2 Mime-Version: 1.0 Subject: [Rhythmbox-devel] Does PlaylistManager allow a plugin to 'monitor' a playlist folder? X-BeenThere: rhythmbox-devel@gnome.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Rhythmbox developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 02:47:02 -0000 --=-Bzzit3vY7aIQ0Y3jCGOT Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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? --=-Bzzit3vY7aIQ0Y3jCGOT Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit
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?
--=-Bzzit3vY7aIQ0Y3jCGOT-- From pditchev@gmail.com Mon Dec 11 10:00:46 2017 Return-Path: X-Original-To: rhythmbox-devel@gnome.org Delivered-To: rhythmbox-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id B8F35762ED for ; Mon, 11 Dec 2017 10:00:46 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I3ohKkI8FoO0 for ; Mon, 11 Dec 2017 10:00:45 +0000 (UTC) Received: from mail-wm0-f66.google.com (mail-wm0-f66.google.com [74.125.82.66]) by smtp.gnome.org (Postfix) with ESMTPS id 5643376220 for ; Mon, 11 Dec 2017 10:00:44 +0000 (UTC) Received: by mail-wm0-f66.google.com with SMTP id r78so13283206wme.5 for ; Mon, 11 Dec 2017 02:00:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language; bh=96afBKR3hr8P3l/uENTjwB8l9EU6zaJtCeFIs1jiyLg=; b=oDSCQBvw1PBPuLn0PgEJ9LlRsl+KZTLtOENz5DqP7GHy3+PfpOwhlMCE2SocBuHJdo /3h94lIFi1Y8UM0gCbG7mCXe6oFAVCtjDAqVyXHvA1zL7e9WPwGIxItJI1iMbvFfRGkB cu4V5fRwBxtom0AKaLNWk9SgH3E14oxaVgUK2FBf2O5iOlwaGeP7ur4HHDBcvL2rl0PA XiPx+RvBLE60F1lSHK8sxO1+30NGXk4DoFAAsHCGqB5PEghBmlRImwa4orndhOjV1UmW NjdEzOXniCICoIiJ5BMtb1zhMH4BehZVEg8PA3SuU98yIilul+qIFFTUPA4b8SU5qYLS qH0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=96afBKR3hr8P3l/uENTjwB8l9EU6zaJtCeFIs1jiyLg=; b=lJhwrorjlexl/QiBiKk1JE/qtAyUG8ro+3kLPvwHXw0sRtYc2A2QTXFPvxTpu8Mg4P 9SgWB5uyYCmRzv3Tf7TyJQLFkconuAflUFPedz2kceBNoeQVpInG7Zww/4zVA5vK0XNV RwgqdOmdOS1V54wCBFdnb/czTZf7hZ8+ZJ9rg+dxmlcyiC89HMPul5xwXjlZrJKWUxzl jQRddlLqmCaUzaBaPuTton4HYZ0o8qV448dLC4cyps+GiY3bWSDIfgQFfzczcaaA3lsP 4dsD+2TIW6oGYmkXCWQdCDP5UXsADQG9yn57IjFVszD1LmYO+pkw02Vu2UJKsM5JiPEN KjgA== X-Gm-Message-State: AKGB3mKQl2YwYdNS4t+u5ScPBWqQGGasoNuJDV9rN4NkyrWZdcUdfVHM eoWW0zJMJM/UN/oeYfTaY9I1XX8b X-Google-Smtp-Source: ACJfBosMU4EpmPl49WVOHTuPrQuZVwCDQ1IIRGlHmokuptzvVxmsxyKkQOVZy+kwIVO+gVH2FpxO9g== X-Received: by 10.80.187.99 with SMTP id y90mr345597ede.154.1512986441789; Mon, 11 Dec 2017 02:00:41 -0800 (PST) Received: from [192.168.1.102] (176-12-6-165.pon.spectrumnet.bg. [176.12.6.165]) by smtp.googlemail.com with ESMTPSA id e49sm6776921eda.90.2017.12.11.02.00.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Dec 2017 02:00:41 -0800 (PST) To: rhythmbox-devel@gnome.org References: <1512960111.1520.17.camel@lachlandewaard.org> From: Petko Ditchev Message-ID: <9573eb27-059a-8f8b-5b6a-079960cfbe5d@gmail.com> Date: Mon, 11 Dec 2017 12:00:40 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <1512960111.1520.17.camel@lachlandewaard.org> Content-Type: multipart/alternative; boundary="------------BB1E54D526F2B85F65F2EEE3" Content-Language: en-US Subject: Re: [Rhythmbox-devel] Does PlaylistManager allow a plugin to 'monitor' a playlist folder? X-BeenThere: rhythmbox-devel@gnome.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Rhythmbox developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Dec 2017 10:00:46 -0000 This is a multi-part message in MIME format. --------------BB1E54D526F2B85F65F2EEE3 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit 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://github.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 --------------BB1E54D526F2B85F65F2EEE3 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit
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://github.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


--------------BB1E54D526F2B85F65F2EEE3-- From me@lachlandewaard.org Tue Dec 12 06:00:50 2017 Return-Path: X-Original-To: rhythmbox-devel@gnome.org Delivered-To: rhythmbox-devel@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.gnome.org (Postfix) with ESMTP id 62C6076357 for ; Tue, 12 Dec 2017 06:00:50 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.278 X-Spam-Level: X-Spam-Status: No, score=-0.278 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_SBL=1.623] autolearn=no Received: from smtp.gnome.org ([127.0.0.1]) by localhost (restaurant.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1S3i6AnTtWc2 for ; Tue, 12 Dec 2017 06:00:45 +0000 (UTC) Received: from lachlandewaard.org (105.8.70.115.static.exetel.com.au [115.70.8.105]) by smtp.gnome.org (Postfix) with ESMTPS id 91632762ED for ; Tue, 12 Dec 2017 06:00:44 +0000 (UTC) Received: from df2106.local ([::ffff:203.16.236.143]) (AUTH: PLAIN user, TLS: TLSv1/SSLv3,256bits,AES256-GCM-SHA384) by lachlandewaard.org with ESMTPSA; Tue, 12 Dec 2017 15:53:43 +1000 id 0000000000F80002.000000005A2F6EE7.00001654 Message-ID: <1513058438.1520.34.camel@lachlandewaard.org> From: lachlan-00 To: rhythmbox-devel@gnome.org Date: Tue, 12 Dec 2017 16:00:38 +1000 In-Reply-To: <9573eb27-059a-8f8b-5b6a-079960cfbe5d@gmail.com> References: <1512960111.1520.17.camel@lachlandewaard.org> <9573eb27-059a-8f8b-5b6a-079960cfbe5d@gmail.com> Content-Type: multipart/alternative; boundary="=-CmbuxA3yxATJ8eCY/ufY" X-Mailer: Evolution 3.26.2 Mime-Version: 1.0 Subject: Re: [Rhythmbox-devel] Does PlaylistManager allow a plugin to 'monitor' a playlist folder? X-BeenThere: rhythmbox-devel@gnome.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Rhythmbox developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Dec 2017 06:00:50 -0000 --=-CmbuxA3yxATJ8eCY/ufY Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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 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 --=-CmbuxA3yxATJ8eCY/ufY Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 7bit
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?
From: Petko Ditchev <pditchev@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://github.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
--=-CmbuxA3yxATJ8eCY/ufY--