Test Installazione Widevine

This commit is contained in:
Alhaziel01
2020-07-07 17:35:29 +02:00
parent 9097e47063
commit 87474c56dd
5 changed files with 590 additions and 4 deletions

View File

@@ -216,12 +216,14 @@ def downloadbest(video_urls, title, continuar=False):
return -2
def downloadfile(url, nombrefichero, headers=None, silent=False, continuar=False, resumir=True):
def downloadfile(url, nombrefichero, headers=None, silent=False, continuar=False, resumir=True, header=''):
logger.info("url= " + url)
logger.info("filename= " + nombrefichero)
if headers is None:
headers = []
if not header:
header = "plugin"
progreso = None
@@ -269,7 +271,7 @@ def downloadfile(url, nombrefichero, headers=None, silent=False, continuar=False
# Create the progress dialog
if not silent:
progreso = platformtools.dialog_progress("plugin", "Downloading...", url, nombrefichero)
progreso = platformtools.dialog_progress(header, "Downloading...", url, nombrefichero)
# If the platform does not return a valid dialog box, it assumes silent mode
if progreso is None: