This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Moving my music dir cleanly?

Tags: None
(comma "," separated)
PlasticZombie
Registered Member
Posts
21
Karma
0

Moving my music dir cleanly?

Tue Jun 06, 2006 2:47 am
I'm reorganizing the directory structure on my HDs and I'd like to move my music directory to another location. Is there any way to do so without destroying all entries in my amaroK database (ie. times played, ratings, etc)?

(NOTE: I don't want to use a symlink.)
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS

Re: Moving my music dir cleanly?

Tue Jun 06, 2006 10:40 am
Hi,
perhaps this script would help:
http://www.kde-apps.org/content/show.php?content=40008
It should help you moving your collection without loss of data.

Greetings

m0nk


If men could get pregnant, abortion would be a sacrament.
PlasticZombie
Registered Member
Posts
21
Karma
0

Re: Moving my music dir cleanly?

Tue Jun 06, 2006 11:45 am
Many thanks, I'll try it out!
PlasticZombie
Registered Member
Posts
21
Karma
0

Re: Moving my music dir cleanly?

Wed Jun 07, 2006 1:12 am
Ugh, that wasn't really what I was looking for.

I think I'm better off manipulating the database directly. That's probably not too hard.
Aaron Cooper
Registered Member
Posts
104
Karma
0

Re: Moving my music dir cleanly?

Thu Jun 08, 2006 1:02 am
Doesn't amarok have a "Reorganize" option in the context menu?  This should work (I'm not sure - never tried) and it let's you customize the directory structure, filenames, and destination directory.
User avatar
marcel
Registered Member
Posts
595
Karma
0
OS

Re: Moving my music dir cleanly?

Thu Jun 08, 2006 9:49 am
This should do the job, yes. Though, it is almost too sophisticated as it can do much more than just moving.
Try the Manage_Files->Organize_X_Files dialog, get to "Details" and do whatever you want.
User avatar
Dieter Schroeder
Registered Member
Posts
714
Karma
7
OS

Re: Moving my music dir cleanly?

Fri Jun 09, 2006 1:01 am
Hi,
sorry, but I can't find "Reorganize" in the context menu.
Is it in the menu of the playlist or the collection?

Greetings

m0nk


If men could get pregnant, abortion would be a sacrament.
User avatar
eean
KDE Developer
Posts
1016
Karma
0
OS

Re: Moving my music dir cleanly?

Fri Jun 09, 2006 9:54 am
Amarok 1.4.1 will have a feature where when you move a file, Amarok will recognize this and transfer stats etc.


Amarok Developer
Aaron Cooper
Registered Member
Posts
104
Karma
0

Re: Moving my music dir cleanly?

Fri Jun 09, 2006 1:42 pm
Dieter Schroeder wrote:Hi,
sorry, but I can't find "Reorganize" in the context menu.
Is it in the menu of the playlist or the collection?

Greetings

m0nk


You do this from the Collection tab, but unfortunately the songs lose their stats when you move them.  Lame.
User avatar
dangle_wtf
Moderator
Posts
1252
Karma
0

Re: Moving my music dir cleanly?

Sat Jun 10, 2006 10:25 am
Amarok 1.4.1 will have a feature where when you move a file, Amarok will recognize this and transfer stats etc.


"There are two theories to arguing with women. Neither one works."
.
If men could get pregnant, we'd learn the true meaning of "screaming nancyboy wuss"
Aaron Cooper
Registered Member
Posts
104
Karma
0

Re: Moving my music dir cleanly?

Sun Jun 11, 2006 4:36 pm
dangle_wtf wrote:Amarok 1.4.1 will have a feature where when you move a file, Amarok will recognize this and transfer stats etc.


Woohoo! :)  It's about time I moved all my music to a new directory... I'm getting tired of seeing "iTunes Music" in all my music paths!
PlasticZombie
Registered Member
Posts
21
Karma
0

Re: Moving my music dir cleanly?

Sun Jun 11, 2006 5:14 pm
Any SQL experts here? I'm trying to edit paths in my collection.db through the command-line SQLite client, but so far I'm not making any progress.

For example, here I want to change the beginning of `dir` on all rows in table `directories` from "/stuff/music" to "/home/walrus/music":
update directories set dir = '/home/walrus/music' || substr(dir, length('/stuff/music'), length(dir) - length('/stuff/music'))
where dir like '/stuff/music/%';
I get a message "SQL error: column dir is not unique". Not sure what the hell that's supposed to mean...
Aaron Cooper
Registered Member
Posts
104
Karma
0

Re: Moving my music dir cleanly?

Sun Jun 11, 2006 11:05 pm
I don't really know much at all about SQL, but I do know that collection.db uses a "url" field for each track in your collection.  I think this is how all the different tables are related.  You'll probably need to change the url data for each track, will you not?


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]