chore: scrobbling

This commit is contained in:
Cory Dransfeldt 2024-03-29 14:21:51 -07:00
parent d39da8d13d
commit bb470f86e0

View file

@ -8,7 +8,7 @@ const sanitizeMediaString = (string) => {
const weekStop = () => {
const currentDate = DateTime.now()
let nextSunday = currentDate.plus({ 7: (7 - currentDate.weekday) % 7 })
let nextSunday = currentDate.plus({ days: (7 - currentDate.weekday) % 7 })
nextSunday = nextSunday.set({ hour: 0, minute: 0, second: 0, millisecond: 0 })
return nextSunday.toMillis()
}