Skip to content

Commit

Permalink
fix: fetch feed favicon
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashinch committed Jan 10, 2024
1 parent 95bcf8f commit 5d1bdfb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@
-keep class com.rometools.** { *; }

# Provider API
-keep class me.ash.reader.infrastructure.rss.provider.** { *; }
-keep class me.ash.reader.infrastructure.** { *; }
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,11 @@ abstract class AbstractRssRepository(
val latest = articleDao.queryLatestByFeedId(context.currentAccountId, feed.id)
val articles = rssHelper.queryRssXml(feed, latest?.link)
if (feed.icon == null) {
rssHelper.queryRssIcon(feedDao, feed)
try {
rssHelper.queryRssIcon(feedDao, feed)
} catch (e: Exception) {
Log.i("RLog", "queryRssIcon is failed: ${e.message}")
}
}
return FeedWithArticle(
feed = feed.apply { isNotification = feed.isNotification && articles.isNotEmpty() },
Expand Down

0 comments on commit 5d1bdfb

Please sign in to comment.