
Tested on .2416, works fine.
Moderators: jiri, drakinite, Addon Administrators
Hi Carsten,
Code: Select all
SELECT
Songs.IDAlbum, TrackType,
Author, Songs.Album ,
time(SUM(SongLength) / 1000, 'unixepoch' ) AS total_time
FROM
Songs
INNER JOIN Albums ON albums.ID = Songs.IDAlbum AND TrackType = 2
GROUP BY
Songs.IDAlbum
ORDER BY total_time DESC;
Code: Select all
SELECT Strftime('%Y/%m/%d %H:%M:%S', ( Julianday(playdate) + 2415018.5 ),
'localtime') AS plays
FROM played AS p
JOIN songs AS s
ON s.id = p.idsong
WHERE album = 'A Tribute To Jack Johnson'
AND songtitle = 'Yesternow';
Basically Ludek and drakinite wrote it, I just put it together, but yes.