Added radio play limit for non-supporters

This commit is contained in:
2018-06-28 17:07:14 +09:00
parent 050355d8ae
commit e5e40750c0
3 changed files with 7 additions and 13 deletions

View File

@ -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)