From 66c935fb16c21280dde261f7f48f04c50c462df5 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 29 Jan 2021 01:02:37 +0530 Subject: Linter and misc cleanup :ci skip dl --- scripts/update-version.py | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 scripts/update-version.py (limited to 'scripts/update-version.py') diff --git a/scripts/update-version.py b/scripts/update-version.py deleted file mode 100644 index e1eb53f38..000000000 --- a/scripts/update-version.py +++ /dev/null @@ -1,33 +0,0 @@ -# Unused - -from __future__ import unicode_literals -from datetime import datetime -import urllib.request - -response = urllib.request.urlopen('https://blackjack4494.github.io/youtube-dlc/update/LATEST_VERSION') - -_LATEST_VERSION = response.read().decode('utf-8') - -_OLD_VERSION = _LATEST_VERSION.rsplit("-", 1) - -if len(_OLD_VERSION) > 0: - old_ver = _OLD_VERSION[0] - -old_rev = '' -if len(_OLD_VERSION) > 1: - old_rev = _OLD_VERSION[1] - -now = datetime.now() -# ver = f'{datetime.today():%Y.%m.%d}' -ver = now.strftime("%Y.%m.%d") -rev = '' - -if old_ver == ver: - if old_rev: - rev = int(old_rev) + 1 - else: - rev = 1 - -_SEPARATOR = '-' - -version = _SEPARATOR.join(filter(None, [ver, str(rev)])) -- cgit v1.2.3