summaryrefslogtreecommitdiff
path: root/src/feeds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/feeds.c')
-rw-r--r--src/feeds.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/feeds.c b/src/feeds.c
index 7e54a633..93bec891 100644
--- a/src/feeds.c
+++ b/src/feeds.c
@@ -151,12 +151,10 @@ static void parseResult_FeedJob_(iFeedJob *d) {
151 const iRangecc url = capturedRange_RegExpMatch(&m, 1); 151 const iRangecc url = capturedRange_RegExpMatch(&m, 1);
152 const iRangecc date = capturedRange_RegExpMatch(&m, 2); 152 const iRangecc date = capturedRange_RegExpMatch(&m, 2);
153 const iRangecc title = capturedRange_RegExpMatch(&m, 3); 153 const iRangecc title = capturedRange_RegExpMatch(&m, 3);
154 iFeedEntry *entry = new_FeedEntry(); 154 iFeedEntry * entry = new_FeedEntry();
155 entry->bookmarkId = d->bookmarkId; 155 entry->bookmarkId = d->bookmarkId;
156 setRange_String(&entry->url, url); 156 setRange_String(&entry->url, url);
157 set_String(&entry->url, 157 set_String(&entry->url, absoluteUrl_String(url_GmRequest(d->request), &entry->url));
158 absoluteUrl_String(url_GmRequest(d->request),
159 collect_String(lower_String(&entry->url))));
160 setRange_String(&entry->title, title); 158 setRange_String(&entry->title, title);
161 trimTitle_(&entry->title); 159 trimTitle_(&entry->title);
162 int year, month, day; 160 int year, month, day;
@@ -293,7 +291,7 @@ static void stopWorker_Feeds_(iFeeds *d) {
293 291
294static int cmp_FeedEntryPtr_(const void *a, const void *b) { 292static int cmp_FeedEntryPtr_(const void *a, const void *b) {
295 const iFeedEntry * const *elem[2] = { a, b }; 293 const iFeedEntry * const *elem[2] = { a, b };
296 return cmpStringCase_String(&(*elem[0])->url, &(*elem[1])->url); 294 return cmpString_String(&(*elem[0])->url, &(*elem[1])->url);
297} 295}
298 296
299static void save_Feeds_(iFeeds *d) { 297static void save_Feeds_(iFeeds *d) {