Fix: Max Retry
This commit is contained in:
parent
be1a1df00b
commit
99d148666e
@ -11,7 +11,7 @@ import base64
|
||||
import hashlib
|
||||
import requests
|
||||
from urllib import parse
|
||||
|
||||
requests.adapters.DEFAULT_RETRIES = 10
|
||||
|
||||
class VideoPart:
|
||||
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)))
|
||||
except Exception as e:
|
||||
appendError(e.__str__())
|
||||
continue
|
||||
os.remove(i)
|
||||
i = uploadQueue.get()
|
||||
|
||||
|
Reference in New Issue
Block a user