diff --git a/README.md b/README.md index f3c4199..d405c9c 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,12 @@ Automatically downloads the driver binary and patches it. * Works also on Brave Browser and many other Chromium based browsers, some tweaking * Python 3.6++** - +- - - +## Message for all ## +I will be putting limits on the issue tracker. It has beeen abused too long. +any good news? +Yes, i've opened [Undetected-Discussions](https://github.com/ultrafunkamsterdam/undetected-chromedriver/discussions) which i think will help us better in the long run. +- - - ## 3.4.5 ## - What a week. Had the recent advancedments in Automation-Detection algorithms pwned (so i thought) with 3.4.0, but apparently, for some OS-es this caused an error when interacting with elements. Had to revert back using a different method, fix bugs, and now eventually was still able to stick to the initial idea (+ fixing bugs) diff --git a/undetected_chromedriver/__init__.py b/undetected_chromedriver/__init__.py index b7a2d13..24cbf0f 100644 --- a/undetected_chromedriver/__init__.py +++ b/undetected_chromedriver/__init__.py @@ -17,7 +17,7 @@ by UltrafunkAmsterdam (https://github.com/ultrafunkamsterdam) from __future__ import annotations -__version__ = "3.4.5" +__version__ = "3.4.6" import json import logging diff --git a/undetected_chromedriver/patcher.py b/undetected_chromedriver/patcher.py index 1f6b5bd..24da802 100644 --- a/undetected_chromedriver/patcher.py +++ b/undetected_chromedriver/patcher.py @@ -225,16 +225,16 @@ class Patcher(object): len(target_bytes), b" " ) ) - new_content = content.replace(target_bytes, new_target_bytes) - if new_content == content: - logger.warning( - "something went wrong patching the driver binary. could not find injection code block" - ) - else: - logger.debug( - "found block:\n%s\nreplacing with:\n%s" - % (target_bytes, new_target_bytes) - ) + new_content = content.replace(target_bytes, new_target_bytes) + if new_content == content: + logger.warning( + "something went wrong patching the driver binary. could not find injection code block" + ) + else: + logger.debug( + "found block:\n%s\nreplacing with:\n%s" + % (target_bytes, new_target_bytes) + ) fh.seek(0) fh.write(new_content) logger.debug(