Remove limitation of only scrobbling tracks longer than 30 seconds
This commit is contained in:
@@ -242,11 +242,7 @@ const Player = () => {
|
|||||||
|
|
||||||
// See https://www.last.fm/api/scrobbling#when-is-a-scrobble-a-scrobble
|
// See https://www.last.fm/api/scrobbling#when-is-a-scrobble-a-scrobble
|
||||||
const progress = (info.currentTime / info.duration) * 100
|
const progress = (info.currentTime / info.duration) * 100
|
||||||
if (
|
if (isNaN(info.duration) || (progress < 50 && info.currentTime < 240)) {
|
||||||
isNaN(info.duration) ||
|
|
||||||
info.duration < 30 ||
|
|
||||||
(progress < 50 && info.currentTime < 240)
|
|
||||||
) {
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user