projects
/
prss.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
(no commit message)
[prss.git]
/
src
/
ttrss.c
diff --git
a/src/ttrss.c
b/src/ttrss.c
index
72dabdb
..
db57397
100644
(file)
--- a/
src/ttrss.c
+++ b/
src/ttrss.c
@@
-18,6
+18,7
@@
*/
#include <stdio.h>
*/
#include <stdio.h>
+#include <stlid.h>
#include <string.h>
#include <glib.h>
#include <string.h>
#include <glib.h>
@@
-63,19
+64,19
@@
const char *ttrss_get_headline_content(struct headline *h)
{
const char *cache_dir;
char *path, *content;
{
const char *cache_dir;
char *path, *content;
-
+
if (!h->content) {
cache_dir = get_cache_dir();
if (cache_dir) {
path = g_strdup_printf("%s/%d", cache_dir, h->id);
if (!h->content) {
cache_dir = get_cache_dir();
if (cache_dir) {
path = g_strdup_printf("%s/%d", cache_dir, h->id);
-
+
content = file_get_content(path);
content = file_get_content(path);
-
+
if (content) {
h->content = content;
} else {
h->content = ws_get_article_content(h->id);
if (content) {
h->content = content;
} else {
h->content = ws_get_article_content(h->id);
-
+
if (h->content)
file_set_content(path, h->content);
}
if (h->content)
file_set_content(path, h->content);
}