Fix: Max Retry
This commit is contained in:
parent
be1a1df00b
commit
99d148666e
@ -11,7 +11,7 @@ import base64
|
|||||||
import hashlib
|
import hashlib
|
||||||
import requests
|
import requests
|
||||||
from urllib import parse
|
from urllib import parse
|
||||||
|
requests.adapters.DEFAULT_RETRIES = 10
|
||||||
|
|
||||||
class VideoPart:
|
class VideoPart:
|
||||||
def __init__(self, path, title='', desc=''):
|
def __init__(self, path, title='', desc=''):
|
||||||
|
@ -81,6 +81,7 @@ def upload(date=datetime.strftime(datetime.now(), "%Y_%m_%d")):
|
|||||||
b.preUpload(VideoPart(i, os.path.basename(i)))
|
b.preUpload(VideoPart(i, os.path.basename(i)))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
appendError(e.__str__())
|
appendError(e.__str__())
|
||||||
|
continue
|
||||||
os.remove(i)
|
os.remove(i)
|
||||||
i = uploadQueue.get()
|
i = uploadQueue.get()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user