Skip to content

Commit

Permalink
Qidian: fix style; add book format and localized label
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Oct 19, 2024
1 parent fe2b2d8 commit 2db1914
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions catalog/sites/qidian.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def scrape(self):
metadata={
"localized_title": [{"lang": "zh-cn", "text": title}],
"author": authors,
"format": Edition.BookFormat.WEB,
"localized_description": [{"lang": "zh-cn", "text": brief}],
"cover_image_url": img_url,
}
Expand Down
1 change: 1 addition & 0 deletions catalog/sites/ypshuo.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ def scrape(self):
metadata={
"localized_title": [{"lang": "zh-cn", "text": o["data"]["novel_name"]}],
"author": [o["data"]["author_name"]],
"format": Edition.BookFormat.WEB,
"localized_description": [
{"lang": "zh-cn", "text": o["data"]["synopsis"]}
],
Expand Down
2 changes: 1 addition & 1 deletion common/static/scss/_sitelabel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
white-space: nowrap;
}

.qidian {
.qidian, .ypshuo {
border: none;
color: white;
background-color: #9e252b;
Expand Down
8 changes: 8 additions & 0 deletions locale/zh_Hans/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@ msgstr "苹果音乐"
msgid "Fediverse"
msgstr "联邦宇宙"

#: catalog/common/models.py:60 catalog/common/models.py:123
msgid "Qidian"
msgstr "起点"

#: catalog/common/models.py:61 catalog/common/models.py:124
msgid "Ypshuo"
msgstr "阅评说"

#: catalog/common/models.py:63
msgid "WikiData"
msgstr "维基数据"
Expand Down
8 changes: 8 additions & 0 deletions locale/zh_Hant/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,14 @@ msgstr "蘋果音樂"
msgid "Fediverse"
msgstr "聯邦宇宙"

#: catalog/common/models.py:60 catalog/common/models.py:123
msgid "Qidian"
msgstr "起點"

#: catalog/common/models.py:61 catalog/common/models.py:124
msgid "Ypshuo"
msgstr "閱評說"

#: catalog/common/models.py:63
msgid "WikiData"
msgstr "維基數據"
Expand Down

0 comments on commit 2db1914

Please sign in to comment.