fetch unmasked titles from dlsite metadata
This commit is contained in:
parent
0aba651240
commit
43d511e17e
|
@ -282,7 +282,7 @@ async def fetch_async(args):
|
|||
"circle": dlsite_metadata.circle,
|
||||
"date": dlsite_metadata.regist_date.date().isoformat(),
|
||||
"description": dlsite_metadata.description,
|
||||
"series": dlsite_metadata.series,
|
||||
"series": dlsite_metadata.title_name,
|
||||
}
|
||||
authors = dlsite_metadata.author or []
|
||||
tags = dlsite_metadata.genre or []
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
inherit pname version;
|
||||
sha256 = "sha256-cUhH7eNIoQUKt0nUl+wSGFGbZpKmtwPWyVR2PTJI1co=";
|
||||
};
|
||||
patches = [ ./patches/dlsite-async.patch ];
|
||||
pyproject = true;
|
||||
nativeBuildInputs = [ pkgs.pdm ];
|
||||
propagatedBuildInputs = [
|
||||
|
|
13
patches/dlsite-async.patch
Normal file
13
patches/dlsite-async.patch
Normal 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":
|
Loading…
Reference in a new issue