Advertisement
Corvust

NowPlaying

Jun 14th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; =====================================================================
  2.  
  3. ; [Calc_NPSwitch]
  4.     ; Changes between the local music player and the web player dynamically.
  5.  
  6. ; =====================================================================
  7.  
  8. [Calc_NPSwitch]
  9. Measure=Calc
  10. Formula=(((Measure_NPFileStatus0<>1) && (Measure_NPPlayerStatus1=1)) ? 1 : 0)
  11.  
  12. ; If Music Player is not playing AND Web Player is open (Local Player's File status is not 1 (playing) AND Web Player is 1 (Open))
  13. ; then set player to 1 (Use Web Player)
  14. ; else set player to 0 (Use Music Player)
  15.  
  16. ; =====================================================================
  17.  
  18. ; [Measure_NPTitle0] & [Measure_NPTitle1]
  19.     ; Returns the title of the current song.
  20.  
  21. ; =====================================================================
  22.  
  23. [Measure_NPTitle0]
  24. Measure=NowPlaying
  25. PlayerName=#MusicPlayerName#
  26. PlayerType=Title
  27. Substitute="":"N/A"
  28.  
  29. PlayerPath=#MusicPlayerPath#
  30.  
  31. [Measure_NPTitle1]
  32. Measure=Plugin
  33. Plugin=WebNowPlaying
  34. PlayerType=Title
  35. Substitute="":"N/A"
  36.  
  37. ; =====================================================================
  38.  
  39. ; [Measure_NPArtist0] & [Measure_NPArtist1]
  40.     ; Returns the artist(s) of the current song.
  41.  
  42. ; =====================================================================
  43.  
  44. [Measure_NPArtist0]
  45. Measure=NowPlaying
  46. PlayerName=#MusicPlayerName#
  47. PlayerType=Artist
  48. Substitute="":"N/A"
  49.  
  50. [Measure_NPArtist1]
  51. Measure=Plugin
  52. Plugin=WebNowPlaying
  53. PlayerType=Artist
  54. Substitute="":"N/A"
  55.  
  56. ; =====================================================================
  57.  
  58. ; [Measure_NPDuration0] & [Measure_NPDuration1]
  59.     ; Returns the Duration of the current song.
  60.  
  61. ; =====================================================================
  62.  
  63. [Measure_NPDuration0]
  64. Measure=NowPlaying
  65. PlayerName=#MusicPlayerName#
  66. PlayerType=Duration
  67. ; Substitute="00:00":""
  68.  
  69. [Measure_NPDuration1]
  70. Measure=Plugin
  71. Plugin=WebNowPlaying
  72. PlayerType=Duration
  73. ; Substitute="00:00":""
  74.  
  75. ; =====================================================================
  76.  
  77. ; [Measure_NPCurrentPos0] & [Measure_NPCurrentPos1]
  78.     ; Returns the Current Position of the current song.
  79.  
  80. ; =====================================================================
  81.  
  82. [Measure_NPCurrentPos0]
  83. Measure=NowPlaying
  84. PlayerName=#MusicPlayerName#
  85. PlayerType=Position
  86. ; Substitute="00:00":""
  87.  
  88. [Measure_NPCurrentPos1]
  89. Measure=Plugin
  90. Plugin=WebNowPlaying
  91. PlayerType=Position
  92. ; Substitute=""00:00:""
  93.  
  94. ; =====================================================================
  95.  
  96. ; [Measure_NPPercentPos0] & [Measure_NPPercentPos1]
  97.     ; Returns the Percentage Position of the current song.
  98.  
  99. ; =====================================================================
  100.  
  101. [Measure_NPPercentPos0]
  102. Measure=NowPlaying
  103. PlayerName=#MusicPlayerName#
  104. PlayerType=Progress
  105.  
  106. [Measure_NPPercentPos1]
  107. Measure=Plugin
  108. Plugin=WebNowPlaying
  109. PlayerType=Progress
  110.  
  111. ; =====================================================================
  112.  
  113. ; [Measure_NPPlayerStatus] & [Measure_NPPlayerStatus1]
  114.     ; Returns the Player Status of the current song.
  115.  
  116. ; =====================================================================
  117.  
  118. [Measure_NPPlayerStatus0]
  119. Measure=NowPlaying
  120. PlayerName=#MusicPlayerName#
  121. PlayerType=Status
  122.  
  123. ; Substitute= "0":"Close","1":"Open"
  124.  
  125. [Measure_NPPlayerStatus1]
  126. Measure=Plugin
  127. Plugin=WebNowPlaying
  128. PlayerType=Status
  129.  
  130. ; Substitute="0":"Close","1":"Open"
  131.  
  132. ; =====================================================================
  133.  
  134. ; [Measure_NPFileStatus0] & [Measure_NPFileStatus1]
  135.     ; Returns the File Status of the current song.
  136.  
  137. ; =====================================================================
  138.  
  139. [Measure_NPFileStatus0]
  140. Measure=NowPlaying
  141. PlayerName=#MusicPlayerName#
  142. PlayerType=State
  143. ; Substitute= "0":"Stopped","1":"Playing","2":"Paused"
  144.  
  145. [Measure_NPFileStatus1]
  146. Measure=Plugin
  147. Plugin=WebNowPlaying
  148. PlayerType=State
  149. ; Substitute="0":"play","1":"pause","2":"play","3":"replay"
  150.  
  151. ; =====================================================================
  152.  
  153. ; The adaptive measure names
  154.  
  155. ; =====================================================================
  156.  
  157. ; [&Measure_NPTitle[&Calc_NPSwitch]]
  158. ; [&Measure_NPArtist[&Calc_NPSwitch]]
  159. ; [&Measure_NPDuration[&Calc_NPSwitch]]
  160. ; [&Measure_NPCurrentPos[&Calc_NPSwitch]]
  161. ; [&Measure_NPPercentPos[&Calc_NPSwitch]]
  162. ; [&Measure_NPPlayerStatus[&Calc_NPSwitch]]
  163. ; [&Measure_NPFileStatus[&Calc_NPSwitch]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement