forked from antimatter15/Google-Music-Applet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmixcloud.json
More file actions
41 lines (30 loc) · 1.63 KB
/
mixcloud.json
File metadata and controls
41 lines (30 loc) · 1.63 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
{
"name" : "Mixcloud",
"COMMENT_1" : "This block contiains all of the things a player may or may not have",
"has_thumbs_up" : true,
"has_thumbs_down" : false,
"has_next_track" : false,
"has_prev_track" : false,
"has_play_pause" : true,
"has_shuffle" : false,
"has_repeat" : false,
"has_current_track_time" : true,
"has_total_track_time" : false,
"has_remaining_track_time" : true,
"COMMENT_2" : "This block contains all boolean values we can get back from the player",
"isPlaying" : "$('.player-control').hasClass('pause-state')",
"isPaused" : "!$('.player-control').hasClass('pause-state')",
"isThumbedUp" : "$('.icon-favorite-inner.ng-scope').attr('m-tooltip') == 'Favorited'",
"COMMENT_3" : "This block contains all string values we can get back from the player",
"artUrl" : "'http:' + $('.player-cloudcast-image img').attr('src').split('w/60/h/60').join('w/550/h/550')",
"artist" : "$('span[ng-bind=\"player.nowPlaying.currentDisplayTrack.artist\"]').text()",
"track" : "$('span[ng-bind=\"player.nowPlaying.currentDisplayTrack.title\"]').text()",
"currentTime" : "$('.player-time.ng-binding').text()",
"remainingTime": "$('.player-time.end-time').text()",
"COMMENT_4" : "Finally, this block contains info on how to perform actions",
"click_play" : "$('.player-control').click()",
"click_pause" : "$('.player-control').click()",
"click_thumbs_up" : "$('.icon-favorite-inner.ng-scope').click()",
"COMMENT_5" : "Mixcloud is special since we can't get individual track progress for scrobbling. Simply scrobble on track changes.",
"scrobbleOnChange" : true
}