mirror of
https://github.com/RYDE-WORK/MediaCrawler.git
synced 2026-02-06 00:43:23 +08:00
Merge pull request #212 from chunpat/fixbug_qrcode_show
Remove duplication Qrcode Show
This commit is contained in:
commit
5495d76fdb
@ -101,11 +101,8 @@ class DouYinLogin(AbstractLogin):
|
|||||||
utils.logger.info("[DouYinLogin.login_by_qrcode] login qrcode not found please confirm ...")
|
utils.logger.info("[DouYinLogin.login_by_qrcode] login qrcode not found please confirm ...")
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
# show login qrcode
|
|
||||||
# utils.show_qrcode(base64_qrcode_img)
|
|
||||||
partial_show_qrcode = functools.partial(utils.show_qrcode, base64_qrcode_img)
|
partial_show_qrcode = functools.partial(utils.show_qrcode, base64_qrcode_img)
|
||||||
asyncio.get_running_loop().run_in_executor(executor=None, func=partial_show_qrcode)
|
asyncio.get_running_loop().run_in_executor(executor=None, func=partial_show_qrcode)
|
||||||
utils.show_qrcode(base64_qrcode_img)
|
|
||||||
await asyncio.sleep(2)
|
await asyncio.sleep(2)
|
||||||
|
|
||||||
async def login_by_mobile(self):
|
async def login_by_mobile(self):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user