Re: [Banshee-List] Change Path to Music Files



On 19/01/14 15:36, Roderich Schupp wrote:
On Fri, Jan 17, 2014 at 3:57 AM, Louis W. Adams, Jr.
<LouisWAdamsJr charter net
<mailto:LouisWAdamsJr charter net>> wrote:

    How do I tell Banshee the new location of the tracks?  I saw a posting
    somewhere suggesting that sqlite3 can be used to change all the
    paths for
    all the tracks, but I don't know how to use that database. 


- make sure you have the SQLite3 CLI /usr/bin/sqlite3 installed (it's in
Debian package sqlite3)
- make sure Banshee is NOT running.
- Banshee's database is ~/.config/banshee/banshee.db, make a backup of
this file
- change the paths with the command (one line)

sqlite3 ~/.config/banshee/banshee.db \
    'update coretracks set uri = replace(uri, "OLD_PREFIX",
"NEW_PREFIX") where uri is not NULL;'

where OLD_PREFIX and NEW_PREFIX are file URIs, e.g.
"file:///home/jdoe/Music/"  -
note the three slashes after "file:", also note the trailing slash.

Cheers, Roderich

Also, if anyone is interested in a long-term solution to this, watch (or
contribute) to this:

https://bugzilla.gnome.org/show_bug.cgi?id=594751




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