Added radio play limit for non-supporters
This commit is contained in:
parent
050355d8ae
commit
e5e40750c0
10
.vscode/tasks.json
vendored
10
.vscode/tasks.json
vendored
@ -1,10 +0,0 @@
|
||||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "0.1.0",
|
||||
"command": "tsc",
|
||||
"isShellCommand": true,
|
||||
"args": ["-p", "."],
|
||||
"showOutput": "silent",
|
||||
"problemMatcher": "$tsc"
|
||||
}
|
@ -63,6 +63,12 @@ export default class AudioPlayer {
|
||||
// Stop current track
|
||||
this.stop()
|
||||
|
||||
// Check if we have PRO status after 5 plays
|
||||
if(this.playId >= 6 && this.arn.user.dataset.pro !== "true") {
|
||||
this.arn.statusMessage.showInfo("Please buy a PRO account to get unlimited access the Anime Radio.", -1)
|
||||
return
|
||||
}
|
||||
|
||||
this.arn.currentSoundTrackId = trackId
|
||||
this.arn.markPlayingSoundTrack()
|
||||
this.arn.loading(true)
|
||||
|
@ -6,7 +6,5 @@
|
||||
"baseUrl": ".",
|
||||
"strict": false,
|
||||
"strictFunctionTypes": false
|
||||
},
|
||||
"compileOnSave": true,
|
||||
"buildOnSave": false
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user