Remove limitation of only scrobbling tracks longer than 30 seconds

This commit is contained in:
Deluan 2021-06-22 09:59:00 -04:00
parent 743e469795
commit 8b62a58b4c
1 changed files with 1 additions and 5 deletions

View File

@ -242,11 +242,7 @@ const Player = () => {
// See https://www.last.fm/api/scrobbling#when-is-a-scrobble-a-scrobble
const progress = (info.currentTime / info.duration) * 100
if (
isNaN(info.duration) ||
info.duration < 30 ||
(progress < 50 && info.currentTime < 240)
) {
if (isNaN(info.duration) || (progress < 50 && info.currentTime < 240)) {
return
}