Skip to content

Commit

Permalink
feat: max error times for h5 feed api (#90)
Browse files Browse the repository at this point in the history
* feat: max error times for h5 feed api

* fix: exceptiongroup not in main group

---------

Co-authored-by: JamzumSum <[email protected]>
  • Loading branch information
github-actions[bot] and JamzumSum authored Mar 13, 2023
1 parent 2c6de32 commit c63b9b0
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 157 deletions.
24 changes: 24 additions & 0 deletions doc/source/locale/zh_CN/LC_MESSAGES/api/emoji.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2022, aioqzone
# This file is distributed under the same license as the aioqzone-feed package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: aioqzone-feed \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-03-08 21:56+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: zh_CN\n"
"Language-Team: zh_CN <[email protected]>\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.12.1\n"

#: ../../source/api/emoji.rst:2
msgid "Emoji API"
msgstr ""
28 changes: 18 additions & 10 deletions doc/source/locale/zh_CN/LC_MESSAGES/api/feed.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: aioqzone-feed \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-03-10 09:10+0800\n"
"POT-Creation-Date: 2023-03-13 13:11+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: zh_CN\n"
Expand Down Expand Up @@ -110,29 +110,29 @@ msgstr ""
msgid "not logined"
msgstr ""

#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_count:8
#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_second:11
#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_count:9
#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_second:12
#: aioqzone_feed.api.feed.web.FeedWebApi.get_feeds_by_count:8
#: aioqzone_feed.api.feed.web.FeedWebApi.get_feeds_by_second:11 of
msgid "unexcpected error"
msgstr ""

#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_count:10
#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_second:13
#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_count:11
#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_second:14
#: aioqzone_feed.api.feed.web.FeedWebApi.get_feeds_by_count:10
#: aioqzone_feed.api.feed.web.FeedWebApi.get_feeds_by_second:13 of
msgid ":py:class:`int`"
msgstr ""

#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_count:11
#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_second:14
#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_count:12
#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_second:15
#: aioqzone_feed.api.feed.web.FeedWebApi.get_feeds_by_count:11
#: aioqzone_feed.api.feed.web.FeedWebApi.get_feeds_by_second:14 of
msgid "feeds num got actually."
msgstr ""

#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_count:13
#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_second:16
#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_count:14
#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_second:17
#: aioqzone_feed.api.feed.web.FeedWebApi.get_feeds_by_count:13
#: aioqzone_feed.api.feed.web.FeedWebApi.get_feeds_by_second:16 of
msgid "You may need :meth:`.new_batch` to generate a new batch id."
Expand All @@ -142,7 +142,6 @@ msgstr ""
msgid "`FeedEvent.StopFeedFetch` works in this method as well."
msgstr ""

#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_second:1
#: aioqzone_feed.api.feed.web.FeedWebApi.get_feeds_by_second:1 of
msgid "Get feeds by abstime (seconds). Range: `[start - second, start]`."
msgstr ""
Expand Down Expand Up @@ -201,3 +200,12 @@ msgid ""
"Drop feeds according to some rules. No need to emit :meth:`FeedEvent.FeedDropped` event, it is "
"handled by :meth:`_dispatch_feed`."
msgstr ""

#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_count:8
#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_second:11 of
msgid "max error time exceeds"
msgstr ""

#: aioqzone_feed.api.feed.h5.FeedH5Api.get_feeds_by_second:1 of
msgid "Get feeds by abstime (seconds). Range: [`start` - `seconds`, `start`]."
msgstr ""
173 changes: 45 additions & 128 deletions doc/source/locale/zh_CN/LC_MESSAGES/type.po
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: aioqzone-feed \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-03-09 14:12+0800\n"
"POT-Creation-Date: 2023-03-13 13:11+0800\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand All @@ -22,37 +22,6 @@ msgstr ""
msgid "aioqzone-feed Types"
msgstr ""

#: aioqzone_feed.type.BaseDetail aioqzone_feed.type.BaseFeed aioqzone_feed.type.FeedContent
#: aioqzone_feed.type.VisualMedia of
msgid "Config"
msgstr ""

#: aioqzone_feed.type.BaseDetail:1 aioqzone_feed.type.BaseFeed:1 aioqzone_feed.type.FeedContent:1
#: aioqzone_feed.type.VisualMedia:1 of
msgid "**keep_untouched**: *tuple = (<class 'functools.singledispatchmethod'>,)*"
msgstr ""

#: aioqzone_feed.type.BaseDetail aioqzone_feed.type.BaseFeed aioqzone_feed.type.FeedContent
#: aioqzone_feed.type.VisualMedia of
msgid "Fields"
msgstr ""

#: aioqzone_feed.type.BaseDetail:1 of
msgid ""
":py:obj:`entities (List[aioqzone.type.entity.ConEntity]) "
"<aioqzone_feed.type.BaseDetail.entities>`"
msgstr ""

#: aioqzone_feed.type.BaseDetail:1 of
msgid ""
":py:obj:`forward (pydantic.networks.HttpUrl | str | aioqzone_feed.type.BaseFeed | None) "
"<aioqzone_feed.type.BaseDetail.forward>`"
msgstr ""

#: aioqzone_feed.type.BaseDetail:1 of
msgid ":py:obj:`media (List[aioqzone_feed.type.VisualMedia]) <aioqzone_feed.type.BaseDetail.media>`"
msgstr ""

#: ../../docstring aioqzone_feed.type.BaseDetail.forward:1 of
msgid "unikey to the feed, or the content itself."
msgstr ""
Expand All @@ -69,46 +38,6 @@ msgstr ""
msgid "FeedModel is a model for storing a feed, with the info to hashing and retrieving the feed."
msgstr ""

#: aioqzone_feed.type.BaseFeed:1 aioqzone_feed.type.FeedContent:1 of
msgid "**orm_mode**: *bool = True*"
msgstr ""

#: aioqzone_feed.type.BaseFeed:1 of
msgid ":py:obj:`abstime (int) <aioqzone_feed.type.BaseFeed.abstime>`"
msgstr ""

#: aioqzone_feed.type.BaseFeed:1 of
msgid ":py:obj:`appid (int) <aioqzone_feed.type.BaseFeed.appid>`"
msgstr ""

#: aioqzone_feed.type.BaseFeed:1 of
msgid ":py:obj:`curkey (pydantic.networks.HttpUrl | str | None) <aioqzone_feed.type.BaseFeed.curkey>`"
msgstr ""

#: aioqzone_feed.type.BaseFeed:1 of
msgid ":py:obj:`fid (str) <aioqzone_feed.type.BaseFeed.fid>`"
msgstr ""

#: aioqzone_feed.type.BaseFeed:1 of
msgid ":py:obj:`nickname (str) <aioqzone_feed.type.BaseFeed.nickname>`"
msgstr ""

#: aioqzone_feed.type.BaseFeed:1 of
msgid ":py:obj:`topicId (str) <aioqzone_feed.type.BaseFeed.topicId>`"
msgstr ""

#: aioqzone_feed.type.BaseFeed:1 of
msgid ":py:obj:`typeid (int) <aioqzone_feed.type.BaseFeed.typeid>`"
msgstr ""

#: aioqzone_feed.type.BaseFeed:1 of
msgid ":py:obj:`uin (int) <aioqzone_feed.type.BaseFeed.uin>`"
msgstr ""

#: aioqzone_feed.type.BaseFeed:1 of
msgid ":py:obj:`unikey (pydantic.networks.HttpUrl | str | None) <aioqzone_feed.type.BaseFeed.unikey>`"
msgstr ""

#: ../../docstring aioqzone_feed.type.BaseFeed.abstime:1 of
msgid "Feed created time. common alias: `created_time`"
msgstr ""
Expand All @@ -128,26 +57,6 @@ msgid ""
"string and is commonly used by multiple shares. So do not distinguish all feeds on this field."
msgstr ""

#: ../../docstring aioqzone_feed.type.BaseFeed.nickname:1 of
msgid "Feed owner nickname."
msgstr ""

#: ../../docstring aioqzone_feed.type.BaseFeed.topicId:1 of
msgid ""
"This is used to reply to this feed, or can be used to update this feed if current user own this "
"feed."
msgstr ""

#: ../../docstring aioqzone_feed.type.BaseFeed.uin:1 of
msgid "Feed owner uin. (hostuin)"
msgstr ""

#: ../../docstring aioqzone_feed.type.BaseFeed.unikey:1 of
msgid ""
"The identifier to the original content. May be a url in all kinds (sometimes not strictly in a "
"correct format, but it is from the meaning)"
msgstr ""

#: functools.singledispatchmethod.__get__.<locals>._method:1 of
msgid "classmethod(function) -> method"
msgstr ""
Expand Down Expand Up @@ -187,50 +96,30 @@ msgid ""
"staticmethod builtin."
msgstr ""

#: aioqzone_feed.type.FeedContent:1 of
msgid ""
"FeedContent is feed with contents. This might be the common structure to represent a feed as "
"what it's known."
msgstr ""

#: aioqzone_feed.type.FeedContent:1 of
msgid ":py:obj:`islike (int) <aioqzone_feed.type.FeedContent.islike>`"
msgstr ""

#: aioqzone_feed.type.VisualMedia:1 of
msgid ":py:obj:`height (int) <aioqzone_feed.type.VisualMedia.height>`"
msgstr ""

#: aioqzone_feed.type.VisualMedia:1 of
msgid ":py:obj:`is_video (bool) <aioqzone_feed.type.VisualMedia.is_video>`"
msgstr ""

#: aioqzone_feed.type.VisualMedia:1 of
msgid ":py:obj:`raw (pydantic.networks.HttpUrl) <aioqzone_feed.type.VisualMedia.raw>`"
msgstr ""

#: aioqzone_feed.type.VisualMedia:1 of
msgid ":py:obj:`thumbnail (pydantic.networks.HttpUrl | None) <aioqzone_feed.type.VisualMedia.thumbnail>`"
msgstr ""

#: aioqzone_feed.type.VisualMedia:1 of
msgid ":py:obj:`width (int) <aioqzone_feed.type.VisualMedia.width>`"
#: ../../docstring aioqzone_feed.type.BaseFeed.nickname:1 of
msgid "Feed owner nickname."
msgstr ""

#: ../../docstring aioqzone_feed.type.VisualMedia.raw aioqzone_feed.type.VisualMedia.thumbnail of
msgid "Constraints"
#: ../../docstring aioqzone_feed.type.BaseFeed.topicId:1 of
msgid ""
"This is used to reply to this feed, or can be used to update this feed if current user own this "
"feed."
msgstr ""

#: ../../docstring aioqzone_feed.type.VisualMedia.raw:1 aioqzone_feed.type.VisualMedia.thumbnail:1 of
msgid "**minLength** = 1"
#: ../../docstring aioqzone_feed.type.BaseFeed.uin:1 of
msgid "Feed owner uin. (hostuin)"
msgstr ""

#: ../../docstring aioqzone_feed.type.VisualMedia.raw:1 aioqzone_feed.type.VisualMedia.thumbnail:1 of
msgid "**maxLength** = 2083"
#: ../../docstring aioqzone_feed.type.BaseFeed.unikey:1 of
msgid ""
"The identifier to the original content. May be a url in all kinds (sometimes not strictly in a "
"correct format, but it is from the meaning)"
msgstr ""

#: ../../docstring aioqzone_feed.type.VisualMedia.raw:1 aioqzone_feed.type.VisualMedia.thumbnail:1 of
msgid "**format** = uri"
#: aioqzone_feed.type.FeedContent:1 of
msgid ""
"FeedContent is feed with contents. This might be the common structure to represent a feed as "
"what it's known."
msgstr ""

#~ msgid "Fields"
Expand Down Expand Up @@ -367,3 +256,31 @@ msgstr ""

#~ msgid "**format** = uri"
#~ msgstr ""

#~ msgid "**keep_untouched**: *tuple = (<class 'functools.singledispatchmethod'>,)*"
#~ msgstr ""

#~ msgid ""
#~ ":py:obj:`entities (List[aioqzone.type.entity.ConEntity]) "
#~ "<aioqzone_feed.type.BaseDetail.entities>`"
#~ msgstr ""

#~ msgid ""
#~ ":py:obj:`forward (pydantic.networks.HttpUrl | str | "
#~ "aioqzone_feed.type.BaseFeed | None) "
#~ "<aioqzone_feed.type.BaseDetail.forward>`"
#~ msgstr ""

#~ msgid ":py:obj:`media (List[aioqzone_feed.type.VisualMedia]) <aioqzone_feed.type.BaseDetail.media>`"
#~ msgstr ""

#~ msgid ":py:obj:`curkey (pydantic.networks.HttpUrl | str | None) <aioqzone_feed.type.BaseFeed.curkey>`"
#~ msgstr ""

#~ msgid ":py:obj:`unikey (pydantic.networks.HttpUrl | str | None) <aioqzone_feed.type.BaseFeed.unikey>`"
#~ msgstr ""

#~ msgid ""
#~ ":py:obj:`thumbnail (pydantic.networks.HttpUrl | None) "
#~ "<aioqzone_feed.type.VisualMedia.thumbnail>`"
#~ msgstr ""
28 changes: 14 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c63b9b0

Please sign in to comment.