mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 00:33:14 +00:00
more todo
This commit is contained in:
parent
36e359c881
commit
883214a740
@ -144,6 +144,7 @@ func (s *Server) handleFeedErrors(c *router.Context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (s *Server) handleFeedIcon(c *router.Context) {
|
func (s *Server) handleFeedIcon(c *router.Context) {
|
||||||
|
// TODO: caching
|
||||||
id, err := c.VarInt64("id")
|
id, err := c.VarInt64("id")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
c.Out.WriteHeader(http.StatusBadRequest)
|
c.Out.WriteHeader(http.StatusBadRequest)
|
||||||
|
@ -48,6 +48,7 @@ func (w *Worker) FindFavicons() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (w *Worker) FindFeedFavicon(feed storage.Feed) {
|
func (w *Worker) FindFeedFavicon(feed storage.Feed) {
|
||||||
|
// TODO: give up search attempts if the host is reachable but has no icon
|
||||||
icon, err := findFavicon(feed.Link, feed.FeedLink)
|
icon, err := findFavicon(feed.Link, feed.FeedLink)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Failed to find favicon for %s (%s): %s", feed.FeedLink, feed.Link, err)
|
log.Printf("Failed to find favicon for %s (%s): %s", feed.FeedLink, feed.Link, err)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user