|
Post by GoneMAD on Mar 12, 2021 11:20:40 GMT -5
Is it possible to display the name of current playlist on now playing screen? no. GMMP plays whatever is in the queue, it doesnt play directly from a playlist / album / etc. When you select a playlist to play.. it searches the database for the files in the playlist and loads them into the queue. Since you can mix and match from various selections (load a playlist and then play next/enqueue an album), there is no accurate way to determine the original source.
|
|
spoty
New Member
Posts: 9
|
Post by spoty on Mar 25, 2021 14:15:27 GMT -5
Is it possible to display a small version of the cover art or album art inline with the track/artist/album metadata? Here's a mockup of what I have in mind i.imgur.com/kl2OB9e.pngFailing that, is there a way to modify the size of the normal cover art in layout 2? I want to make it smaller so that I can overlay the floating lyrics window from MusixMatch without getting the text in the way of anything else.
|
|
|
Post by GoneMAD on Mar 25, 2021 14:33:46 GMT -5
"Is it possible to display a small version of the cover art or album art inline with the track/artist/album metadata? "
not possible
"Failing that, is there a way to modify the size of the normal cover art in layout 2? I want to make it smaller so that I can overlay the floating lyrics window from MusixMatch without getting the text in the way of anything else."
Adding blank lines can shrink the artwork. The album art will scale as the metadata area height increases / decreases
<blank> for a blank line
|
|
|
Post by gorman on Apr 6, 2021 9:46:03 GMT -5
Would it be possible to have metadata shown in decreasing font size as it gets longer, up to a predefined size limit? And then cut it off as current default templates do.
|
|
|
Post by GoneMAD on Apr 6, 2021 10:49:00 GMT -5
Would it be possible to have metadata shown in decreasing font size as it gets longer, up to a predefined size limit? And then cut it off as current default templates do. unfortunately not possible. For long text you can add a <wrap> to the line and it'll wrap to the next line if its too long
|
|
|
Post by kaskueche on Apr 13, 2021 12:21:19 GMT -5
Hello again. Thank you very much for the %comma%, it saved my little annoying comma next to the genre. I have changed a bit my sorting and want to do something but I can't manage to understand how I could. So it's going to take place at the left part of the second line (with %dn%-%tn%. until %ar%). I want to give this part the <color=primary> if %dn% is even (2,4,6) and the <color=accent> if %dn% is odd (1,3,5). This is useful for me because my OST album tend to have a lot of disks, and it would help a lot to have the color changing at each new disk number. By using the even/odd number it would be for example red for even, then blue for odd, and the disk change would be noticable when scrolling. Below is my file
[ { "markupLines" : [ ["<align=left><size=16><b>%yr%</b>・%tr%", "<weight=0.15><align=right><size=16>%du%"], ["<align=left><size=14><b>%dn%-%tn%.</b>・$replace(%ge%,%comma%Anime,)・%ar%", "<weight=0.35><align=right><size=20><color=primary>$rating(%ra%, 0.5)"] ] } ]
So i tried these 2 things. $if(%dn% % 2 == 0,<color=primary>,<color=accent>)
$if3(%dn%,2,4,6,8,10,12,14,<color=accent>)
The problem is that it prints the literal "<color=accent>" string out, instead to treat it as a command. I have no clue how I could do an $IF outside of the string. If some of you could help me, or tell me strait that it's not possible, it could be good, so I don't have to search for nothing.
|
|
|
Post by GoneMAD on Apr 13, 2021 12:51:22 GMT -5
Hello again. Thank you very much for the %comma%, it saved my little annoying comma next to the genre. I have changed a bit my sorting and want to do something but I can't manage to understand how I could. So it's going to take place at the left part of the second line (with %dn%-%tn%. until %ar%). I want to give this part the <color=primary> if %dn% is even (2,4,6) and the <color=accent> if %dn% is odd (1,3,5). This is useful for me because my OST album tend to have a lot of disks, and it would help a lot to have the color changing at each new disk number. By using the even/odd number it would be for example red for even, then blue for odd, and the disk change would be noticable when scrolling. Below is my file
[ { "markupLines" : [ ["<align=left><size=16><b>%yr%</b>・%tr%", "<weight=0.15><align=right><size=16>%du%"], ["<align=left><size=14><b>%dn%-%tn%.</b>・$replace(%ge%,%comma%Anime,)・%ar%", "<weight=0.35><align=right><size=20><color=primary>$rating(%ra%, 0.5)"] ] } ]
So i tried these 2 things. $if(%dn% % 2 == 0,<color=primary>,<color=accent>)
$if3(%dn%,2,4,6,8,10,12,14,<color=accent>)
The problem is that it prints the literal "<color=accent>" string out, instead to treat it as a command. I have no clue how I could do an $IF outside of the string. If some of you could help me, or tell me strait that it's not possible, it could be good, so I don't have to search for nothing.
the formatting keywords are not able to be used inside functions
|
|
spoty
New Member
Posts: 9
|
Post by spoty on Apr 14, 2021 18:57:31 GMT -5
For some reason after I updated to the latest version that's on the Play Store, whenever I try to import custom json into the Now Playing metadata, the app doesn't accept it, saying "Import: Failed"
Here's my json's content:
[{"markupLines":[]}] :
[
["<size=24><blank>"],
["<size=24><blank>"],
["<size=24><blank>"],
["<size=24><blank>"],
["<size=24><blank>"],
["<size=24><blank>"],
["<size=24><blank>"],
["<align=center><typeface=sans-serif><size=24>%tr%"],
["<align=center><typeface=sans-serif><size=20><color=sec>%ar%"],
["<align=center><typeface=sans-serif><size=20>%al% (%yr%)"],
["<align=center><typeface=sans-serif><size=16><color=sec>%ps% / %tt%", "<align=center><typeface=sans-serif><size=16><color=sec>%nar% - %nt%"]
] I even tried replacing that code with the example at the start of this thread and that's also giving me "Import: Failed" Any way to check what's happening?
|
|
|
Post by GoneMAD on Apr 14, 2021 22:33:27 GMT -5
thats not valid json at all. take at look at the sample in the original/first post and it should be apparent how different they are (you should just be able to copy paste over the lines in the sample)
|
|
|
Post by MotleyGord on Apr 15, 2021 8:05:53 GMT -5
For some reason after I updated to the latest version that's on the Play Store, whenever I try to import custom json into the Now Playing metadata, the app doesn't accept it, saying "Import: Failed" Here's my json's content: [{"markupLines":[]}] :
[
["<size=24><blank>"],
["<size=24><blank>"],
["<size=24><blank>"],
["<size=24><blank>"],
["<size=24><blank>"],
["<size=24><blank>"],
["<size=24><blank>"],
["<align=center><typeface=sans-serif><size=24>%tr%"],
["<align=center><typeface=sans-serif><size=20><color=sec>%ar%"],
["<align=center><typeface=sans-serif><size=20>%al% (%yr%)"],
["<align=center><typeface=sans-serif><size=16><color=sec>%ps% / %tt%", "<align=center><typeface=sans-serif><size=16><color=sec>%nar% - %nt%"]
] I even tried replacing that code with the example at the start of this thread and that's also giving me "Import: Failed" Any way to check what's happening? You have to keep the opening and closing square and curly brackets []{} on their own lines. Plus I think you can't have the empty lines between your statements in the body of the JSON. Further, for the line with the Secondary colour you need to spell it out completely, I don't see anywhere that a short "sec" was allowed. I see a few other questionable lines as well, but the above points definitely need to be addressed before you can move ahead. I have posted a few examples in this thread that work, download one of those and try it. You can modify from there to get the layout and look you want.
|
|
|
Post by GoneMAD on Apr 15, 2021 9:30:25 GMT -5
[ { "markupLines" : [ ["<align=center><typeface=sans-serif><size=24>%tn%. %tr%"], ["<size=20><blank>"], ["<align=center><typeface=sans-serif><size=20>%ar%"], ["<align=center><typeface=sans-serif><size=20>%al%"], ["<size=20><blank>"], ["<align=center><typeface=sans-serif><size=16>%ge%", "<align=center><typeface=sans-serif><size=16>%yr%"], ["<align=center><typeface=sans-serif><size=16>%br%kbps", "<align=center><typeface=sans-serif><size=16>%sr%hz"] ] } ]
notice how different the markupLines part is in your copy compared to above
in json.. an object is surrounded by {} so its { objectName : value }
Brackets indicate a list, so in my example above the objectName is "markupLines" and the value is a list of lists. Top level list is one for each line, then within each line it can be a list of up to 3 different strings (left middle right when split)
|
|
spoty
New Member
Posts: 9
|
Post by spoty on Apr 15, 2021 9:45:43 GMT -5
i redid the json following your sample and it's still saying Import: Failed
Here's the file, for some reason when I put it into a code block in bbcode it gets double lines
|
|
spoty
New Member
Posts: 9
|
Post by spoty on Apr 15, 2021 10:09:51 GMT -5
i downloaded motleyG's json from another post in this thread and that one imports fine gonemadmusicplayer.proboards.com/attachment/download/113then i started modifying that one little by little, changing font sizes lets me import it but once i alter a whole line to just say ["<size=6><blank>"], like if i copy line 9 to line 5 it will fail to import any idea?
|
|
|
Post by GoneMAD on Apr 15, 2021 10:37:51 GMT -5
cant view those links while at work but this site may help you get valid json: jsonlint.com/paste your stuff there and it'll give errors pointing to the issue
|
|
spoty
New Member
Posts: 9
|
Post by spoty on Apr 15, 2021 13:02:45 GMT -5
i pasted each of the three jsons into that site and they all came up clean, but still two of them wont import
|
|