Skip to content

Commit

Permalink
Update rthk.py
Browse files Browse the repository at this point in the history
  • Loading branch information
raileo98 authored Oct 29, 2024
1 parent f4a583e commit 20cdb3e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/rthk.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,8 @@ async def process_category(category, url):
fg.link(href=categories_data[category]['url'], rel='alternate')
fg.language('zh-HK')

feedImg = f"https://images.weserv.nl/?n=-1&output=webp&trim=1&url={urllib.parse.quote_plus('https://favicone.com/' + urllib.parse.urlparse(categories_data[category]['url']).netloc)}"
# feedImg = f"https://images.weserv.nl/?n=-1&output=webp&trim=1&url={urllib.parse.quote_plus('https://favicone.com/' + urllib.parse.urlparse(categories_data[category]['url']).netloc)}"
feedImg = 'https://images.weserv.nl/?n=-1&url=https://news.rthk.hk/rthk/templates/st_tyneo/favicon_144x144.png'
fg.logo(feedImg)

fg.copyright('© 香港電台 RTHK')
Expand Down

0 comments on commit 20cdb3e

Please sign in to comment.