Skip to content

Commit

Permalink
Merge pull request #243 from internet4000/fix/track-availability
Browse files Browse the repository at this point in the history
Fix old YouTube ID for availability check
  • Loading branch information
oskarrough authored Jul 17, 2018
2 parents be32b86 + cbca703 commit c78f07a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/track.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ export default Model.extend(Validations, {
return
}

yield this.updateYoutubeId()
const ytid = this.get('ytid')

let isAvailable = yield fetchTrackAvailability(ytid)
this.set('mediaNotAvailable', !isAvailable)

yield this.updateYoutubeId();
yield this.save()
}).drop(),

Expand Down

0 comments on commit c78f07a

Please sign in to comment.