LeagueOfPoro / EsportsCapsuleFarmer

Automatically watch all live matches on lolesports and farm Esports Capsules
https://www.youtube.com/c/LeagueOfPoro
Other
93 stars 23 forks source link

Potential fix for "An error occured" #56

Closed alepouna closed 2 years ago

alepouna commented 2 years ago

I've seen a few people on the Discord report they get this screen: image

One of the fixes is to change the user agent and pass it in the options: Credits to dimitrisz123#1466 for this.

user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36 Edg/103.0.1264.71"
        options.add_argument(f'user-agent={user_agent}')

image


Maybe this is something we can implement as a DOM check to automatically apply this option or just simply apply this option anyways?

alepouna commented 2 years ago

Patched in https://github.com/LeagueOfPoro/EsportsCapsuleFarmer/releases/tag/v3.4