diff options
author | pommicket <pommicket@gmail.com> | 2024-08-15 22:42:14 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2024-08-15 23:33:07 -0400 |
commit | 4715ca9922e14fcba86295072bee4f9f3d6fc567 (patch) | |
tree | 6da7bb517d5cacb04ce5e4839171a27b1bdabd8c /server/potd.py | |
parent | 11093ffda4f36e449f83303ffdebf60e5c058404 (diff) |
Fix image links, piece postions
Diffstat (limited to 'server/potd.py')
-rwxr-xr-x | server/potd.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/potd.py b/server/potd.py index 059338b..1be3cf8 100755 --- a/server/potd.py +++ b/server/potd.py @@ -16,6 +16,6 @@ start = desc.index('"/wiki/File:') + len('"/wiki/') end = desc.index('"', start) name_escaped = desc[start:end] name = unquote(name_escaped) -url = get_urls_of_images([name])[0] +url = get_urls_of_images([name])[name] link = f'https://commons.wikimedia.org/wiki/{name_escaped}' print(url, link) |