|
Post by GoneMAD on Jul 22, 2020 8:21:19 GMT -5
FYI if one doesnt want any lines they can use the following json
[ { "markupLines" : [] } ]
|
|
|
Post by MotleyGord on Jul 22, 2020 19:34:07 GMT -5
i forgot to update the original post. Widgets are slightly more restricted due to the limitations google put on widget (it uses diff UI elements compared to whats available inside apps). 2x1 and 4x1 only have 2 lines and the others have 4 lines available. No splits. Colors i think i have everything set to white or black (depending on inverted). I can look into exposing what i did for now playing. Everything else SHOULD work.. but i only tested with the presets. If you load a json with more than the number of lines or more than one split, they'll just be ignored. Shouldnt crash or anything Gonna give it a whirl, see what I can do that looks like the others input up. Thanks!
|
|
|
Post by viper21 on Aug 14, 2020 15:28:54 GMT -5
Will you be adding an attribute to display the total no. of CDs in the album?
Thanks.
|
|
|
Post by GoneMAD on Aug 14, 2020 16:47:17 GMT -5
total discs is not a tag gmmp supports
|
|
svenc
Junior Member
Posts: 85
|
Post by svenc on Aug 26, 2020 7:54:10 GMT -5
I don't know if it's already answered... How can I user the stars to rate a title? I've got the var for stars already rated... but I cannot rate it via this entry
["<align=center><typeface=sans-serif-thin><size=18>$rating(val, min)"],
Maybe I have to use the ra var, but how can I store a value into this var in combination with rating var for displaying at the same time?
|
|
|
Post by GoneMAD on Aug 26, 2020 8:59:50 GMT -5
I don't know if it's already answered... How can I user the stars to rate a title? I've got the var for stars already rated... but I cannot rate it via this entry ["<align=center><typeface=sans-serif-thin><size=18>$rating(val, min)"], Maybe I have to use the ra var, but how can I store a value into this var in combination with rating var for displaying at the same time? you cannot, its visual only. add a rating button, gesture, or use the menu
|
|
svenc
Junior Member
Posts: 85
|
Post by svenc on Aug 26, 2020 11:12:14 GMT -5
ah okay, the rating button was the "thing I missed". Thanks
|
|
|
Post by GoneMAD on Aug 26, 2020 12:05:14 GMT -5
ah okay, the rating button was the "thing I missed". Thanks in the 2nd phase of the beta i'll probably tweak now playing and add a few more buttons by default. i think having 4 on the top bar will work out pretty well. Rating and 1 other i'll add as defaults.. maybe lyrics? i'd have to look through the list to see what would be the most popular
|
|
|
Post by MotleyGord on Aug 26, 2020 19:40:06 GMT -5
ah okay, the rating button was the "thing I missed". Thanks in the 2nd phase of the beta i'll probably tweak now playing and add a few more buttons by default. i think having 4 on the top bar will work out pretty well. Rating and 1 other i'll add as defaults.. maybe lyrics? i'd have to look through the list to see what would be the most popular How about a "back" button? In latest Android versions on some devices with the standard home keys hidden this would be helpful. Similarly an assignable gesture designation for the back function would also work.
|
|
|
Post by GoneMAD on Aug 26, 2020 19:54:02 GMT -5
button no, gesture would be doable. Would it just behave the same as the back button?
|
|
|
Post by MotleyGord on Aug 26, 2020 20:07:42 GMT -5
button no, gesture would be doable. Would it just behave the same as the back button? Gesture would be awesome, I think I personally would assign to swipe down. But yes, duplicate the back function. It already does sort of work if you swipe from the edge, but this is tough to do consistently while driving, etc.
|
|
|
Post by MotleyGord on Aug 27, 2020 14:40:46 GMT -5
Regarding complex structure for the custom metadata - I haven't had any luck when nesting $IF and $IFEQUAL type statements within another. Is this something that was expected or built into the current functionality, or limited to more simple statements? I've tried with various versions of these comparisons.
For example $IFEQUAL($STRICMP(%aa%,%ar%),$IFEQUAL(x,y,,),$IFEQUAL(a,b,,)) - Should perform the x/y function if the first two strings match, and the a/b function if they don't. In testing I can confirm each of the functions work individually, just not when I try to combine them to get the expected result. Typically the end result is a null (empty) line.
If not, I'll work backwards to simply things. I have a few metadata display concepts I'm looking to finish and share. G
|
|
|
Post by GoneMAD on Aug 27, 2020 23:04:40 GMT -5
Regarding complex structure for the custom metadata - I haven't had any luck when nesting $IF and $IFEQUAL type statements within another. Is this something that was expected or built into the current functionality, or limited to more simple statements? I've tried with various versions of these comparisons. For example $IFEQUAL($STRICMP(%aa%,%ar%),$IFEQUAL(x,y,,),$IFEQUAL(a,b,,)) - Should perform the x/y function if the first two strings match, and the a/b function if they don't. In testing I can confirm each of the functions work individually, just not when I try to combine them to get the expected result. Typically the end result is a null (empty) line. If not, I'll work backwards to simply things. I have a few metadata display concepts I'm looking to finish and share. G strcmp and stricmp return 0 is they are equal
|
|
|
Post by MotleyGord on Aug 27, 2020 23:19:27 GMT -5
This script provides a very dynamic layout. The first line is the track name. The next line shows the album artist and album name, however if they are the same (i.e. self-titled) then it will not duplicate the names. The third line will only show a separate artist name if it doesn't match the album artist, like on Various Artist or duets, etc. And finally the last lines show composer (if exists), the track position within the current playing group, and meta details. Works best with libraries with complete tags. I have set the primary and accent colours to dynamic, and use a relatively dark blurred album art, a black background will show well too. [ { "markupLines" : [ ["<align=center><typeface=sans-serif-black><size=22><wrap><b>%tr%</b>"], ["<align=center><typeface=sans-serif><size=14><color=accent><wrap>$ifequal($strstr(%al%,%aa%),-1,%aa% • %al%,%al%)"], ["<align=center><typeface=sans-serif><size=13><color=accent><wrap><b>$ifequal($strstr(%aa%,%ar%),-1,%ar%,)</b>"], ["<align=center><typeface=sans-serif><size=11><color=primary><wrap><b><i>$notempty(%cp%)</i></b>"], ["<size=3><blank>"], ["<align=center><typeface=sans-serif><size=10><color=secondary>%ps% / %tt%"], ["<align=center><typeface=sans-serif><size=10><color=secondary>$upper(%ext%) • $div(%sr%,1000).$cut($mod(%sr%,1000),1)kHz • %br%kbps • %ch% • ©%yr%"] ] } ] Attachments:
|
|
|
Post by GoneMAD on Aug 27, 2020 23:23:11 GMT -5
Regarding complex structure for the custom metadata - I haven't had any luck when nesting $IF and $IFEQUAL type statements within another. Is this something that was expected or built into the current functionality, or limited to more simple statements? I've tried with various versions of these comparisons. For example $IFEQUAL($STRICMP(%aa%,%ar%),$IFEQUAL(x,y,,),$IFEQUAL(a,b,,)) - Should perform the x/y function if the first two strings match, and the a/b function if they don't. In testing I can confirm each of the functions work individually, just not when I try to combine them to get the expected result. Typically the end result is a null (empty) line. If not, I'll work backwards to simply things. I have a few metadata display concepts I'm looking to finish and share. G strcmp and stricmp return 0 is they are equal to answer your original question.. you should be able to nest functions. i checked the code and every parameter will run through the parser to resolve it if its a function. something else must be wrong with the line
|
|