Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a7551ef162 |
@ -50,6 +50,9 @@ class LastFM:
|
|||||||
enrich=True,
|
enrich=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
tz_timestamp = self.vrobbler_user.profile.get_timestamp_with_tz(
|
||||||
|
lfm_scrobble.get("timestamp")
|
||||||
|
)
|
||||||
timestamp = lfm_scrobble.get("timestamp")
|
timestamp = lfm_scrobble.get("timestamp")
|
||||||
stop_timestamp = timestamp + timedelta(
|
stop_timestamp = timestamp + timedelta(
|
||||||
seconds=track.run_time_seconds
|
seconds=track.run_time_seconds
|
||||||
@ -63,7 +66,7 @@ class LastFM:
|
|||||||
played_to_completion=True,
|
played_to_completion=True,
|
||||||
in_progress=False,
|
in_progress=False,
|
||||||
media_type=Scrobble.MediaType.TRACK,
|
media_type=Scrobble.MediaType.TRACK,
|
||||||
timezone=timestamp.tzinfo.name,
|
timezone=tz_timestamp.tzinfo.name,
|
||||||
)
|
)
|
||||||
# Vrobbler scrobbles on finish, LastFM scrobbles on start
|
# Vrobbler scrobbles on finish, LastFM scrobbles on start
|
||||||
seconds_eariler = timestamp - timedelta(seconds=20)
|
seconds_eariler = timestamp - timedelta(seconds=20)
|
||||||
|
|||||||
Reference in New Issue
Block a user