aboutsummaryrefslogtreecommitdiff
path: root/src/due/html
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-07-28 22:32:10 -0700
committerFuwn <[email protected]>2023-07-28 22:32:10 -0700
commit0a2fcddffc5b4b32ed772e02dd69afbe9734b0b1 (patch)
tree6a8621b20b75acf9d9b5971dd10ea3e9d13ea81a /src/due/html
parentrefactor(manga): move rerequests to function (diff)
downloadold.due.moe-0a2fcddffc5b4b32ed772e02dd69afbe9734b0b1.tar.xz
old.due.moe-0a2fcddffc5b4b32ed772e02dd69afbe9734b0b1.zip
feat(anilist): allow media increment
Diffstat (limited to 'src/due/html')
-rw-r--r--src/due/html/anime.py2
-rw-r--r--src/due/html/manga.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/due/html/anime.py b/src/due/html/anime.py
index 1113965..dfbd741 100644
--- a/src/due/html/anime.py
+++ b/src/due/html/anime.py
@@ -40,7 +40,7 @@ def anime_to_html(releasing_outdated_anime):
)
current_html.append(
- f'<li><a href="https://anilist.co/anime/{id}" target="_blank">{title}</a> {progress}{total_html} [{available}]</li>'
+ f'<li><a href="https://anilist.co/anime/{id}" target="_blank">{title}</a> {progress}{total_html} <a href="/anilist/increment?id={id}&progress={progress + 1}">+</a> [{available}]</li>'
)
current_html = sorted(current_html, key=seen)
diff --git a/src/due/html/manga.py b/src/due/html/manga.py
index dcf6aad..ea655ba 100644
--- a/src/due/html/manga.py
+++ b/src/due/html/manga.py
@@ -153,7 +153,7 @@ def manga_to_html(releasing_outdated_manga, show_missing):
)
current_html.append(
- f'<li><a href="https://anilist.co/manga/{id}" target="_blank">{manga["title"]["english"] or manga["title"]["romaji"] or title}</a> {progress} [{available_link}]</li>'
+ f'<li><a href="https://anilist.co/manga/{id}" target="_blank">{manga["title"]["english"] or manga["title"]["romaji"] or title}</a> {progress} <a href="/anilist/increment?id={id}&progress={progress + 1}">+</a> [{available_link}]</li>'
)
joblib.Parallel(n_jobs=int(os.getenv("CONCURRENT_JOBS")) or 4, require="sharedmem")(