forked from antimatter15/Google-Music-Applet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathslacker.json
More file actions
executable file
·43 lines (32 loc) · 1.97 KB
/
slacker.json
File metadata and controls
executable file
·43 lines (32 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
"name" : "Slacker",
"COMMENT_1" : "This block contiains all of the things a player may or may not have",
"has_thumbs_up" : true,
"has_thumbs_down" : true,
"has_next_track" : true,
"has_prev_track" : false,
"has_play_pause" : true,
"has_shuffle" : false,
"has_repeat" : false,
"has_current_track_time" : true,
"has_remaining_track_time" : true,
"COMMENT_2" : "This block contains all boolean values we can get back from the player",
"isPlaying" : "$('li.playpause').hasClass('play')",
"isPaused" : "$('li.playpause').hasClass('pause')",
"isThumbedUp" : "$('#tuning li.love').last().children('a').first().hasClass('hearted')",
"isThumbedDown" : "$('#tuning li.banning').last().children('a').first().hasClass('banned')",
"COMMENT_3" : "This block contains all string values we can get back from the player",
"artUrl" : "$('td.art img').attr('src').replace('300', '550')",
"artist" : "$($('td.fullwidth .metadata span')[0]).text()",
"track" : "$($('td.fullwidth .metadata span')[2]).text()",
"currentTime" : "$($('#progressContainer span')[0]).text()",
"remainingTime" : "$($('#progressContainer span')[1]).text()",
"COMMENT_4" : "Finally, this block contains info on how to perform actions",
"click_play" : "location.assign('javascript:$(\"a.play\").click()')",
"click_pause" : "location.assign('javascript:$(\"a.play\").click()')",
"click_next_track" : "location.assign('javascript:$(\"li.skip-forward a\").click()')",
"click_thumbs_up" : "location.assign('javascript:$(\"#tuning li.love\").last().children(\"a\").first().click()')",
"click_thumbs_down" : "location.assign('javascript:$(\"#tuning li.banning\").last().children(\"a\").first().click();$($(\"#actionsMenu .menuitems ul li\")[0]).click()')",
"COMMENT_5" : "Slacker is special since we can't get individual track progress for scrobbling. Simply scrobble on track changes.",
"scrobbleOnChange" : true
}