missionpanel 1.1.2__tar.gz → 1.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {missionpanel-1.1.2 → missionpanel-1.1.3}/PKG-INFO +1 -1
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel/example/ttrss.py +4 -4
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel.egg-info/PKG-INFO +1 -1
- {missionpanel-1.1.2 → missionpanel-1.1.3}/setup.py +1 -1
- {missionpanel-1.1.2 → missionpanel-1.1.3}/LICENSE +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/README.md +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel/__init__.py +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel/example/__init__.py +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel/example/rsshub.py +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel/handler/__init__.py +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel/handler/handler.py +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel/orm/__init__.py +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel/orm/core.py +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel/orm/handler.py +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel/submitter/__init__.py +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel/submitter/abc.py +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel/submitter/asynchronous.py +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel/submitter/submitter.py +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel.egg-info/SOURCES.txt +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel.egg-info/dependency_links.txt +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel.egg-info/requires.txt +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/missionpanel.egg-info/top_level.txt +0 -0
- {missionpanel-1.1.2 → missionpanel-1.1.3}/setup.cfg +0 -0
@@ -107,7 +107,7 @@ class TTRSSHubSubmitter(TTRSSSubmitter):
|
|
107
107
|
logger = logging.getLogger("TTRSSHubSubmitter")
|
108
108
|
|
109
109
|
@abc.abstractmethod
|
110
|
-
async def parse_xml(self, xml: str) -> AsyncGenerator[Any, None]:
|
110
|
+
async def parse_xml(self, xml: str, feed: dict, content: dict) -> AsyncGenerator[Any, None]:
|
111
111
|
pass
|
112
112
|
|
113
113
|
async def preprocess(self, feed: dict, content: dict) -> Union[Dict, None]:
|
@@ -119,7 +119,7 @@ class TTRSSHubSubmitter(TTRSSSubmitter):
|
|
119
119
|
return
|
120
120
|
async with httpx.AsyncClient(**httpx_client_options) as client:
|
121
121
|
response = await client.get(feed['feed_url'])
|
122
|
-
async for mission_content in self.parse_xml(response.text):
|
122
|
+
async for mission_content in self.parse_xml(response.text, feed, content):
|
123
123
|
yield mission_content
|
124
124
|
|
125
125
|
async def parse_content(self, feed: dict, content: dict, **httpx_client_options) -> AsyncGenerator[Any, None]:
|
@@ -132,7 +132,7 @@ class TTRSSHubSubmitter(TTRSSSubmitter):
|
|
132
132
|
|
133
133
|
class TTRRSSHubRootSubmitter(TTRSSHubSubmitter):
|
134
134
|
|
135
|
-
async def parse_xml(self, xml: str) -> AsyncGenerator[str, None]:
|
135
|
+
async def parse_xml(self, xml: str, feed: dict, content: dict) -> AsyncGenerator[str, None]:
|
136
136
|
root = ElementTree.XML(xml)
|
137
137
|
yield {
|
138
138
|
'url': root.find('channel/link').text,
|
@@ -142,7 +142,7 @@ class TTRRSSHubRootSubmitter(TTRSSHubSubmitter):
|
|
142
142
|
|
143
143
|
class TTRRSSHubSubitemSubmitter(TTRSSHubSubmitter):
|
144
144
|
|
145
|
-
async def parse_xml(self, xml: str) -> AsyncGenerator[str, None]:
|
145
|
+
async def parse_xml(self, xml: str, feed: dict, content: dict) -> AsyncGenerator[str, None]:
|
146
146
|
root = ElementTree.XML(xml)
|
147
147
|
for item in root.find('channel').iter('item'):
|
148
148
|
yield {'url': item.find('link').text}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|