Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 19, 2017 0:44:55 GMT -5
It would be really cool to have tighter integration with last.fm in the following ways. Have the option to query last.fm for your playcounts, loves and last played date and update the GMMP database with the data. Have the option to love songs on last.fm from the app preferably with a button on the now playing screen or a gesture Have the option to auto love songs if the rating in the database crosses a user-definable threshold, i.e. if a song is at least a 4 star then it loves it on last.fm Thank you for your consideration
|
|
|
Post by GoneMAD on Feb 19, 2017 3:34:01 GMT -5
no plans on anything more with last.fm.. sorry. Their apis are not for commercial use
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 23, 2017 10:28:32 GMT -5
In that case I have a couple other questions for you. Would it be possible to to create a Tasker script to automatically set the rating of a given song in the GMMP database to a specified value in the event that a song is "loved" via simple last.fm scrobbler or vice versa (automatically loving a song if the rating passes a specified threshold)?
Also, does GMMP's database respect isyncr insofar as it accurately reflects ratings, playcount, skipcount, last played etc?
|
|
|
Post by GoneMAD on Feb 23, 2017 12:42:25 GMT -5
you'd have to ask justin of jrtstudio about isyncr, but i doubt it. He was supposed to make an isyncr api that i could use to get that information but nothing ever happened with it. GMMP's database is straight from the tags of the files + whatever in app ratings are changed and songs played
as for a tasker script.. i dont believe i have any intents to change rating, but if you were able to change the rating in the tags, there is an intent to trigger a scan. assuming the scanner is set to update existing files (i forget the exact setting name), i think it would pick up the new rating
Ratings are stored in the database and the tags of the file. When ratings are changed in app they are changed in the database and then the tags are rewritten to store the rating in the tag
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 24, 2017 11:18:41 GMT -5
I emailed Justin. Waiting on a response.
I found this on id3.org :
4.16. Play counter
This is simply a counter of the number of times a file has been played. The value is increased by one every time the file begins to play. There may only be one "PCNT" frame in each tag. When the counter reaches all one's, one byte is inserted in front of the counter thus making the counter eight bits bigger. The counter must be at least 32-bits long to begin with.
<Header for 'Play counter', ID: "PCNT"> Counter $xx xx xx xx (xx ...)
Would it be possible to treat play count the same way you treat ratings using this tag? I couldn't find an official tag for last play date.
I guess I should explain my situation. I am currently trying to maintain synchronicity with 3 libraries (all with the same songs), a flac library connected to a hifi server, an mp3 library on my normal computer (that I use for managing my phone) and an mp3 library on my phone. I use musicbee on both computers to maintain playback stat parity with last.fm but I have no way of easily doing that on the phone so I'm trying to piecemeal a way of making that work. I use smart playlists extensively and having accurate stats across the board so that the playlists all update correctly is the ultimate endgame.
|
|
|
Post by GoneMAD on Feb 24, 2017 13:09:49 GMT -5
i can add it to the request list but if its not currently listed in a planned release on trello its not anything i'd address anytime soon.
if you want to keep things in sync with playcounts you could use the backup/restore capabilities which can be triggered via intent. The backup keeps a stats.xml or stats.bkp.. something like that in /storage/gmmp which is just an xml file with all the played files with their rating, last played, and playcount. The restore is done from the same file so if its modified and restored it will update gmmp's database
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 24, 2017 13:30:36 GMT -5
cool. I'm familiar with the stats.xml. Then the last piece would be finding a way to export the playcount, last play date and rating from musicbee's database file (which can be itunes formatted) into the stats.xml file and finding a way to automate that on the desktop and that's probably beyond the scope of this forum.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 24, 2017 22:44:11 GMT -5
Gonna try to create a script to find and replace from musicbee's xml to gonemad's stats.xml file but I have no clue what this means.
<LastPlayed>1484677490557</LastPlayed> <DateAdded>1484660046258</DateAdded>
How are these numbers derived?
|
|
|
Post by GoneMAD on Feb 24, 2017 22:51:56 GMT -5
epochtime www.epochconverter.com/in the xml its stored in milliseconds instead of seconds computers store time in milliseconds based off some date in 1970 or so
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 24, 2017 23:05:34 GMT -5
thank you.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Feb 28, 2017 12:41:54 GMT -5
Is there a list somewhere of all the commands that can be performed in gmmp via tasker?
|
|
|
Post by GoneMAD on Feb 28, 2017 13:28:35 GMT -5
|
|