sticker-convert 2.10.3__py3-none-any.whl → 2.10.5__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
sticker_convert/gui.py CHANGED
@@ -209,8 +209,8 @@ class GUI(Window):
209
209
  )
210
210
 
211
211
  def is_cn(self) -> bool:
212
- cn_locs = ("zh_CHS", "zh_CN")
213
- loc = cast(str, locale.getdefaultlocale()[0])
212
+ cn_locs = ("zh_chs", "zh_cn", "chinese")
213
+ loc = locale.getlocale()[0]
214
214
  winloc = ""
215
215
  if platform.system() == "Windows":
216
216
  import ctypes
@@ -219,7 +219,9 @@ class GUI(Window):
219
219
  winloc_id = cast(int, windll.GetUserDefaultUILanguage()) # type: ignore
220
220
  winloc = cast(str, locale.windows_locale[winloc_id]) # type: ignore
221
221
 
222
- if loc.startswith(cn_locs) or winloc.startswith(cn_locs):
222
+ if loc is not None and (
223
+ loc.lower().startswith(cn_locs) or winloc.lower().startswith(cn_locs)
224
+ ):
223
225
  return True
224
226
  return False
225
227
 
@@ -84,7 +84,7 @@ class CRD:
84
84
  def connect(self):
85
85
  self.cmd_id = 1
86
86
  r = None
87
- for _ in range(3):
87
+ for _ in range(5):
88
88
  try:
89
89
  r = requests.get(f"http://localhost:{self.port}/json")
90
90
  break
@@ -95,6 +95,15 @@ class CRD:
95
95
  raise RuntimeError("Cannot connect to chrome debugging port")
96
96
 
97
97
  targets = json.loads(r.text)
98
+ for _ in range(5):
99
+ if len(targets) == 0:
100
+ time.sleep(1)
101
+ else:
102
+ break
103
+
104
+ if len(targets) == 0:
105
+ raise RuntimeError("Cannot create websocket connection with debugger")
106
+
98
107
  self.ws = websocket.create_connection(targets[0]["webSocketDebuggerUrl"]) # type: ignore
99
108
 
100
109
  def send_cmd(self, command: Dict[Any, Any]) -> Union[str, bytes]:
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env python3
2
2
 
3
- __version__ = "2.10.3"
3
+ __version__ = "2.10.5"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sticker-convert
3
- Version: 2.10.3
3
+ Version: 2.10.5
4
4
  Summary: Convert (animated) stickers to/from WhatsApp, Telegram, Signal, Line, Kakao, Viber, Discord, iMessage. Written in Python.
5
5
  Author-email: laggykiller <chaudominic2@gmail.com>
6
6
  Maintainer-email: laggykiller <chaudominic2@gmail.com>
@@ -355,36 +355,35 @@ Classifier: Intended Audience :: End Users/Desktop
355
355
  Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
356
356
  Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
357
357
  Classifier: Programming Language :: Python :: 3
358
- Classifier: Programming Language :: Python :: 3.8
359
358
  Classifier: Programming Language :: Python :: 3.9
360
359
  Classifier: Programming Language :: Python :: 3.10
361
360
  Classifier: Programming Language :: Python :: 3.11
362
361
  Classifier: Programming Language :: Python :: 3.12
363
362
  Classifier: Programming Language :: Python :: 3 :: Only
364
- Requires-Python: >=3.8
363
+ Requires-Python: >=3.9
365
364
  Description-Content-Type: text/markdown
366
365
  License-File: LICENSE
367
366
  Requires-Dist: aiolimiter ~=1.1.0
368
- Requires-Dist: anyio ~=4.4.0
367
+ Requires-Dist: anyio ~=4.6.2.post1
369
368
  Requires-Dist: apngasm-python ~=1.3.1
370
- Requires-Dist: av ~=12.3.0
369
+ Requires-Dist: av ~=13.0.0
371
370
  Requires-Dist: beautifulsoup4 ~=4.12.3
