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:
ejurgensen 2020-04-17 11:21:29 +02:00 committed by GitHub
commit 95bc6e3e70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);