Ignore arabic readings due to technical troubles.
This commit is contained in:
parent
546baa3668
commit
7b735727f4
48
.idea/workspace.xml
generated
48
.idea/workspace.xml
generated
@ -45,7 +45,7 @@
|
||||
<entry key="dummy" value="14" />
|
||||
<entry key="gitignore" value="1" />
|
||||
<entry key="md" value="690" />
|
||||
<entry key="py" value="11683" />
|
||||
<entry key="py" value="11785" />
|
||||
<entry key="txt" value="122" />
|
||||
</counts>
|
||||
</usages-collector>
|
||||
@ -53,7 +53,7 @@
|
||||
<counts>
|
||||
<entry key="Markdown" value="690" />
|
||||
<entry key="PLAIN_TEXT" value="137" />
|
||||
<entry key="Python" value="11745" />
|
||||
<entry key="Python" value="11847" />
|
||||
</counts>
|
||||
</usages-collector>
|
||||
</session>
|
||||
@ -114,8 +114,8 @@
|
||||
<caret line="8" column="79" selection-start-line="8" selection-start-column="79" selection-end-line="8" selection-end-column="79" />
|
||||
<folding>
|
||||
<element signature="e#0#15#0" expanded="true" />
|
||||
<marker date="1535103427035" expanded="true" signature="46:47" ph="..." />
|
||||
<marker date="1535103427035" expanded="true" signature="46:51" ph="..." />
|
||||
<marker date="1535103697226" expanded="true" signature="46:47" ph="..." />
|
||||
<marker date="1535103697226" expanded="true" signature="46:51" ph="..." />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
@ -138,8 +138,8 @@
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/goarch_api/models.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="111">
|
||||
<caret line="49" column="6" selection-start-line="49" selection-start-column="6" selection-end-line="49" selection-end-column="6" />
|
||||
<state relative-caret-position="335">
|
||||
<caret line="48" column="34" lean-forward="true" selection-start-line="48" selection-start-column="34" selection-end-line="48" selection-end-column="34" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
@ -156,11 +156,11 @@
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/goarch_api/lectionary.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="230">
|
||||
<caret line="10" column="31" lean-forward="true" selection-start-line="10" selection-start-column="31" selection-end-line="10" selection-end-column="31" />
|
||||
<state relative-caret-position="1163">
|
||||
<caret line="57" lean-forward="true" selection-start-line="57" selection-end-line="57" />
|
||||
<folding>
|
||||
<element signature="e#0#9#0" expanded="true" />
|
||||
<marker date="1535103414986" expanded="true" signature="246:249" ph="..." />
|
||||
<marker date="1535103677328" expanded="true" signature="246:249" ph="..." />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
@ -203,9 +203,9 @@
|
||||
<option value="$PROJECT_DIR$/goarch_api/daily.py" />
|
||||
<option value="$PROJECT_DIR$/goarch_api/models.py" />
|
||||
<option value="$PROJECT_DIR$/goarch_api/saint.py" />
|
||||
<option value="$PROJECT_DIR$/setup.py" />
|
||||
<option value="$PROJECT_DIR$/goarch_api/lectionary.py" />
|
||||
<option value="$PROJECT_DIR$/goarch_api/client.py" />
|
||||
<option value="$PROJECT_DIR$/setup.py" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
@ -436,27 +436,20 @@
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/goarch_api/saint.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="138">
|
||||
<caret line="6" column="54" selection-start-line="6" selection-start-column="54" selection-end-line="6" selection-end-column="54" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/goarch_api/models.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="111">
|
||||
<caret line="49" column="6" selection-start-line="49" selection-start-column="6" selection-end-line="49" selection-end-column="6" />
|
||||
<state relative-caret-position="335">
|
||||
<caret line="48" column="34" lean-forward="true" selection-start-line="48" selection-start-column="34" selection-end-line="48" selection-end-column="34" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/goarch_api/lectionary.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="230">
|
||||
<caret line="10" column="31" lean-forward="true" selection-start-line="10" selection-start-column="31" selection-end-line="10" selection-end-column="31" />
|
||||
<state relative-caret-position="1163">
|
||||
<caret line="57" lean-forward="true" selection-start-line="57" selection-end-line="57" />
|
||||
<folding>
|
||||
<element signature="e#0#9#0" expanded="true" />
|
||||
<marker date="1535103414986" expanded="true" signature="246:249" ph="..." />
|
||||
<marker date="1535103677328" expanded="true" signature="246:249" ph="..." />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
@ -467,12 +460,19 @@
|
||||
<caret line="8" column="79" selection-start-line="8" selection-start-column="79" selection-end-line="8" selection-end-column="79" />
|
||||
<folding>
|
||||
<element signature="e#0#15#0" expanded="true" />
|
||||
<marker date="1535103427035" expanded="true" signature="46:47" ph="..." />
|
||||
<marker date="1535103427035" expanded="true" signature="46:51" ph="..." />
|
||||
<marker date="1535103697226" expanded="true" signature="46:47" ph="..." />
|
||||
<marker date="1535103697226" expanded="true" signature="46:51" ph="..." />
|
||||
</folding>
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/goarch_api/saint.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="138">
|
||||
<caret line="6" column="54" selection-start-line="6" selection-start-column="54" selection-end-line="6" selection-end-column="54" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/setup.py">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="92">
|
||||
|
@ -6,7 +6,7 @@ class HTTPClient:
|
||||
def __init__(self):
|
||||
self.session = requests.session()
|
||||
|
||||
user_agent = 'goarch_api (https://github.com/Oikonomia/goarch_api 1.0.6), Python/'
|
||||
user_agent = 'goarch_api (https://github.com/Oikonomia/goarch_api 1.0.7), Python/'
|
||||
self.user_agent = f"{user_agent}{sys.version_info[0]}.{sys.version_info[1]}"
|
||||
|
||||
def request(self, method, path):
|
||||
|
@ -49,6 +49,8 @@ class Lectionary:
|
||||
|
||||
for translation in tree.findall("translation"):
|
||||
lang = translation.get("xml:lang")
|
||||
|
||||
if lang != "ar": # because arabic and the html escape stuff doesn't really work
|
||||
title = translation.find("title").text
|
||||
short_title = translation.find("shorttitle").text
|
||||
clip = translation.find("clip").text.strip()
|
||||
|
3
setup.py
3
setup.py
@ -2,7 +2,7 @@ from setuptools import setup
|
||||
|
||||
setup(
|
||||
name="goarch_api",
|
||||
version="1.0.6",
|
||||
version="1.0.7",
|
||||
author="Elliott Pardee",
|
||||
author_email="me@vypr.xyz",
|
||||
url="https://github.com/Oikonomia/goarch_api",
|
||||
@ -19,7 +19,6 @@ setup(
|
||||
"Intended Audience :: Developers",
|
||||
"Intended Audience :: Religion",
|
||||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
||||
"Natural Language :: Arabic",
|
||||
"Natural Language :: English",
|
||||
"Natural Language :: Greek",
|
||||
"Operating System :: OS Independent",
|
||||
|
Loading…
Reference in New Issue
Block a user