Skip to content

Commit

Permalink
Merge pull request #74 from Rubiksman78/dev
Browse files Browse the repository at this point in the history
main_fixed
  • Loading branch information
Rubiksman78 committed Sep 2, 2023
2 parents d5e0f55 + e0340e6 commit af02c1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,12 +413,14 @@ def listenToClient(client):
while True:
if not page.is_disabled('[class="btn py-0"]'):
time.sleep(3)
query = page.query_selector_all(('[class="swiper-no-swiping"]'))
query = page.query_selector_all(('[class="swiper swiper-initialized swiper-horizontal swiper-pointer-events message-slider swiper-backface-hidden"]'))
if len(query) > 0:
msg = query[0].inner_html()
else:
post_message(page,received_msg)
continue
msg = msg.split('<div class="swiper-no-swiping">')[1]
msg = msg.split('<div class="annotation-buttons-container">')[0]
msg = msg.replace("<em>","{i}")
msg = msg.replace("</em>","{/i}")
msg = msg.replace("<div>","")
Expand Down

0 comments on commit af02c1c

Please sign in to comment.