mirror of
https://github.com/owntone/owntone-server.git
synced 2025-02-03 09:56:00 -05:00
Merge pull request #946 from whatdoineed2do/scan-rss-rescan-fix
[library] RSS bug fix - meta rescan resets "play count" and other fields
This commit is contained in:
commit
95bc6e3e70
@ -453,6 +453,13 @@ rss_save(struct playlist_info *pli, int *count, enum rss_scan_type scan_type)
|
||||
if (ret > 0)
|
||||
continue;
|
||||
}
|
||||
else if (scan_type == RSS_SCAN_META)
|
||||
{
|
||||
// Using existing file id if already in library, resulting in update but preserving play_count etc
|
||||
mfi.id = db_file_id_bypath(ri.url);
|
||||
if (mfi.id > 0)
|
||||
time_added = 0;
|
||||
}
|
||||
|
||||
scan_metadata_stream(&mfi, ri.url);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user