Use title when no custom_title specified

A newly added feed has no custom title, but it will always have a title
downloaded with the feed XML. Save this title into urls.opml. Otherwise
the newly added feed will not be loaded on the next snownews launch.
This commit is contained in:
Mike Sharov 2021-04-17 14:41:31 -04:00
parent e07998c23e
commit 1a0f39b94b
1 changed files with 2 additions and 0 deletions

View File

@ -250,6 +250,8 @@ static void WriteFeedUrls (void)
fputs ("\t<outline", urlfile);
if (f->custom_title)
fprintf (urlfile, " text=\"%s\"", f->custom_title);
else if (f->title)
fprintf (urlfile, " text=\"%s\"", f->title);
if (f->feedurl)
fprintf (urlfile, " xmlUrl=\"%s\"", f->feedurl);
if (f->feedcategories) {