Page 1 of 1

How do you move a folder (album) and retain the play count?

PostPosted: Wed Sep 14, 2011 6:46 pm
by wesssider
How do you move a folder (album) and retain the play count?

Re: How do you move a folder (album) and retain the play cou

PostPosted: Thu Sep 15, 2011 11:57 am
by bushman4
This would require a little bit of manual database manipulation.

Go to the db.view page, which is located at http://ip.address:port/contextpath/db.view

To see a list of all Music File Info, use this command:
Code: Select all
select * from music_file_info


To update the stats for a "moved" folder, use this command:
Code: Select all
update music_file_info set path="\\New\Full\Path" where path="\\Old\Full\Path"


Hope this helps,

Glenn

Re: How do you move a folder (album) and retain the play cou

PostPosted: Fri Sep 23, 2011 2:11 pm
by BKKKPewsey
Note (for me at least on Windoze) I had to be logged in with the admin account to SS 1st.
else you get an Access Denied message

Re: How do you move a folder (album) and retain the play cou

PostPosted: Wed Sep 28, 2011 12:43 am
by wesssider
This command works: select * from music_file_info

When I use this command: update music_file_info set path="C:\\New\Full\Path" where path="C:\Old\Full\Path"

I get this message below:

Error
Column not found: C:\Old\Full\Path

Re: How do you move a folder (album) and retain the play cou

PostPosted: Wed Sep 28, 2011 1:40 am
by bushman4
Those were just examples. Replace the "\\old path" with whatever the path of the folder used to be and the "\\new path" with the new folder path.

Maybe you should give more info about where you are moving files from and to and I'll help you write the correct command.

Glenn

Re: How do you move a folder (album) and retain the play cou

PostPosted: Wed Sep 28, 2011 3:06 am
by wesssider
I appreciate your assistance and I understand those were examples. It seems pretty straight forward. I'm simply moving the folder one level deeper into my 'archive' folder. I tried several different folders.

Re: How do you move a folder (album) and retain the play cou

PostPosted: Wed Sep 28, 2011 2:52 pm
by DimaH
update music_file_info set path=replace(path,'C:\Old\Full\Path', 'C:\New\Full\Path')

Re: How do you move a folder (album) and retain the play cou

PostPosted: Mon Oct 03, 2011 1:23 am
by wesssider
DimaH wrote:update music_file_info set path=replace(path,'C:\Old\Full\Path', 'C:\New\Full\Path')


Success! Thank you.