Update app.py
Browse files
app.py
CHANGED
|
@@ -220,6 +220,9 @@ def getNetflixInfoWithApi(cookiefile):
|
|
| 220 |
if "login" in r.url:
|
| 221 |
print("Login Page")
|
| 222 |
os.remove(cookiefile)
|
|
|
|
|
|
|
|
|
|
| 223 |
return "Not working"
|
| 224 |
else:
|
| 225 |
soup = BeautifulSoup(r.content, "html.parser")
|
|
|
|
| 220 |
if "login" in r.url:
|
| 221 |
print("Login Page")
|
| 222 |
os.remove(cookiefile)
|
| 223 |
+
ftp,ssh_client = sftp_connect()
|
| 224 |
+
ftp.remove("./domains/hashir672.serv00.net/public_html/Membership/"+cookiefile)
|
| 225 |
+
ssh_client.close()
|
| 226 |
return "Not working"
|
| 227 |
else:
|
| 228 |
soup = BeautifulSoup(r.content, "html.parser")
|