1
0
Fork 0

[cleanup] Misc

This commit is contained in:
pukkandan 2023-03-04 22:40:08 +05:30
commit 392389b7df
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
8 changed files with 46 additions and 38 deletions

View file

@ -29,13 +29,13 @@ UPDATE_SOURCES = {
'stable': 'yt-dlp/yt-dlp',
'nightly': 'yt-dlp/yt-dlp-nightly-builds',
}
REPOSITORY = UPDATE_SOURCES['stable']
_VERSION_RE = re.compile(r'(\d+\.)*\d+')
API_BASE_URL = 'https://api.github.com/repos'
# Backwards compatibility variables for the current channel
REPOSITORY = UPDATE_SOURCES[CHANNEL]
API_URL = f'{API_BASE_URL}/{REPOSITORY}/releases'