Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
remove .webp from scrolller
Browse files Browse the repository at this point in the history
  • Loading branch information
Jules-WinnfieldX committed Jul 2, 2024
1 parent 44138a1 commit 10607a5
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 77 deletions.
2 changes: 1 addition & 1 deletion cyberdrop_dl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "5.3.31"
__version__ = "5.3.32"
2 changes: 1 addition & 1 deletion cyberdrop_dl/scraper/crawlers/scrolller_crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ async def subreddit(self, scrape_item: ScrapeItem) -> None:
items = data["data"]["getSubreddit"]["children"]["items"]

for item in items:
media_sources = item['mediaSources']
media_sources = [item for item in item['mediaSources'] if ".webp" not in item['url']]
if media_sources:
highest_res_image_url = URL(media_sources[-1]['url'])
filename, ext = await get_filename_and_ext(highest_res_image_url.name)
Expand Down
Loading

0 comments on commit 10607a5

Please sign in to comment.