372
- Requires-Dist: rookiepy ~=0.5.2
371
+ Requires-Dist: rookiepy ~=0.5.6
373
372
  Requires-Dist: httpx ~=0.27.2
374
- Requires-Dist: imagequant ~=1.1.1
373
+ Requires-Dist: imagequant ~=1.1.2
375
374
  Requires-Dist: memory-tempfile ~=2.2.3
376
375
  Requires-Dist: mergedeep ~=1.3.4
377
376
  Requires-Dist: mini-racer ~=0.12.4
378
377
  Requires-Dist: numpy >=1.22.4
379
- Requires-Dist: Pillow ~=10.4.0
378
+ Requires-Dist: Pillow ~=11.0.0
380
379
  Requires-Dist: pyoxipng ~=9.0.0
381
- Requires-Dist: python-telegram-bot ~=21.5
382
- Requires-Dist: psutil ~=6.0.0
380
+ Requires-Dist: python-telegram-bot ~=21.6
381
+ Requires-Dist: psutil ~=6.1.0
383
382
  Requires-Dist: PyMemoryEditor ~=1.5.22
384
383
  Requires-Dist: requests ~=2.32.3
385
384
  Requires-Dist: rlottie-python ~=1.3.6
386
385
  Requires-Dist: signalstickers-client-fork-laggykiller ~=3.3.0.post2
387
- Requires-Dist: tqdm ~=4.66.5
386
+ Requires-Dist: tqdm ~=4.66.6
388
387
  Requires-Dist: ttkbootstrap-fork-laggykiller ~=1.5.1
389
388
  Requires-Dist: websocket-client ~=1.8.0
390
389
 
@@ -3,10 +3,10 @@ sticker_convert/__main__.py,sha256=elDCMvU27letiYs8jPUpxaCq5puURnvcDuqGsAAb6_w,5
3
3
  sticker_convert/cli.py,sha256=yI_56AfEi3Q2q8h1p8-l7wSK7wk3ktQNE_rwTAWwW1Q,20526
4
4
  sticker_convert/converter.py,sha256=ZppZcz6ZCmzx23RjtBWBQ3oLh2fTiPV1U3nEVWHt_xM,35947
5
5
  sticker_convert/definitions.py,sha256=ZhP2ALCEud-w9ZZD4c3TDG9eHGPZyaAL7zPUsJAbjtE,2073
6
- sticker_convert/gui.py,sha256=9nvxA56m4S_OapRXXJJ-lLR1Boj0s721zfZr51hclPY,33011
6
+ sticker_convert/gui.py,sha256=IsVCXr5_6mzBgIgXtUICI3fcKu51J9WaLE9MBLrm5t4,33064
7
7
  sticker_convert/job.py,sha256=ae0DKz74nctDLSI0VU7BYI4dx3kwTM8ynky_aLspQVU,26491
8
8
  sticker_convert/job_option.py,sha256=lhcyioT6qPHrNYRBTv5wxPmmY9RkATo1-DE7-lzCwp0,7887
9
- sticker_convert/version.py,sha256=9euJw4TloOUB-GV8lXF8DvHpUBDmFvNbEId1fEPNpWs,47
9
+ sticker_convert/version.py,sha256=QKjwAE_8cGRepyqL78lyc5V0lA3fWVN5PDnuM4UMCE4,47
10
10
  sticker_convert/downloaders/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  sticker_convert/downloaders/download_base.py,sha256=a34JcNBgZ5yf6gZnxc-B5uNaKVUG-vs3sjOJnLneWsw,4468
12
12
  sticker_convert/downloaders/download_discord.py,sha256=HeQFjJ7igb5KOk0aXQAUEuJ9OoPKyiE_mAD2_AW9PDw,3435
@@ -85,7 +85,7 @@ sticker_convert/uploaders/upload_telegram.py,sha256=cb4FzYSF5oxs0QpilEyzepk2tcDC
85
85
  sticker_convert/uploaders/upload_viber.py,sha256=DiY54RstBtVJEfp6rGo0cpABx0X2qI873pJ6tTH-Q9U,6189
