fetch unmasked titles from dlsite metadata

This commit is contained in:
xenofem 2024-07-17 16:26:16 -04:00
parent 0aba651240
commit 43d511e17e
3 changed files with 15 additions and 1 deletions

View file

@ -282,7 +282,7 @@ async def fetch_async(args):
"circle": dlsite_metadata.circle, "circle": dlsite_metadata.circle,
"date": dlsite_metadata.regist_date.date().isoformat(), "date": dlsite_metadata.regist_date.date().isoformat(),
"description": dlsite_metadata.description, "description": dlsite_metadata.description,
"series": dlsite_metadata.series, "series": dlsite_metadata.title_name,
} }
authors = dlsite_metadata.author or [] authors = dlsite_metadata.author or []
tags = dlsite_metadata.genre or [] tags = dlsite_metadata.genre or []

View file

@ -36,6 +36,7 @@
inherit pname version; inherit pname version;
sha256 = "sha256-cUhH7eNIoQUKt0nUl+wSGFGbZpKmtwPWyVR2PTJI1co="; sha256 = "sha256-cUhH7eNIoQUKt0nUl+wSGFGbZpKmtwPWyVR2PTJI1co=";
}; };
patches = [ ./patches/dlsite-async.patch ];
pyproject = true; pyproject = true;
nativeBuildInputs = [ pkgs.pdm ]; nativeBuildInputs = [ pkgs.pdm ];
propagatedBuildInputs = [ propagatedBuildInputs = [

View file

@ -0,0 +1,13 @@
diff --git a/src/dlsite_async/work.py b/src/dlsite_async/work.py
index 46ae0d1..81d0bc5 100644
--- a/src/dlsite_async/work.py
+++ b/src/dlsite_async/work.py
@@ -86,6 +86,8 @@ class Work:
page_count: Optional[int] = None
description: Optional[str] = None
sample_images: Optional[list[str]] = None
+ title_name: Optional[str] = None
+ title_id: Optional[str] = None
@classmethod
def from_dict(cls, d: Mapping[str, Any]) -> "Work":