mirror of
https://github.com/JulienMalka/snowfield.git
synced 2025-03-25 21:30:52 +01:00
Added second patch
This commit is contained in:
parent
b50ec1a2b2
commit
cdb8856b3e
2 changed files with 13 additions and 0 deletions
|
@ -19,6 +19,7 @@ stdenv.mkDerivation rec {
|
|||
nativeBuildInputs = [ chromedriver ];
|
||||
|
||||
patches = [
|
||||
./is_patched.patch
|
||||
(substituteAll {
|
||||
src = ./chromedriver_path.patch;
|
||||
chromedriver_path = "${chromedriver}/bin/chromedriver";
|
||||
|
|
12
packages/flaresolverr/is_patched.patch
Normal file
12
packages/flaresolverr/is_patched.patch
Normal file
|
@ -0,0 +1,12 @@
|
|||
diff --git a/src/undetected_chromedriver/patcher.py b/src/undetected_chromedriver/patcher.py
|
||||
index 5776d19..e3159dd 100644
|
||||
--- a/src/undetected_chromedriver/patcher.py
|
||||
+++ b/src/undetected_chromedriver/patcher.py
|
||||
@@ -334,6 +334,7 @@ class Patcher(object):
|
||||
return "".join(cdc).encode()
|
||||
|
||||
def is_binary_patched(self, executable_path=None):
|
||||
+ return True
|
||||
executable_path = executable_path or self.executable_path
|
||||
try:
|
||||
with io.open(executable_path, "rb") as fh:
|
Loading…
Add table
Reference in a new issue