Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; =====================================================================
- ; [Calc_NPSwitch]
- ; Changes between the local music player and the web player dynamically.
- ; =====================================================================
- [Calc_NPSwitch]
- Measure=Calc
- Formula=(((Measure_NPFileStatus0<>1) && (Measure_NPPlayerStatus1=1)) ? 1 : 0)
- ; 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))
- ; then set player to 1 (Use Web Player)
- ; else set player to 0 (Use Music Player)
- ; =====================================================================
- ; [Measure_NPTitle0] & [Measure_NPTitle1]
- ; Returns the title of the current song.
- ; =====================================================================
- [Measure_NPTitle0]
- Measure=NowPlaying
- PlayerName=#MusicPlayerName#
- PlayerType=Title
- Substitute="":"N/A"
- PlayerPath=#MusicPlayerPath#
- [Measure_NPTitle1]
- Measure=Plugin
- Plugin=WebNowPlaying
- PlayerType=Title
- Substitute="":"N/A"
- ; =====================================================================
- ; [Measure_NPArtist0] & [Measure_NPArtist1]
- ; Returns the artist(s) of the current song.
- ; =====================================================================
- [Measure_NPArtist0]
- Measure=NowPlaying
- PlayerName=#MusicPlayerName#
- PlayerType=Artist
- Substitute="":"N/A"
- [Measure_NPArtist1]
- Measure=Plugin
- Plugin=WebNowPlaying
- PlayerType=Artist
- Substitute="":"N/A"
- ; =====================================================================
- ; [Measure_NPDuration0] & [Measure_NPDuration1]
- ; Returns the Duration of the current song.
- ; =====================================================================
- [Measure_NPDuration0]
- Measure=NowPlaying
- PlayerName=#MusicPlayerName#
- PlayerType=Duration
- ; Substitute="00:00":""
- [Measure_NPDuration1]
- Measure=Plugin
- Plugin=WebNowPlaying
- PlayerType=Duration
- ; Substitute="00:00":""
- ; =====================================================================
- ; [Measure_NPCurrentPos0] & [Measure_NPCurrentPos1]
- ; Returns the Current Position of the current song.
- ; =====================================================================
- [Measure_NPCurrentPos0]
- Measure=NowPlaying
- PlayerName=#MusicPlayerName#
- PlayerType=Position
- ; Substitute="00:00":""
- [Measure_NPCurrentPos1]
- Measure=Plugin
- Plugin=WebNowPlaying
- PlayerType=Position
- ; Substitute=""00:00:""
- ; =====================================================================
- ; [Measure_NPPercentPos0] & [Measure_NPPercentPos1]
- ; Returns the Percentage Position of the current song.
- ; =====================================================================
- [Measure_NPPercentPos0]
- Measure=NowPlaying
- PlayerName=#MusicPlayerName#
- PlayerType=Progress
- [Measure_NPPercentPos1]
- Measure=Plugin
- Plugin=WebNowPlaying
- PlayerType=Progress
- ; =====================================================================
- ; [Measure_NPPlayerStatus] & [Measure_NPPlayerStatus1]
- ; Returns the Player Status of the current song.
- ; =====================================================================
- [Measure_NPPlayerStatus0]
- Measure=NowPlaying
- PlayerName=#MusicPlayerName#
- PlayerType=Status
- ; Substitute= "0":"Close","1":"Open"
- [Measure_NPPlayerStatus1]
- Measure=Plugin
- Plugin=WebNowPlaying
- PlayerType=Status
- ; Substitute="0":"Close","1":"Open"
- ; =====================================================================
- ; [Measure_NPFileStatus0] & [Measure_NPFileStatus1]
- ; Returns the File Status of the current song.
- ; =====================================================================
- [Measure_NPFileStatus0]
- Measure=NowPlaying
- PlayerName=#MusicPlayerName#
- PlayerType=State
- ; Substitute= "0":"Stopped","1":"Playing","2":"Paused"
- [Measure_NPFileStatus1]
- Measure=Plugin
- Plugin=WebNowPlaying
- PlayerType=State
- ; Substitute="0":"play","1":"pause","2":"play","3":"replay"
- ; =====================================================================
- ; The adaptive measure names
- ; =====================================================================
- ; [&Measure_NPTitle[&Calc_NPSwitch]]
- ; [&Measure_NPArtist[&Calc_NPSwitch]]
- ; [&Measure_NPDuration[&Calc_NPSwitch]]
- ; [&Measure_NPCurrentPos[&Calc_NPSwitch]]
- ; [&Measure_NPPercentPos[&Calc_NPSwitch]]
- ; [&Measure_NPPlayerStatus[&Calc_NPSwitch]]
- ; [&Measure_NPFileStatus[&Calc_NPSwitch]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement