Manually Edit Number Of Plays

General discussions.

Moderator: moderators

Manually Edit Number Of Plays

Postby st2llmatic » Wed May 16, 2012 8:43 pm

Long time payed user, is there a way to manually edit the number of plays for an album? Basically, I had an artist's first single in a folder called "Unreleased Songs" for that artist. When the official full album came out, I deleted this single from Unreleased Songs due to it now being a part of the released album and am wondering if there's any way manually edit the number of plays to update the album to reflect the plays received previously on the other folder.

Thanks!
st2llmatic
 
Posts: 2
Joined: Wed May 16, 2012 8:39 pm

Re: Manually Edit Number Of Plays

Postby hakko » Wed May 16, 2012 9:51 pm

Yup. If your port number is 4040, go to http://localhost:4040/db.view

Type select * from music_file_info and press OK

Look for the id (first column) matching the path to the album you'd like to update.

Say the id is 42 and the play count you'd like to have is 100 (you listened to it a lot)

Then go to db.view again and type

update music_file_info set play_count = 100 where id = 42

Press OK and that should be it!
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Manually Edit Number Of Plays

Postby hakko » Wed May 16, 2012 9:53 pm

(Or I did this on Subsonic 4.6 and it worked. If you wanna play it safe, make a backup of your subsonic settings folder before issuing any SQL command in db.view as it could erase all your statistics, if you get it wrong.)
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Manually Edit Number Of Plays

Postby st2llmatic » Thu May 17, 2012 11:31 am

Thank you so much! This worked flawlessly for me. I made a backup as mentioned also. Thanks for the quick reply!
st2llmatic
 
Posts: 2
Joined: Wed May 16, 2012 8:39 pm

Re: Manually Edit Number Of Plays

Postby tycoonbob » Sat May 19, 2012 2:56 pm

Just browsing the forum like I do on a weekly basis, and came across this. Geezus, this is so cool...I had no idea that we had a builtin database editor! Time to start playing around!
tycoonbob
 
Posts: 33
Joined: Mon Feb 06, 2012 2:49 pm


Return to General

Who is online

Users browsing this forum: No registered users and 12 guests