Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Qidian: fix style; add book format and localized label #755

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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