mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
Added lib.requests and code to import our custom lib folder
This commit is contained in:
parent
5105e03de6
commit
2c4b260440
90 changed files with 20414 additions and 19 deletions
|
@ -5,7 +5,6 @@ import struct
|
|||
import shutil
|
||||
import sys
|
||||
import time
|
||||
import requests
|
||||
import logging
|
||||
import logging.config
|
||||
import logging.handlers
|
||||
|
@ -483,8 +482,3 @@ def delete(dirName):
|
|||
shutil.rmtree(dirName, True)
|
||||
except:
|
||||
Logger.exception("Unable to delete folder %s", dirName)
|
||||
|
||||
def getURL(url, username, password):
|
||||
r = requests.get(url, auth=(username, password))
|
||||
return r
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue