bot icon indicating copy to clipboard operation
bot copied to clipboard

Fix for bug #285 and possibly #301

Open uvzz opened this issue 1 year ago • 1 comments

Description

the bot sometimes detects reels as carousels with 0 items and stops responding for hours until it crashes

refer to: https://github.com/GramAddict/bot/issues/285#issuecomment-1248614823 https://github.com/GramAddict/bot/issues/301#issuecomment-1650826718

Fixes # (issue)

In a case where a carousel is detected with 0 items - change the media type detected to Reel

How Has This Been Tested?

The test was running for several sessions. A carousel with 0 items was detected and the bot did not crash.

Test Configuration:

  • OS - Ubuntu 22
  • GramAddict Version: 3.2.9
  • Device Model or Emulator: Android Studio
  • Android Verison: 9.0
  • Instagram Version: 263.2.0.19.104

Checklist:

Needs testing in more configurations?

uvzz avatar Feb 11 '24 14:02 uvzz

I saw the problem. When the bot goes over a reel, cannot detect it is a reel, rather it says "It's a carousel with 0 photo(s) and 0 video(s). (views.py:918)". Then it clicks twice to like it, but it is taken to the instagram reel page. Then tries to scroll weakly and goes in an infinite loop (i have video proof and logs, add me on discord: drago1520). Rn i am implementing the changes in views.py only, because i don't see how your other changes will help me.

drago1520 avatar Jul 02 '24 23:07 drago1520