sticker-convert 2.13.3.0__tar.gz → 2.15.0.0__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.
- {sticker_convert-2.13.3.0/src/sticker_convert.egg-info → sticker_convert-2.15.0.0}/PKG-INFO +41 -42
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/README.md +31 -33
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/requirements.txt +9 -8
- sticker_convert-2.15.0.0/src/sticker_convert/auth/auth_base.py +19 -0
- sticker_convert-2.13.3.0/src/sticker_convert/utils/auth/get_discord_auth.py → sticker_convert-2.15.0.0/src/sticker_convert/auth/auth_discord.py +40 -13
- sticker_convert-2.13.3.0/src/sticker_convert/utils/auth/get_kakao_auth.py → sticker_convert-2.15.0.0/src/sticker_convert/auth/auth_kakao_android_login.py +80 -84
- sticker_convert-2.15.0.0/src/sticker_convert/auth/auth_kakao_desktop_login.py +323 -0
- sticker_convert-2.13.3.0/src/sticker_convert/utils/auth/get_kakao_desktop_auth.py → sticker_convert-2.15.0.0/src/sticker_convert/auth/auth_kakao_desktop_memdump.py +21 -12
- sticker_convert-2.13.3.0/src/sticker_convert/utils/auth/get_line_auth.py → sticker_convert-2.15.0.0/src/sticker_convert/auth/auth_line.py +21 -6
- sticker_convert-2.13.3.0/src/sticker_convert/utils/auth/get_signal_auth.py → sticker_convert-2.15.0.0/src/sticker_convert/auth/auth_signal.py +18 -20
- sticker_convert-2.15.0.0/src/sticker_convert/auth/auth_telethon.py +151 -0
- sticker_convert-2.13.3.0/src/sticker_convert/utils/auth/get_viber_auth.py → sticker_convert-2.15.0.0/src/sticker_convert/auth/auth_viber.py +19 -11
- {sticker_convert-2.13.3.0/src/sticker_convert/utils → sticker_convert-2.15.0.0/src/sticker_convert}/auth/telegram_api.py +10 -18
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/cli.py +57 -67
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/converter.py +4 -4
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/downloaders/download_line.py +2 -2
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/downloaders/download_telegram.py +1 -1
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui.py +20 -100
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/frames/comp_frame.py +12 -4
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/frames/config_frame.py +14 -6
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/frames/control_frame.py +1 -1
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/frames/cred_frame.py +6 -8
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/windows/advanced_compression_window.py +3 -4
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/windows/base_window.py +7 -2
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/windows/discord_get_auth_window.py +3 -7
- sticker_convert-2.15.0.0/src/sticker_convert/gui_components/windows/kakao_get_auth_window.py +496 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/windows/line_get_auth_window.py +5 -14
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/windows/signal_get_auth_window.py +4 -12
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/windows/viber_get_auth_window.py +8 -11
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/job.py +16 -32
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/job_option.py +1 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/resources/NotoColorEmoji.ttf +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/resources/help.json +8 -6
- sticker_convert-2.15.0.0/src/sticker_convert/uploaders/__init__.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/uploaders/upload_telegram.py +1 -1
- sticker_convert-2.15.0.0/src/sticker_convert/utils/callback.py +443 -0
- sticker_convert-2.15.0.0/src/sticker_convert/version.py +3 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0/src/sticker_convert.egg-info}/PKG-INFO +41 -42
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert.egg-info/SOURCES.txt +11 -8
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert.egg-info/requires.txt +9 -8
- sticker_convert-2.13.3.0/src/sticker_convert/gui_components/windows/kakao_get_auth_window.py +0 -321
- sticker_convert-2.13.3.0/src/sticker_convert/utils/auth/telethon_setup.py +0 -97
- sticker_convert-2.13.3.0/src/sticker_convert/utils/callback.py +0 -211
- sticker_convert-2.13.3.0/src/sticker_convert/version.py +0 -3
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/LICENSE +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/MANIFEST.in +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/pyproject.toml +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/setup.cfg +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/__init__.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/__main__.py +0 -0
- {sticker_convert-2.13.3.0/src/sticker_convert/downloaders → sticker_convert-2.15.0.0/src/sticker_convert/auth}/__init__.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/definitions.py +0 -0
- {sticker_convert-2.13.3.0/src/sticker_convert/gui_components → sticker_convert-2.15.0.0/src/sticker_convert/downloaders}/__init__.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/downloaders/download_band.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/downloaders/download_base.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/downloaders/download_discord.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/downloaders/download_kakao.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/downloaders/download_ogq.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/downloaders/download_signal.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/downloaders/download_viber.py +0 -0
- {sticker_convert-2.13.3.0/src/sticker_convert/gui_components/frames → sticker_convert-2.15.0.0/src/sticker_convert/gui_components}/__init__.py +0 -0
- {sticker_convert-2.13.3.0/src/sticker_convert/gui_components/windows → sticker_convert-2.15.0.0/src/sticker_convert/gui_components/frames}/__init__.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/frames/input_frame.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/frames/output_frame.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/frames/progress_frame.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/frames/right_clicker.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/gui_components/gui_utils.py +0 -0
- {sticker_convert-2.13.3.0/src/sticker_convert/uploaders → sticker_convert-2.15.0.0/src/sticker_convert/gui_components/windows}/__init__.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/.github/FUNDING.yml +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/.gitignore +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/README.md +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers/Info.plist +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Info.plist +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Contents.json +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Contents.json +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 1.sticker/Contents.json +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 1.sticker/Sticker 1.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 2.sticker/Contents.json +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 2.sticker/Sticker 2.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 3.sticker/Contents.json +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/Sticker Pack.stickerpack/Sticker 3.sticker/Sticker 3.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/App-Store-1024x1024pt.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Contents.json +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-App-Store-1024x768pt.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-iPad-67x50pt@2x.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-iPad-Pro-74x55pt@2x.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-iPhone-60x45pt@2x.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages-iPhone-60x45pt@3x.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages27x20pt@2x.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages27x20pt@3x.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages32x24pt@2x.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/Messages32x24pt@3x.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/iPad-Settings-29pt@2x.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/iPhone-Settings-29pt@3x.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers StickerPackExtension/Stickers.xcstickers/iMessage App Icon.stickersiconset/iPhone-settings-29pt@2x.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.pbxproj +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/project.xcworkspace/xcuserdata/niklaspeterson.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/ios-message-stickers-template/stickers.xcodeproj/xcuserdata/niklaspeterson.xcuserdatad/xcschemes/xcschememanagement.plist +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/resources/appicon.icns +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/resources/appicon.ico +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/resources/appicon.png +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/resources/compression.json +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/resources/emoji.json +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/resources/input.json +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/resources/memdump_linux.sh +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/resources/memdump_windows.ps1 +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/resources/output.json +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/uploaders/compress_wastickers.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/uploaders/upload_base.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/uploaders/upload_signal.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/uploaders/upload_viber.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/uploaders/xcode_imessage.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/chrome_remotedebug.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/chromiums/linux.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/chromiums/osx.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/chromiums/windows.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/emoji.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/files/cache_store.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/files/json_manager.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/files/json_resources_loader.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/files/metadata_handler.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/files/run_bin.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/files/sanitize_filename.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/media/apple_png_normalize.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/media/codec_info.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/media/decrypt_kakao.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/media/format_verify.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/process.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/singletons.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert/utils/url_detect.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert.egg-info/dependency_links.txt +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert.egg-info/entry_points.txt +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/src/sticker_convert.egg-info/top_level.txt +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/tests/test_compression.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/tests/test_download.py +0 -0
- {sticker_convert-2.13.3.0 → sticker_convert-2.15.0.0}/tests/test_export.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: sticker-convert
|
3
|
-
Version: 2.
|
3
|
+
Version: 2.15.0.0
|
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>
|
@@ -364,11 +364,12 @@ Requires-Python: >=3.9
|
|
364
364
|
Description-Content-Type: text/markdown
|
365
365
|
License-File: LICENSE
|
366
366
|
Requires-Dist: aiolimiter~=1.2.1
|
367
|
-
Requires-Dist: anyio~=4.
|
367
|
+
Requires-Dist: anyio~=4.11.0
|
368
368
|
Requires-Dist: apngasm_python~=1.3.2
|
369
|
-
Requires-Dist: av
|
370
|
-
Requires-Dist: beautifulsoup4~=4.
|
369
|
+
Requires-Dist: av<15,>=13.1.0
|
370
|
+
Requires-Dist: beautifulsoup4~=4.14.2
|
371
371
|
Requires-Dist: cryptg~=0.5.1
|
372
|
+
Requires-Dist: cryptography~=46.0.1
|
372
373
|
Requires-Dist: rookiepy~=0.5.6
|
373
374
|
Requires-Dist: httpx~=0.28.1
|
374
375
|
Requires-Dist: imagequant~=1.1.4
|
@@ -376,15 +377,15 @@ Requires-Dist: memory-tempfile~=2.2.3
|
|
376
377
|
Requires-Dist: mergedeep~=1.3.4
|
377
378
|
Requires-Dist: numpy>=1.22.4
|
378
379
|
Requires-Dist: Pillow~=11.3.0
|
379
|
-
Requires-Dist: pyoxipng~=9.1.
|
380
|
-
Requires-Dist: python-telegram-bot~=22.
|
381
|
-
Requires-Dist: psutil~=7.
|
380
|
+
Requires-Dist: pyoxipng~=9.1.1
|
381
|
+
Requires-Dist: python-telegram-bot~=22.5
|
382
|
+
Requires-Dist: psutil~=7.1.0
|
382
383
|
Requires-Dist: PyMemoryEditor~=1.5.24
|
383
384
|
Requires-Dist: requests~=2.32.4
|
384
|
-
Requires-Dist: rlottie_python~=1.3.
|
385
|
+
Requires-Dist: rlottie_python~=1.3.8
|
385
386
|
Requires-Dist: signalstickers-client-fork-laggykiller~=3.3.0.post2
|
386
387
|
Requires-Dist: socksio~=1.0.0
|
387
|
-
Requires-Dist: telethon~=1.
|
388
|
+
Requires-Dist: telethon~=1.41.2
|
388
389
|
Requires-Dist: tqdm~=4.67.1
|
389
390
|
Requires-Dist: ttkbootstrap-fork-laggykiller~=1.5.1
|
390
391
|
Requires-Dist: websocket_client~=1.8.0
|
@@ -497,37 +498,29 @@ Dynamic: license-file
|
|
497
498
|
To run in CLI mode, pass on any arguments
|
498
499
|
|
499
500
|
```
|
500
|
-
usage: sticker-convert.py [-h] [--version] [--no-confirm] [--no-progress]
|
501
|
-
[--custom-presets CUSTOM_PRESETS] [--input-dir INPUT_DIR]
|
501
|
+
usage: sticker-convert.py [-h] [--version] [--no-confirm] [--no-progress] [--custom-presets CUSTOM_PRESETS] [--input-dir INPUT_DIR]
|
502
502
|
[--download-auto DOWNLOAD_AUTO | --download-signal DOWNLOAD_SIGNAL | --download-telegram DOWNLOAD_TELEGRAM | --download-telegram-telethon DOWNLOAD_TELEGRAM_TELETHON | --download-line DOWNLOAD_LINE | --download-kakao DOWNLOAD_KAKAO | --download-band DOWNLOAD_BAND | --download-ogq DOWNLOAD_OGQ | --download-viber DOWNLOAD_VIBER | --download-discord DOWNLOAD_DISCORD | --download-discord-emoji DOWNLOAD_DISCORD_EMOJI]
|
503
503
|
[--output-dir OUTPUT_DIR] [--author AUTHOR] [--title TITLE]
|
504
504
|
[--export-signal | --export-telegram | --export-telegram-emoji | --export-telegram-telethon | --export-telegram-emoji-telethon | --export-viber | --export-whatsapp | --export-imessage]
|
505
505
|
[--no-compress]
|
506
506
|
[--preset {auto,signal,telegram,telegram_emoji,whatsapp,line,kakao,band,ogq,viber,discord,discord_emoji,imessage_small,imessage_medium,imessage_large,custom}]
|
507
|
-
[--steps STEPS] [--processes PROCESSES] [--fps-min FPS_MIN] [--fps-max FPS_MAX]
|
508
|
-
[--
|
509
|
-
[--res-
|
510
|
-
[--res-
|
511
|
-
[--
|
512
|
-
[--
|
513
|
-
[--
|
514
|
-
[--
|
515
|
-
[--
|
516
|
-
[--
|
517
|
-
[--
|
518
|
-
[--
|
519
|
-
[--
|
520
|
-
[--
|
521
|
-
[--
|
522
|
-
[--
|
523
|
-
[--
|
524
|
-
[--kakao-get-auth-desktop] [--kakao-bin-path KAKAO_BIN_PATH]
|
525
|
-
[--kakao-username KAKAO_USERNAME] [--kakao-password KAKAO_PASSWORD]
|
526
|
-
[--kakao-country-code KAKAO_COUNTRY_CODE]
|
527
|
-
[--kakao-phone-number KAKAO_PHONE_NUMBER] [--line-get-auth]
|
528
|
-
[--line-cookies LINE_COOKIES] [--viber-auth VIBER_AUTH]
|
529
|
-
[--viber-get-auth VIBER_GET_AUTH] [--viber-bin-path VIBER_BIN_PATH]
|
530
|
-
[--discord-get-auth] [--discord-token DISCORD_TOKEN] [--save-cred]
|
507
|
+
[--steps STEPS] [--processes PROCESSES] [--fps-min FPS_MIN] [--fps-max FPS_MAX] [--fps-power FPS_POWER]
|
508
|
+
[--res-min RES_MIN] [--res-max RES_MAX] [--res-w-min RES_W_MIN] [--res-w-max RES_W_MAX]
|
509
|
+
[--res-h-min RES_H_MIN] [--res-h-max RES_H_MAX] [--res-power RES_POWER] [--res-snap-pow2]
|
510
|
+
[--no-res-snap-pow2] [--quality-min QUALITY_MIN] [--quality-max QUALITY_MAX] [--quality-power QUALITY_POWER]
|
511
|
+
[--color-min COLOR_MIN] [--color-max COLOR_MAX] [--color-power COLOR_POWER] [--duration-min DURATION_MIN]
|
512
|
+
[--duration-max DURATION_MAX] [--padding-percent PADDING_PERCENT] [--bg-color BG_COLOR]
|
513
|
+
[--vid-size-max VID_SIZE_MAX] [--img-size-max IMG_SIZE_MAX] [--vid-format VID_FORMAT]
|
514
|
+
[--img-format IMG_FORMAT] [--fake-vid] [--no-fake-vid] [--scale-filter SCALE_FILTER]
|
515
|
+
[--quantize-method QUANTIZE_METHOD] [--cache-dir CACHE_DIR] [--chromium-path CHROMIUM_PATH]
|
516
|
+
[--default-emoji DEFAULT_EMOJI] [--signal-uuid SIGNAL_UUID] [--signal-password SIGNAL_PASSWORD]
|
517
|
+
[--signal-get-auth] [--telegram-token TELEGRAM_TOKEN] [--telegram-userid TELEGRAM_USERID] [--telethon-setup]
|
518
|
+
[--kakao-auth-token KAKAO_AUTH_TOKEN] [--kakao-get-auth-android-login] [--kakao-get-auth-desktop-memdump]
|
519
|
+
[--kakao-get-auth-desktop-login] [--kakao-bin-path KAKAO_BIN_PATH] [--kakao-username KAKAO_USERNAME]
|
520
|
+
[--kakao-password KAKAO_PASSWORD] [--kakao-country-code KAKAO_COUNTRY_CODE]
|
521
|
+
[--kakao-phone-number KAKAO_PHONE_NUMBER] [--kakao-device-uuid KAKAO_DEVICE_UUID] [--line-get-auth]
|
522
|
+
[--line-cookies LINE_COOKIES] [--viber-auth VIBER_AUTH] [--viber-get-auth VIBER_GET_AUTH]
|
523
|
+
[--viber-bin-path VIBER_BIN_PATH] [--discord-get-auth] [--discord-token DISCORD_TOKEN] [--save-cred]
|
531
524
|
|
532
525
|
CLI for stickers-convert
|
533
526
|
|
@@ -706,29 +699,35 @@ Credentials options:
|
|
706
699
|
--telethon-setup Setup Telethon
|
707
700
|
--kakao-auth-token KAKAO_AUTH_TOKEN
|
708
701
|
Set Kakao auth_token. Required for downloading animated stickers from https://e.kakao.com/t/xxxxx
|
709
|
-
--kakao-get-auth
|
710
|
-
|
711
|
-
|
702
|
+
--kakao-get-auth-android-login
|
703
|
+
Get Kakao auth_token by simulating login from Android. Kakao username, password, country code and phone number required.
|
704
|
+
--kakao-get-auth-desktop-memdump
|
705
|
+
Get Kakao auth_token from installed Kakao Desktop application with memdump.
|
706
|
+
--kakao-get-auth-desktop-login
|
707
|
+
Get Kakao auth_token by simulating login from Desktop application. Kakao username and password required.
|
712
708
|
--kakao-bin-path KAKAO_BIN_PATH
|
713
709
|
Set Kakao Desktop application path for launching and getting auth_token.
|
714
710
|
Useful for portable installation.
|
715
711
|
--kakao-username KAKAO_USERNAME
|
716
712
|
Set Kakao username, which is email or phone number used for signing up Kakao account
|
717
713
|
Example: +447700900142
|
718
|
-
Required for
|
714
|
+
Required for getting Kakao auth_token by simulating android/desktop login.
|
719
715
|
--kakao-password KAKAO_PASSWORD
|
720
716
|
Set Kakao password (Password of Kakao account).
|
721
|
-
Required for
|
717
|
+
Required for getting Kakao auth_token by simulating android/desktop login.
|
722
718
|
--kakao-country-code KAKAO_COUNTRY_CODE
|
723
719
|
Set Kakao country code of phone.
|
724
720
|
Example: 82 (For korea), 44 (For UK), 1 (For USA).
|
725
|
-
Required for
|
721
|
+
Required for getting Kakao auth_token by simulating android login.
|
726
722
|
--kakao-phone-number KAKAO_PHONE_NUMBER
|
727
723
|
Set Kakao phone number (Phone number associated with your Kakao account)
|
728
724
|
Do NOT enter country code
|
729
725
|
Example: 7700900142
|
730
726
|
Used for send / receive verification code via SMS.
|
731
|
-
Required for
|
727
|
+
Required for getting Kakao auth_token by simulating android login.
|
728
|
+
--kakao-device-uuid KAKAO_DEVICE_UUID
|
729
|
+
Set Kakao device uuid for desktop login. Defaults to real device uuid.
|
730
|
+
Optional for getting Kakao auth_token by simulating desktop login
|
732
731
|
--line-get-auth Get Line cookies from browser, which is required to create custom message stickers.
|
733
732
|
--line-cookies LINE_COOKIES
|
734
733
|
Set Line cookies, which is required to create custom message stickers.
|
@@ -105,37 +105,29 @@
|
|
105
105
|
To run in CLI mode, pass on any arguments
|
106
106
|
|
107
107
|
```
|
108
|
-
usage: sticker-convert.py [-h] [--version] [--no-confirm] [--no-progress]
|
109
|
-
[--custom-presets CUSTOM_PRESETS] [--input-dir INPUT_DIR]
|
108
|
+
usage: sticker-convert.py [-h] [--version] [--no-confirm] [--no-progress] [--custom-presets CUSTOM_PRESETS] [--input-dir INPUT_DIR]
|
110
109
|
[--download-auto DOWNLOAD_AUTO | --download-signal DOWNLOAD_SIGNAL | --download-telegram DOWNLOAD_TELEGRAM | --download-telegram-telethon DOWNLOAD_TELEGRAM_TELETHON | --download-line DOWNLOAD_LINE | --download-kakao DOWNLOAD_KAKAO | --download-band DOWNLOAD_BAND | --download-ogq DOWNLOAD_OGQ | --download-viber DOWNLOAD_VIBER | --download-discord DOWNLOAD_DISCORD | --download-discord-emoji DOWNLOAD_DISCORD_EMOJI]
|
111
110
|
[--output-dir OUTPUT_DIR] [--author AUTHOR] [--title TITLE]
|
112
111
|
[--export-signal | --export-telegram | --export-telegram-emoji | --export-telegram-telethon | --export-telegram-emoji-telethon | --export-viber | --export-whatsapp | --export-imessage]
|
113
112
|
[--no-compress]
|
114
113
|
[--preset {auto,signal,telegram,telegram_emoji,whatsapp,line,kakao,band,ogq,viber,discord,discord_emoji,imessage_small,imessage_medium,imessage_large,custom}]
|
115
|
-
[--steps STEPS] [--processes PROCESSES] [--fps-min FPS_MIN] [--fps-max FPS_MAX]
|
116
|
-
[--
|
117
|
-
[--res-
|
118
|
-
[--res-
|
119
|
-
[--
|
120
|
-
[--
|
121
|
-
[--
|
122
|
-
[--
|
123
|
-
[--
|
124
|
-
[--
|
125
|
-
[--
|
126
|
-
[--
|
127
|
-
[--
|
128
|
-
[--
|
129
|
-
[--
|
130
|
-
[--
|
131
|
-
[--
|
132
|
-
[--kakao-get-auth-desktop] [--kakao-bin-path KAKAO_BIN_PATH]
|
133
|
-
[--kakao-username KAKAO_USERNAME] [--kakao-password KAKAO_PASSWORD]
|
134
|
-
[--kakao-country-code KAKAO_COUNTRY_CODE]
|
135
|
-
[--kakao-phone-number KAKAO_PHONE_NUMBER] [--line-get-auth]
|
136
|
-
[--line-cookies LINE_COOKIES] [--viber-auth VIBER_AUTH]
|
137
|
-
[--viber-get-auth VIBER_GET_AUTH] [--viber-bin-path VIBER_BIN_PATH]
|
138
|
-
[--discord-get-auth] [--discord-token DISCORD_TOKEN] [--save-cred]
|
114
|
+
[--steps STEPS] [--processes PROCESSES] [--fps-min FPS_MIN] [--fps-max FPS_MAX] [--fps-power FPS_POWER]
|
115
|
+
[--res-min RES_MIN] [--res-max RES_MAX] [--res-w-min RES_W_MIN] [--res-w-max RES_W_MAX]
|
116
|
+
[--res-h-min RES_H_MIN] [--res-h-max RES_H_MAX] [--res-power RES_POWER] [--res-snap-pow2]
|
117
|
+
[--no-res-snap-pow2] [--quality-min QUALITY_MIN] [--quality-max QUALITY_MAX] [--quality-power QUALITY_POWER]
|
118
|
+
[--color-min COLOR_MIN] [--color-max COLOR_MAX] [--color-power COLOR_POWER] [--duration-min DURATION_MIN]
|
119
|
+
[--duration-max DURATION_MAX] [--padding-percent PADDING_PERCENT] [--bg-color BG_COLOR]
|
120
|
+
[--vid-size-max VID_SIZE_MAX] [--img-size-max IMG_SIZE_MAX] [--vid-format VID_FORMAT]
|
121
|
+
[--img-format IMG_FORMAT] [--fake-vid] [--no-fake-vid] [--scale-filter SCALE_FILTER]
|
122
|
+
[--quantize-method QUANTIZE_METHOD] [--cache-dir CACHE_DIR] [--chromium-path CHROMIUM_PATH]
|
123
|
+
[--default-emoji DEFAULT_EMOJI] [--signal-uuid SIGNAL_UUID] [--signal-password SIGNAL_PASSWORD]
|
124
|
+
[--signal-get-auth] [--telegram-token TELEGRAM_TOKEN] [--telegram-userid TELEGRAM_USERID] [--telethon-setup]
|
125
|
+
[--kakao-auth-token KAKAO_AUTH_TOKEN] [--kakao-get-auth-android-login] [--kakao-get-auth-desktop-memdump]
|
126
|
+
[--kakao-get-auth-desktop-login] [--kakao-bin-path KAKAO_BIN_PATH] [--kakao-username KAKAO_USERNAME]
|
127
|
+
[--kakao-password KAKAO_PASSWORD] [--kakao-country-code KAKAO_COUNTRY_CODE]
|
128
|
+
[--kakao-phone-number KAKAO_PHONE_NUMBER] [--kakao-device-uuid KAKAO_DEVICE_UUID] [--line-get-auth]
|
129
|
+
[--line-cookies LINE_COOKIES] [--viber-auth VIBER_AUTH] [--viber-get-auth VIBER_GET_AUTH]
|
130
|
+
[--viber-bin-path VIBER_BIN_PATH] [--discord-get-auth] [--discord-token DISCORD_TOKEN] [--save-cred]
|
139
131
|
|
140
132
|
CLI for stickers-convert
|
141
133
|
|
@@ -314,29 +306,35 @@ Credentials options:
|
|
314
306
|
--telethon-setup Setup Telethon
|
315
307
|
--kakao-auth-token KAKAO_AUTH_TOKEN
|
316
308
|
Set Kakao auth_token. Required for downloading animated stickers from https://e.kakao.com/t/xxxxx
|
317
|
-
--kakao-get-auth
|
318
|
-
|
319
|
-
|
309
|
+
--kakao-get-auth-android-login
|
310
|
+
Get Kakao auth_token by simulating login from Android. Kakao username, password, country code and phone number required.
|
311
|
+
--kakao-get-auth-desktop-memdump
|
312
|
+
Get Kakao auth_token from installed Kakao Desktop application with memdump.
|
313
|
+
--kakao-get-auth-desktop-login
|
314
|
+
Get Kakao auth_token by simulating login from Desktop application. Kakao username and password required.
|
320
315
|
--kakao-bin-path KAKAO_BIN_PATH
|
321
316
|
Set Kakao Desktop application path for launching and getting auth_token.
|
322
317
|
Useful for portable installation.
|
323
318
|
--kakao-username KAKAO_USERNAME
|
324
319
|
Set Kakao username, which is email or phone number used for signing up Kakao account
|
325
320
|
Example: +447700900142
|
326
|
-
Required for
|
321
|
+
Required for getting Kakao auth_token by simulating android/desktop login.
|
327
322
|
--kakao-password KAKAO_PASSWORD
|
328
323
|
Set Kakao password (Password of Kakao account).
|
329
|
-
Required for
|
324
|
+
Required for getting Kakao auth_token by simulating android/desktop login.
|
330
325
|
--kakao-country-code KAKAO_COUNTRY_CODE
|
331
326
|
Set Kakao country code of phone.
|
332
327
|
Example: 82 (For korea), 44 (For UK), 1 (For USA).
|
333
|
-
Required for
|
328
|
+
Required for getting Kakao auth_token by simulating android login.
|
334
329
|
--kakao-phone-number KAKAO_PHONE_NUMBER
|
335
330
|
Set Kakao phone number (Phone number associated with your Kakao account)
|
336
331
|
Do NOT enter country code
|
337
332
|
Example: 7700900142
|
338
333
|
Used for send / receive verification code via SMS.
|
339
|
-
Required for
|
334
|
+
Required for getting Kakao auth_token by simulating android login.
|
335
|
+
--kakao-device-uuid KAKAO_DEVICE_UUID
|
336
|
+
Set Kakao device uuid for desktop login. Defaults to real device uuid.
|
337
|
+
Optional for getting Kakao auth_token by simulating desktop login
|
340
338
|
--line-get-auth Get Line cookies from browser, which is required to create custom message stickers.
|
341
339
|
--line-cookies LINE_COOKIES
|
342
340
|
Set Line cookies, which is required to create custom message stickers.
|
@@ -1,9 +1,10 @@
|
|
1
1
|
aiolimiter~=1.2.1
|
2
|
-
anyio~=4.
|
2
|
+
anyio~=4.11.0
|
3
3
|
apngasm_python~=1.3.2
|
4
|
-
av>=13.1.0
|
5
|
-
beautifulsoup4~=4.
|
4
|
+
av>=13.1.0,<15
|
5
|
+
beautifulsoup4~=4.14.2
|
6
6
|
cryptg~=0.5.1
|
7
|
+
cryptography~=46.0.1
|
7
8
|
rookiepy~=0.5.6
|
8
9
|
httpx~=0.28.1
|
9
10
|
imagequant~=1.1.4
|
@@ -11,15 +12,15 @@ memory-tempfile~=2.2.3
|
|
11
12
|
mergedeep~=1.3.4
|
12
13
|
numpy>=1.22.4
|
13
14
|
Pillow~=11.3.0
|
14
|
-
pyoxipng~=9.1.
|
15
|
-
python-telegram-bot~=22.
|
16
|
-
psutil~=7.
|
15
|
+
pyoxipng~=9.1.1
|
16
|
+
python-telegram-bot~=22.5
|
17
|
+
psutil~=7.1.0
|
17
18
|
PyMemoryEditor~=1.5.24
|
18
19
|
requests~=2.32.4
|
19
|
-
rlottie_python~=1.3.
|
20
|
+
rlottie_python~=1.3.8
|
20
21
|
signalstickers-client-fork-laggykiller~=3.3.0.post2
|
21
22
|
socksio~=1.0.0
|
22
|
-
telethon~=1.
|
23
|
+
telethon~=1.41.2
|
23
24
|
tqdm~=4.67.1
|
24
25
|
ttkbootstrap-fork-laggykiller~=1.5.1
|
25
26
|
websocket_client~=1.8.0
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env python3
|
2
|
+
from typing import Optional
|
3
|
+
|
4
|
+
from sticker_convert.job_option import CredOption
|
5
|
+
from sticker_convert.utils.callback import CallbackCli, CallbackProtocol
|
6
|
+
|
7
|
+
|
8
|
+
class AuthBase:
|
9
|
+
def __init__(
|
10
|
+
self,
|
11
|
+
opt_cred: CredOption,
|
12
|
+
cb: Optional[CallbackProtocol] = None,
|
13
|
+
) -> None:
|
14
|
+
self.opt_cred = opt_cred
|
15
|
+
self.cb: CallbackProtocol
|
16
|
+
if cb is None:
|
17
|
+
self.cb = CallbackCli()
|
18
|
+
else:
|
19
|
+
self.cb = cb
|
@@ -4,23 +4,27 @@ import os
|
|
4
4
|
import platform
|
5
5
|
import shutil
|
6
6
|
import time
|
7
|
-
from
|
7
|
+
from pathlib import Path
|
8
|
+
from typing import Any, Optional, Tuple
|
8
9
|
from urllib.parse import urlparse
|
9
10
|
|
11
|
+
from sticker_convert.auth.auth_base import AuthBase
|
10
12
|
from sticker_convert.definitions import CONFIG_DIR
|
11
13
|
from sticker_convert.utils.chrome_remotedebug import CRD
|
12
|
-
from sticker_convert.utils.process import killall
|
14
|
+
from sticker_convert.utils.process import find_pid_by_name, killall
|
13
15
|
|
16
|
+
OK_MSG = "Got token successfully:\ntoken={token}"
|
17
|
+
FAIL_MSG = "Failed to get token"
|
14
18
|
|
15
|
-
|
16
|
-
|
19
|
+
|
20
|
+
class AuthDiscord(AuthBase):
|
21
|
+
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
22
|
+
super().__init__(*args, **kwargs)
|
17
23
|
chromedriver_download_dir = CONFIG_DIR / "bin"
|
18
24
|
os.makedirs(chromedriver_download_dir, exist_ok=True)
|
19
25
|
|
20
26
|
self.chromedriver_download_dir = chromedriver_download_dir
|
21
27
|
|
22
|
-
self.cb_msg = cb_msg
|
23
|
-
|
24
28
|
def get_discord_bin_path(self) -> Optional[str]:
|
25
29
|
discord_bin: Optional[str]
|
26
30
|
if platform.system() == "Windows":
|
@@ -42,6 +46,8 @@ class GetDiscordAuth:
|
|
42
46
|
for discord_dir, discord_bin in discord_win_dirs:
|
43
47
|
app_dir: Optional[str] = None
|
44
48
|
chrome_path: Optional[str] = None
|
49
|
+
if os.path.isdir(discord_dir) is False:
|
50
|
+
continue
|
45
51
|
for i in [j for j in os.listdir(discord_dir) if j.startswith("app-")]:
|
46
52
|
app_dir = os.path.join(discord_dir, i)
|
47
53
|
chrome_path = os.path.join(app_dir, discord_bin)
|
@@ -67,6 +73,9 @@ class GetDiscordAuth:
|
|
67
73
|
return None
|
68
74
|
|
69
75
|
def get_cred(self) -> Tuple[Optional[str], str]:
|
76
|
+
msg = "Getting Discord authorization token..."
|
77
|
+
self.cb.put(("msg_dynamic", (msg,), None))
|
78
|
+
|
70
79
|
using_discord_app = False
|
71
80
|
chrome_path = self.get_discord_bin_path()
|
72
81
|
if chrome_path is not None:
|
@@ -74,14 +83,26 @@ class GetDiscordAuth:
|
|
74
83
|
else:
|
75
84
|
chrome_path = CRD.get_chromium_path()
|
76
85
|
if chrome_path is None:
|
86
|
+
self.cb.put(("msg_dynamic", (None,), None))
|
77
87
|
return (
|
78
88
|
None,
|
79
89
|
"Please install Discord Desktop or Chrome/Chromium and try again",
|
80
90
|
)
|
81
91
|
|
82
92
|
token = None
|
83
|
-
|
84
|
-
|
93
|
+
|
94
|
+
if find_pid_by_name(Path(chrome_path).name):
|
95
|
+
response = self.cb.put(
|
96
|
+
(
|
97
|
+
"ask_bool",
|
98
|
+
(f"All {Path(chrome_path).name} will be closed. Continue?",),
|
99
|
+
None,
|
100
|
+
)
|
101
|
+
)
|
102
|
+
if response is True:
|
103
|
+
killall(Path(chrome_path).name.lower())
|
104
|
+
else:
|
105
|
+
return None, FAIL_MSG
|
85
106
|
|
86
107
|
crd = CRD(chrome_path)
|
87
108
|
while True:
|
@@ -98,9 +119,14 @@ class GetDiscordAuth:
|
|
98
119
|
|
99
120
|
while True:
|
100
121
|
try:
|
101
|
-
|
102
|
-
|
103
|
-
|
122
|
+
if using_discord_app:
|
123
|
+
r = crd.exec_js(
|
124
|
+
"(webpackChunkdiscord_app.push([[''],{},e=>{m=[];for(let c in e.c)m.push(e.c[c])}]),m).find(m=>m?.exports?.default?.getToken!==void 0).exports.default.getToken();"
|
125
|
+
)
|
126
|
+
else:
|
127
|
+
r = crd.exec_js(
|
128
|
+
"const iframe=document.createElement('iframe');JSON.parse(document.body.appendChild(iframe).contentWindow.localStorage.token);"
|
129
|
+
)
|
104
130
|
except RuntimeError:
|
105
131
|
break
|
106
132
|
if (
|
@@ -112,7 +138,8 @@ class GetDiscordAuth:
|
|
112
138
|
time.sleep(1)
|
113
139
|
crd.close()
|
114
140
|
|
141
|
+
self.cb.put(("msg_dynamic", (None,), None))
|
115
142
|
if token is None:
|
116
|
-
return None,
|
143
|
+
return None, FAIL_MSG
|
117
144
|
|
118
|
-
return token,
|
145
|
+
return token, OK_MSG.format(token=token)
|