PyPtt 1.2.6__tar.gz → 1.2.7__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.
- {pyptt-1.2.6 → pyptt-1.2.7}/PKG-INFO +1 -1
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/__init__.py +1 -1
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_mail.py +2 -8
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt.egg-info/PKG-INFO +1 -1
- {pyptt-1.2.6 → pyptt-1.2.7}/LICENSE +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/MANIFEST.in +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/PTT.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_bucket.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_call_status.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_change_pw.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_comment.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_del_post.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_get_board_info.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_get_board_list.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_get_bottom_post_list.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_get_favourite_board.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_get_newest_index.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_get_post.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_get_post_index.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_get_time.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_get_user.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_give_money.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_has_new_mail.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_loginout.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_mark_post.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_post.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_reply_post.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_search_user.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_set_board_title.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/_api_util.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/check_value.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/command.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/config.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/connect_core.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/data_type.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/exceptions.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/i18n.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/lang/en_US.yaml +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/lang/zh_TW.yaml +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/lib_util.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/log.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/screens.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/service.py +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/ssl/cert.pem +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt/ssl/key.pem +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt.egg-info/SOURCES.txt +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt.egg-info/dependency_links.txt +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt.egg-info/requires.txt +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/PyPtt.egg-info/top_level.txt +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/README.md +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/setup.cfg +0 -0
- {pyptt-1.2.6 → pyptt-1.2.7}/setup.py +0 -0
|
@@ -199,15 +199,12 @@ def get_mail(api, index: int, search_type: Optional[data_type.SearchType] = None
|
|
|
199
199
|
mail_date = pattern_result.group(0)[2:].strip()
|
|
200
200
|
|
|
201
201
|
# 從全文拿掉信件開頭作為信件內文
|
|
202
|
-
mail_content = origin_mail
|
|
203
|
-
|
|
204
|
-
mail_content = mail_content[
|
|
205
|
-
mail_content.find(screens.Target.content_start) + len(screens.Target.content_start) + 1:]
|
|
202
|
+
mail_content = '\n'.join(origin_mail.split('\n')[4:])
|
|
206
203
|
|
|
207
204
|
for EC in screens.Target.content_end_list:
|
|
208
205
|
# + 3 = 把 --\n 拿掉
|
|
209
206
|
if EC in mail_content:
|
|
210
|
-
mail_content = mail_content[:mail_content.rfind(EC)
|
|
207
|
+
mail_content = mail_content[:mail_content.rfind(EC)].rstrip()
|
|
211
208
|
break
|
|
212
209
|
|
|
213
210
|
# 紅包偵測
|
|
@@ -215,9 +212,6 @@ def get_mail(api, index: int, search_type: Optional[data_type.SearchType] = None
|
|
|
215
212
|
if content_end not in origin_mail and 'Ptt幣的大紅包喔' in origin_mail:
|
|
216
213
|
mail_content = mail_content.strip()
|
|
217
214
|
red_envelope = True
|
|
218
|
-
else:
|
|
219
|
-
|
|
220
|
-
mail_content = mail_content[:mail_content.rfind(content_end) + 3]
|
|
221
215
|
|
|
222
216
|
if red_envelope:
|
|
223
217
|
mail_ip = None
|
|
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
|
|
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
|
|
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
|