sources of ~~water~~ code
This commit is contained in:
parent
9eaf966f90
commit
8e1e188214
2
URLs.py
2
URLs.py
|
@ -20,7 +20,7 @@ class URL:
|
|||
self.urls = {}
|
||||
def GetDownload(self):
|
||||
print(f"Pinging URL {self.url}")
|
||||
self.j = subprocess.Popen(["""curl -w "%%{redirect_url}" -ILsS tiny.cc/%s -o /dev/null --max-redirs 1"""%self.url], shell=True, executable="/bin/bash", stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
self.j = subprocess.Popen(["""curl -w "%%{redirect_url}" -ILsS tiny.cc/%s -o /dev/null --max-redirs 1"""%self.url], shell=True, executable="/bin/bash", stdout=subprocess.PIPE, stderr=subprocess.PIPE) #https://unix.stackexchange.com/a/515645/401349 and https://unix.stackexchange.com/a/157219/401349
|
||||
self.output = self.j.communicate()
|
||||
if self.j.returncode != 0:
|
||||
if self.j.returncode != 47:
|
||||
|
|
Loading…
Reference in New Issue