Davinci Resolve beta updates

This commit is contained in:
Christian Colglazier 2020-11-19 11:52:53 -05:00
parent 04d8aa767f
commit 7e0337f8a6
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,6 @@
import json
import os
import re
import urllib.request
# getJSONData returns JSON data from Blackmagic Design's website.
@ -31,7 +32,13 @@ def getURLId(url):
# getURLVersion() returns the url version number.
def getURLVersion(url):
return '{}.{}.{}'.format(url['major'], url['minor'], url['releaseNum'])
if 'Beta' in url['downloadTitle']:
beta = re.search('Beta \d+', url['downloadTitle'])
if beta:
beta = re.search('\d+', beta.group()).group()
else:
beta = '99'
return '{}.{}.{}.{}'.format(url['major'], url['minor'], url['releaseNum'], beta)
# getDownloadId() returns downlaod id hash.
def getDownloadId(download):

View File

@ -52,9 +52,6 @@ zipUrl="$(curl \
--compressed \
"$downloadUrl")"
echo $url
exit
# Setting up and downloading package
downloadPackage resolve $zipUrl $packageName