aboutsummaryrefslogtreecommitdiff
path: root/src/due/html.py
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-07-25 13:56:03 -0700
committerFuwn <[email protected]>2023-07-25 13:56:03 -0700
commit2292be8f356aac642fa486c57ffb2a520dbc8be3 (patch)
tree210937a62ed4c5f18594baa66fcc058c91373df4 /src/due/html.py
parentfeat(index): make manga hideable (diff)
downloadold.due.moe-2292be8f356aac642fa486c57ffb2a520dbc8be3.tar.xz
old.due.moe-2292be8f356aac642fa486c57ffb2a520dbc8be3.zip
feat(html): open links in new tab
Diffstat (limited to 'src/due/html.py')
-rw-r--r--src/due/html.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/due/html.py b/src/due/html.py
index af22e64..93d1e58 100644
--- a/src/due/html.py
+++ b/src/due/html.py
@@ -31,7 +31,7 @@ def anime_to_html(releasing_outdated_anime):
if title is None:
title = anime["title"]["romaji"]
- current_html += f'<li><a href="https://anilist.co/anime/{id}">{title}</a> {progress} [{available}]</li>'
+ current_html += f'<li><a href="https://anilist.co/anime/{id}" target="_blank">{title}</a> {progress} [{available}]</li>'
return (current_html + "</ul>", len(titles))
@@ -121,7 +121,7 @@ def manga_to_html(releasing_outdated_manga):
)
current_html.append(
- f'<li><a href="https://anilist.co/manga/{id}">{title}</a> {progress} [{available_link}]</li>'
+ f'<li><a href="https://anilist.co/manga/{id}" target="_blank">{title}</a> {progress} [{available_link}]</li>'
)
# 80