Skip to content

Commit

Permalink
Bump the version
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG committed Sep 24, 2024
1 parent 6eb8f9d commit 13c402a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion host/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ def handle_item(item: feedparser.FeedParserDict, cache: dict, feed_key: str = ""
return False

output_file = constants.IMAGES / f"{cache_key}{ext}"
if "pbs.twimg.com" in link or not output_file.is_file():
if not output_file.is_file():
if not (image := fetch_image(link, feed_key=feed_key)):
return False

Expand Down
2 changes: 1 addition & 1 deletion host/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def guess_url(url: str, date: struct_time, *, feed_key: str = "") -> str:
def alter_url(url: str) -> str:
"""Sometimes it might be better to alter the image URL.
>>> alter_url("https://pbs.twimg.com/media/CrlG7oSWYAA9APY.jpg", None)
>>> alter_url("https://pbs.twimg.com/media/CrlG7oSWYAA9APY.jpg")
'https://pbs.twimg.com/media/CrlG7oSWYAA9APY.jpg:orig'
"""
Expand Down
2 changes: 1 addition & 1 deletion host/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
Source: https://github.com/BoboTiG/shaarlimages.
"""

__version__ = "1.2.0"
__version__ = "1.2.1"
4 changes: 2 additions & 2 deletions tests/integration/test_solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@
(
"twitter_img",
"https://pbs.twimg.com/media/DbeGV44WkAAjNAx.jpg:large",
"3477f54ac9564123b66503c364a2d18a",
"6ea62f00e181fb28beb54a998dd6817f",
),
(
"twitter_img",
"https://pbs.twimg.com/media/DbeGV44WkAAjNAx?format=jpg",
"3477f54ac9564123b66503c364a2d18a",
"6ea62f00e181fb28beb54a998dd6817f",
),
(
"webb_telescope",
Expand Down

0 comments on commit 13c402a

Please sign in to comment.