reywechat 1.0.61__py3-none-any.whl → 1.0.63__py3-none-any.whl
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.
- reywechat/rdb.py +4 -0
- reywechat/rreceive.py +7 -7
- {reywechat-1.0.61.dist-info → reywechat-1.0.63.dist-info}/METADATA +1 -1
- {reywechat-1.0.61.dist-info → reywechat-1.0.63.dist-info}/RECORD +6 -6
- {reywechat-1.0.61.dist-info → reywechat-1.0.63.dist-info}/WHEEL +0 -0
- {reywechat-1.0.61.dist-info → reywechat-1.0.63.dist-info}/licenses/LICENSE +0 -0
reywechat/rdb.py
CHANGED
@@ -101,6 +101,10 @@ class WeChatDatabase(WeChatBase):
|
|
101
101
|
Check and build all standard databases and tables, by `self.db_names`.
|
102
102
|
"""
|
103
103
|
|
104
|
+
# Check.
|
105
|
+
if self.database_wechat is None:
|
106
|
+
throw(ValueError, self.database_wechat)
|
107
|
+
|
104
108
|
# Set parameter.
|
105
109
|
|
106
110
|
## Database.
|
reywechat/rreceive.py
CHANGED
@@ -809,22 +809,22 @@ class WeChatMessage(WeChatBase):
|
|
809
809
|
throw(AssertionError, self._is_quote)
|
810
810
|
|
811
811
|
# Extract.
|
812
|
-
pattern = '<title>(
|
812
|
+
pattern = '<title>([^<>]+)</title>'
|
813
813
|
text: str = search(pattern, self.data)
|
814
|
-
pattern = r'<svrid>(
|
814
|
+
pattern = r'<svrid>([^<>]+)</svrid>'
|
815
815
|
quote_id = search(pattern, self.data)
|
816
816
|
quote_id = int(quote_id)
|
817
|
-
pattern = r'<createtime>(
|
817
|
+
pattern = r'<createtime>([^<>]+)</createtime>'
|
818
818
|
quote_time = search(pattern, self.data)
|
819
819
|
quote_time = int(quote_time)
|
820
|
-
pattern = r'<refermsg
|
820
|
+
pattern = r'<refermsg>.*?<type>([^<>]+)</type>'
|
821
821
|
quote_type = search(pattern, self.data)
|
822
822
|
quote_type = int(quote_type)
|
823
|
-
pattern = r'<chatusr>(
|
823
|
+
pattern = r'<chatusr>([^<>]+)</chatusr>'
|
824
824
|
quote_user: str = search(pattern, self.data)
|
825
|
-
pattern = '<displayname>(
|
825
|
+
pattern = '<displayname>([^<>]+)</displayname>'
|
826
826
|
quote_user_name: str = search(pattern, self.data)
|
827
|
-
pattern = '<content>(
|
827
|
+
pattern = '<content>([^<>]+)</content>'
|
828
828
|
quote_data: str = search(pattern, self.data)
|
829
829
|
self._quote_params: MessageQuoteParameter = {
|
830
830
|
'text': text,
|
@@ -3,14 +3,14 @@ reywechat/rall.py,sha256=5J_X-XMOyb1Vp1jyS9-oRFXGOtp2vRPX1g3tJot_Eck,371
|
|
3
3
|
reywechat/rbase.py,sha256=hbxn5spvcl_C_Bw8A9teulOXT9GMlxUw145_YbXIOzc,1124
|
4
4
|
reywechat/rcache.py,sha256=7UsHHfgFOgxuSqlTSAO6CprgUUOeBCXYus0kxmRBQxk,908
|
5
5
|
reywechat/rclient.py,sha256=lc1CPle9h08mwP8NlJN0ybzcNJxtpV0ma6q6cz1RIxk,22518
|
6
|
-
reywechat/rdb.py,sha256=
|
6
|
+
reywechat/rdb.py,sha256=24QhuT30JdyD3rirHBZQ-hGiJE1BVBppqH-JKlqOPQw,48769
|
7
7
|
reywechat/rlog.py,sha256=4EsTgrgC05JvWeKAucUaWGga638CRRJISJN6qncBCAw,5249
|
8
|
-
reywechat/rreceive.py,sha256=
|
8
|
+
reywechat/rreceive.py,sha256=akRLA5j17ySLEUG5HnlYy4PSboQgHay9AcLapJrJM9k,51206
|
9
9
|
reywechat/rsend.py,sha256=yrJf9GzWVCDptUHHazhWSVW0nm2LCIbb0sz2EII63bY,20049
|
10
10
|
reywechat/rtrigger.py,sha256=WdOQwobPdGPyyE9J-qtQFPd60713T0aWqKk02PLdCRE,4966
|
11
11
|
reywechat/rwechat.py,sha256=g0pbprMPv_qWb_lGFrPDAWsJO4vPSIgFLkw0Y28CZUo,4751
|
12
12
|
reywechat/data/client_api.dll,sha256=H9uj-x9Ztg0jFZK0yY6NsnyH5_119dQRFfoVVMidxRs,592384
|
13
|
-
reywechat-1.0.
|
14
|
-
reywechat-1.0.
|
15
|
-
reywechat-1.0.
|
16
|
-
reywechat-1.0.
|
13
|
+
reywechat-1.0.63.dist-info/METADATA,sha256=oCuPrB0kJQDxPf2bi_U-DWrl7mqOmzTXPrQ6yf21NZ0,1551
|
14
|
+
reywechat-1.0.63.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
15
|
+
reywechat-1.0.63.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
16
|
+
reywechat-1.0.63.dist-info/RECORD,,
|
File without changes
|
File without changes
|