fix tk upload
This commit is contained in:
@@ -259,18 +259,13 @@ class TiktokVideo(object):
|
|||||||
if await publish_button.count():
|
if await publish_button.count():
|
||||||
await publish_button.click()
|
await publish_button.click()
|
||||||
|
|
||||||
await self.locator_base.locator(success_flag_div).wait_for(state="visible", timeout=3000)
|
await page.wait_for_url("https://www.tiktok.com/tiktokstudio/content", timeout=3000)
|
||||||
tiktok_logger.success(" [-] video published success")
|
tiktok_logger.success(" [-] video published success")
|
||||||
break
|
break
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if await self.locator_base.locator(success_flag_div).count():
|
tiktok_logger.exception(f" [-] Exception: {e}")
|
||||||
tiktok_logger.success(" [-]video published success")
|
tiktok_logger.info(" [-] video publishing")
|
||||||
break
|
await asyncio.sleep(0.5)
|
||||||
else:
|
|
||||||
tiktok_logger.exception(f" [-] Exception: {e}")
|
|
||||||
tiktok_logger.info(" [-] video publishing")
|
|
||||||
await page.screenshot(full_page=True)
|
|
||||||
await asyncio.sleep(0.5)
|
|
||||||
|
|
||||||
async def detect_upload_status(self, page):
|
async def detect_upload_status(self, page):
|
||||||
while True:
|
while True:
|
||||||
|
|||||||
Reference in New Issue
Block a user