mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-03 01:46:02 -05:00
[scan] Fix parsing of iTunes "Play Date" tag (fixes #683)
"Play Date" tag was seconds since 1904 (an Apple Mac HFS+ timestamp), not a Unix timestamp as we assumed. Seems Apple themselves realised that wasn't a great idea (+ not a proper plist date type), and therefore provide "Play Date UTC" as an alternative.
This commit is contained in:
parent
81753d44a7
commit
7abf68200d
@ -126,7 +126,7 @@ static struct metadata_map md_map[] =
|
||||
{ "Rating", PLIST_UINT, mfi_offsetof(rating) },
|
||||
{ "Compilation", PLIST_BOOLEAN, mfi_offsetof(compilation) },
|
||||
{ "Date Added", PLIST_DATE, mfi_offsetof(time_added) },
|
||||
{ "Play Date", PLIST_UINT, mfi_offsetof(time_played) },
|
||||
{ "Play Date UTC",PLIST_DATE, mfi_offsetof(time_played) },
|
||||
{ "Play Count", PLIST_UINT, mfi_offsetof(play_count) },
|
||||
{ "Skip Count", PLIST_UINT, mfi_offsetof(skip_count) },
|
||||
{ "Skip Date", PLIST_DATE, mfi_offsetof(time_skipped) },
|
||||
|
Loading…
x
Reference in New Issue
Block a user