Disable feed loading on start
This commit is contained in:
parent
04e37a8257
commit
2f3c486651
|
|
@ -77,16 +77,16 @@ func (b *memoryBackend) load() error {
|
||||||
|
|
||||||
for uid, channel := range b.Channels {
|
for uid, channel := range b.Channels {
|
||||||
log.Printf("loading channel %s - %s\n", uid, channel.Name)
|
log.Printf("loading channel %s - %s\n", uid, channel.Name)
|
||||||
for _, feed := range b.Feeds[uid] {
|
// for _, feed := range b.Feeds[uid] {
|
||||||
log.Printf("- loading feed %s\n", feed.URL)
|
//log.Printf("- loading feed %s\n", feed.URL)
|
||||||
resp, err := b.Fetch3(uid, feed.URL)
|
// resp, err := b.Fetch3(uid, feed.URL)
|
||||||
if err != nil {
|
// if err != nil {
|
||||||
log.Printf("Error while Fetch3 of %s: %v\n", feed.URL, err)
|
// log.Printf("Error while Fetch3 of %s: %v\n", feed.URL, err)
|
||||||
continue
|
// continue
|
||||||
}
|
// }
|
||||||
defer resp.Body.Close()
|
// defer resp.Body.Close()
|
||||||
b.ProcessContent(uid, feed.URL, resp.Header.Get("Content-Type"), resp.Body)
|
// b.ProcessContent(uid, feed.URL, resp.Header.Get("Content-Type"), resp.Body)
|
||||||
}
|
// }
|
||||||
|
|
||||||
conn.Do("SADD", "channels", uid)
|
conn.Do("SADD", "channels", uid)
|
||||||
conn.Do("SETNX", "channel_sortorder_"+uid, 99999)
|
conn.Do("SETNX", "channel_sortorder_"+uid, 99999)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user