Re: update the database outside the main program?
crvi c via rhythmbox-devel <[email protected]> Fri, 26 Feb 2021 21:05:38 +0530
| Newsgroups | gmane.comp.gnome.apps.rhythmbox.devel |
|---|---|
| Message-ID | <CAAJpap7X0UVt+jeEMWxDb0qNEEGu6WZ-mhz=25jQ_scFsOzELQ@mail.gmail.com> |
--===============8015822856015327693== Content-Type: multipart/alternative; boundary="000000000000cf004105bc3f050d" --000000000000cf004105bc3f050d Content-Type: text/plain; charset="UTF-8" The public API of rhythmdb is available in https://gitlab.gnome.org/GNOME/rhythmbox/-/blob/master/rhythmdb/rhythmdb.h. This API is exported to python via GIR bindings. So, you can use rhythmdb query to get the rows you want from db, and get / set values, followed by "rhythmdb_commit" Thanks! On Wed, 24 Feb 2021 at 02:41, Lachlan via rhythmbox-devel < [email protected]> wrote: > Hi all, > > I've been trying to re-import my library to do some more plugin work, the > problem is that the import grinds to a halt really quickly after opening > and tells me that the db is read only. (nfs share and a lot of files) > > When i was using RB full-time i used to edit the xml manually and run > scripts on it, but is there an official way to edit the RB database? maybe > using python and importing the RB modules? > > If not i'll try and write up a script to do it and see how that goes > manually creating the song entries > _______________________________________________ > rhythmbox-devel mailing list > [email protected] > https://mail.gnome.org/mailman/listinfo/rhythmbox-devel > --000000000000cf004105bc3f050d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>The public API of rhythmdb is available in <a href=3D= "https://gitlab.gnome.org/GNOME/rhythmbox/-/blob/master/rhythmdb/rhythmdb.h= ">https://gitlab.gnome.org/GNOME/rhythmbox/-/blob/master/rhythmdb/rhythmdb.= h</a>. This API is exported to python via GIR bindings.</div><div><br></div= ><div>So, you can use rhythmdb query to get the rows you want from db, and = get / set values, followed by "rhythmdb_commit"</div><div><br></d= iv><div>Thanks!<br></div></div><br><div class=3D"gmail_quote"><div dir=3D"l= tr" class=3D"gmail_attr">On Wed, 24 Feb 2021 at 02:41, Lachlan via rhythmbo= x-devel <<a href=3D"mailto:[email protected]">rhythmbox-devel@gn= ome.org</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"= margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-lef= t:1ex"><div dir=3D"ltr"><div>Hi all,</div><div><br></div><div>I've been= trying to re-import my library to do some more plugin work, the problem is= that the import grinds to a halt really quickly after opening and tells me= that the db is read only. (nfs share and a lot of files)<br></div><div><br= ></div><div>When i was using RB full-time i used to edit the xml manually a= nd run scripts on it, but is there an official way to edit the RB database?= maybe using python and importing the RB modules?<br></div><div><br></div><= div>If not i'll try and write up a script to do it and see how that goe= s manually creating the song entries<br></div></div> _______________________________________________<br> rhythmbox-devel mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">rhythmbox-de= [email protected]</a><br> <a href=3D"https://mail.gnome.org/mailman/listinfo/rhythmbox-devel" rel=3D"= noreferrer" target=3D"_blank">https://mail.gnome.org/mailman/listinfo/rhyth= mbox-devel</a><br> </blockquote></div> --000000000000cf004105bc3f050d-- --===============8015822856015327693== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ rhythmbox-devel mailing list [email protected] https://mail.gnome.org/mailman/listinfo/rhythmbox-devel --===============8015822856015327693==--