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 25, 2024
1 parent 0fbc226 commit b92ec08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/rthk.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ async def process_article(fg, category, article):
imgHtml = ''
imgList = set()
for image in images:
imgUrl = modify_image_url('https://images.weserv.nl/?n=-1&output=webp&trim=1&url=' + urllib.parse.quote_plus(image['src']), 99)
imgUrl = modify_image_url('https://images.weserv.nl/?n=-1&we&h=1080&output=webp&trim=1&url=' + urllib.parse.quote_plus(image['src']), 99)
print(f"{articleLink} - {articleTitle}: {imgUrl}")
imgList.add(imgUrl)

Expand Down Expand Up @@ -344,7 +344,7 @@ async def process_article(fg, category, article):
match = re.search(r"videoThumbnail\s{0,1000}=\s{0,1000}'(.*)'", script.text)
if match:
video_thumbnail = match.group(1)
imgUrl = modify_image_url('https://images.weserv.nl/?n=-1&output=webp&trim=1&url=' + urllib.parse.quote_plus(video_thumbnail), 99)
imgUrl = modify_image_url('https://images.weserv.nl/?n=-1&we&h=1080&output=webp&trim=1&url=' + urllib.parse.quote_plus(video_thumbnail), 99)
print(f"{articleLink} - {articleTitle}: {imgUrl}")
imgList.add(imgUrl)

Expand Down

0 comments on commit b92ec08

Please sign in to comment.