Post Reply 
Timestamp of RecentlyPlayed change during rollover
10-02-2024, 23:28
Post: #1
Timestamp of RecentlyPlayed change during rollover
Hi @simoncn,

I'm using played-files.txt to keep a history of everything that's played, which is generally working well except that when the log rolls over (based on the recentPlayed= option) the timestamp of previously played tracks changes, that throws of my diff logic.

In the following example I had set recentPlayed to 5 to speed up testing.
Code:
...
2024-02-10 21:52:03.486 /media/music/flac/Lady Gaga/2018 - A Star Is Born/CD01/01.02.flac
2024-02-10 21:55:10.859 /media/music/flac/Lady Gaga/2018 - A Star Is Born/CD01/01.03.flac
2024-02-10 21:55:56.297 /media/music/flac/Lady Gaga/2018 - A Star Is Born/CD01/01.04.flac
2024-02-10 21:56:19.734 /media/music/flac/Lady Gaga/2018 - A Star Is Born/CD01/01.05.flac
2024-02-10 21:59:23.108 /media/music/flac/Lady Gaga/2018 - A Star Is Born/CD01/01.06.flac
## LOGROTATE HERE
2024-02-10 21:55:11.049 /media/music/flac/Lady Gaga/2018 - A Star Is Born/CD01/01.03.flac
2024-02-10 21:55:56.489 /media/music/flac/Lady Gaga/2018 - A Star Is Born/CD01/01.04.flac
2024-02-10 21:56:19.929 /media/music/flac/Lady Gaga/2018 - A Star Is Born/CD01/01.05.flac
2024-02-10 21:59:23.297 /media/music/flac/Lady Gaga/2018 - A Star Is Born/CD01/01.06.flac
2024-02-10 21:59:46.442 /media/music/flac/Lady Gaga/2018 - A Star Is Born/CD01/01.07.flac
You can see that the rotated played-files.txt contains the 4 previous tracks as well as the new one, and that the timestamps of the previous tracks have changed slightly.

It's a strange one.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Timestamp of RecentlyPlayed change during rollover - simbun - 10-02-2024 23:28

Forum Jump:


User(s) browsing this thread: 1 Guest(s)