Importing: Is there a sql script to know what is left to do

Artist radio, genre radio & related artists. A Subsonic server for music nerds.

Moderator: moderators

Importing: Is there a sql script to know what is left to do

Postby igbar » Mon Nov 19, 2012 7:20 pm

I was wondering if there is an sql script I can run that will let me know how many more files/songs have to be updated so I can guesstimate how much longer I have to click full scan.

Thanks
Igbar
igbar
 
Posts: 19
Joined: Fri Nov 16, 2012 6:06 pm

Re: Importing: Is there a sql script to know what is left to

Postby hakko » Mon Nov 19, 2012 8:00 pm

Track artists we haven't fetched biographies for:

Code: Select all
select artist_name_capitalization from music.artist where id in (select mt.artist_id from library.track lt inner join music.track mt on lt.track_id = mt.id where not exists (select 1 from library.webservice_history where artist_id = mt.artist_id and calltype_id = 5) order by mt.artist_id);


Number 5 can be exchanged for 1,2,4,5 to check for artists lacking similar artists / top tracks / top tags / biography (but these would normally overlap, as they're all fetched at the same time).
1 | Last.fm artist.getSimilar
2 | Last.fm artist.getTopTracks
4 | Last.fm artist.getTopTags
5 | Last.fm artist.getInfo

Albums which we haven't fetched info for:
Code: Select all
select ma.album_name_capitalization from library.album la inner join music.album ma on la.album_id = ma.id where not exists (select 1 from library.webservice_history where album_id = la.album_id);
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: Importing: Is there a sql script to know what is left to

Postby igbar » Mon Nov 19, 2012 8:34 pm

Thanks .. You're a wild man :)

Igbar
igbar
 
Posts: 19
Joined: Fri Nov 16, 2012 6:06 pm


Return to MusicCabinet

Who is online

Users browsing this forum: No registered users and 17 guests