[library] Ignore RSS items without URL's

This commit is contained in:
ejurgensen 2020-03-23 20:08:27 +01:00
parent 1a45a2acda
commit 2af7296723

View File

@ -437,6 +437,12 @@ rss_save(struct playlist_info *pli, int *count, enum rss_scan_type scan_type)
return -1;
}
if (!ri.url)
{
DPRINTF(E_WARN, L_LIB, "Missing URL for item '%s' (date %s) in RSS feed '%s'\n", ri.title, ri.pubdate, feed_title);
continue;
}
db_pl_add_item_bypath(pli->id, ri.url);
(*count)++;