86
86
  sticker_convert/uploaders/xcode_imessage.py,sha256=1gvOljf6kYsq_11tYhnF19Yf4oGY5y34te2DWBRMwf0,11254
87
87
  sticker_convert/utils/callback.py,sha256=spYUGlklOs1yPZAxoqwOWgR1sdimpfM8a27if3TaVYk,6155
88
- sticker_convert/utils/chrome_remotedebug.py,sha256=oiWbJKecNWASUKTS2I9x4d0C6aciywoS0r2yb8-63xw,4519
88
+ sticker_convert/utils/chrome_remotedebug.py,sha256=tLc1C1u7U3kJvAi1WFK5_3gKcdfg4x6SAkTIX2g87VE,4765
89
89
  sticker_convert/utils/emoji.py,sha256=AqB26JY-PkYzNwPLReSnqLiQKe-bR9UXnLclAbgubJ8,367
90
90
  sticker_convert/utils/process.py,sha256=EAQZ9WpiKmkvToIv8G1HNY4V7m0jXyyePTmeP2XOZzE,4688
91
91
  sticker_convert/utils/url_detect.py,sha256=LTzHIHOD-L-nBE4WZEW3t0qFi1ABAegSZxLdURrPH2o,906
@@ -105,9 +105,9 @@ sticker_convert/utils/media/apple_png_normalize.py,sha256=LbrQhc7LlYX4I9ek4XJsZE
105
105
  sticker_convert/utils/media/codec_info.py,sha256=XoEWBfPWTzr4zSVQIU1XF1yh5viHxH5FytNEpdZR38c,14874
106
106
  sticker_convert/utils/media/decrypt_kakao.py,sha256=4wq9ZDRnFkx1WmFZnyEogBofiLGsWQM_X69HlA36578,1947
107
107
  sticker_convert/utils/media/format_verify.py,sha256=MH68GLJfXeL8WFT8emtj355K5BLAtUX64tQ59nugx2c,5673
108
- sticker_convert-2.10.3.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
109
- sticker_convert-2.10.3.dist-info/METADATA,sha256=cqSne7lAi53NRz4k6MzoVvaG52ETaPnGUcZy4M5ZTu8,52542
110
- sticker_convert-2.10.3.dist-info/WHEEL,sha256=cVxcB9AmuTcXqmwrtPhNK88dr7IR_b6qagTj0UvIEbY,91
111
- sticker_convert-2.10.3.dist-info/entry_points.txt,sha256=MNJ7XyC--ugxi5jS1nzjDLGnxCyLuaGdsVLnJhDHCqs,66
112
- sticker_convert-2.10.3.dist-info/top_level.txt,sha256=r9vfnB0l1ZnH5pTH5RvkobnK3Ow9m0RsncaOMAtiAtk,16
113
- sticker_convert-2.10.3.dist-info/RECORD,,
108
+ sticker_convert-2.10.5.dist-info/LICENSE,sha256=gXf5dRMhNSbfLPYYTY_5hsZ1r7UU1OaKQEAQUhuIBkM,18092
109
+ sticker_convert-2.10.5.dist-info/METADATA,sha256=T9zrmcX3zcfFgAZB51BNRLwp_43BEGGqZ-LcCIl_fpY,52498
110
+ sticker_convert-2.10.5.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
111
+ sticker_convert-2.10.5.dist-info/entry_points.txt,sha256=MNJ7XyC--ugxi5jS1nzjDLGnxCyLuaGdsVLnJhDHCqs,66
112
+ sticker_convert-2.10.5.dist-info/top_level.txt,sha256=r9vfnB0l1ZnH5pTH5RvkobnK3Ow9m0RsncaOMAtiAtk,16
113
+ sticker_convert-2.10.5.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (74.1.2)
2
+ Generator: setuptools (75.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5