ejurgensen
2a69869816
[scan] Update iTunes scanner to use new filescanner util functions
2020-02-08 10:55:15 +01:00
ejurgensen
56d3f42598
Fix a few gcc 8 / scan-build compiler warnings
2019-09-22 00:51:17 +02:00
ejurgensen
7abf68200d
[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.
2019-01-30 22:32:46 +01:00
ejurgensen
1de8f39264
[db] Generic fixup + align fixing up between mfi, pli and queue_item
...
The idea here is to make sure the fixing up of tags is done in a consistent
manner. For strings, this means stuff like trimming and empty strings -> null
are applied the same unless there are special exception rules set. It also
means that defaults are applied the same across structs, e.g. "Unknown artist"
for both mfi->artist and queue_item->artist.
The change is also necessary because we want to remove trimming from the sql
query and instead implement it ourselves.
2018-12-31 15:55:49 +01:00
ejurgensen
4a16384d3a
[filescanner] Convert plist timestamps to Unix when importing iTunes XML
2018-09-18 20:29:28 +02:00
ejurgensen
fde0a28142
Support for skip_count and time_skipped file metadata
2018-08-18 22:56:27 +02:00
ejurgensen
0d4dd06b51
[filescanner] iTunes XML mapping of Play Count and Play Date
...
See issue #549
2018-06-25 20:03:38 +02:00
ejurgensen
c23f2c01b2
[scan] Fix bugs related to iTunes XML playlists
...
1) They would get disabled after rescan
2) Playlists and playlistitems didn't get cleaned up
2018-01-25 22:26:00 +01:00
ejurgensen
e1fb3607e9
[scan] Treat playlists with mtime==db_timestamp as modified + better virtual_path for iTunes XML playlists
...
Should fix a problem where saving a playlist with gedit was not picked up by forked-daapd as a modification
2018-01-24 21:36:50 +01:00
ejurgensen
b428760599
[scan] Fix for issue #463 , fname not getting updated on file rename
...
Also modify code style of _enable/_disable functions in db.c
2017-12-16 23:09:29 +01:00
ejurgensen
64dd6b93da
[filescanner] Add missing timestamp update in itunes scanner
2017-10-17 23:12:30 +02:00
ejurgensen
e9e8567e8c
[filescanner] Make sure to split in transactions even when playlist tracks are unknown
2017-10-17 23:12:30 +02:00
ejurgensen
2d54d0d8fe
[filescanner] More alignment of iTunes scanner with the playlist scanner
...
I.e. use transactions and don't scan unmodified files
2017-10-17 23:11:31 +02:00
ejurgensen
322abb8274
[filescanner] Copy playlist scan optimisations to itunes scanner
2017-10-17 23:11:31 +02:00
ejurgensen
1070f507a2
[filescanner] Add some const's and various fixup
2017-10-17 23:11:31 +02:00
chme
528614909c
[filescanner/library] Move filescanner to subfolder
2017-01-13 19:02:47 +01:00