Server Version#: 1.27.1.5916
Player Version#: 4.76.1
Plexamp Version#: 4.2.2. (iOS)
When did the PMS Metadata for dates change from Date Strings (i.e., %Y-%m-%d %H:%M:%S) to numerical timestamps, and was that documented in the release notes of change log when the change was implemented?
I have a Python script that interacts directly with the PMS DB file, and it references the “viewed_at” field in the “metadata_items_views” table. This week, after updating PMS to 1.27.1.5916, my script returned a message indicating I had no “track listens” in June 2022.
I knew this was untrue, and that is when I discovered that the “viewed_at” field now contains timestamp data instead of time strings:
I never seen it documented in the release notes but feel like approx 6-8 weeks ago when they started to make this change over to using epoch unix timestamp.
I’d imagine you could use something like strftime in your script to convert the human readable date into something you can query the db with. You can also use https://www.epochconverter.com if you want to just do a quick conversion.
I for one appreciated the move to Unix epochs for timestamps. I mean ASCII strings for timestamps? Really? The C++ I had to write to manipulate that into something useful was truly awful.