diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index 6aaaf676..00000000 --- a/.vscode/tasks.json +++ /dev/null @@ -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" -} \ No newline at end of file diff --git a/scripts/AudioPlayer.ts b/scripts/AudioPlayer.ts index 7c6a0eef..07f2fc5e 100644 --- a/scripts/AudioPlayer.ts +++ b/scripts/AudioPlayer.ts @@ -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) diff --git a/tsconfig.json b/tsconfig.json index 9a7e6c49..25be1714 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -6,7 +6,5 @@ "baseUrl": ".", "strict": false, "strictFunctionTypes": false - }, - "compileOnSave": true, - "buildOnSave": false + } } \ No newline at end of file