Don't hardcode version number

This commit is contained in:
Ivan Habunek 2024-03-23 08:55:56 +01:00
parent c727d65694
commit 40d52891f8
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D

View File

@ -1,3 +1,8 @@
__version__ = "2.1.4"
from importlib import metadata
try:
__version__ = metadata.version("twitch-dl")
except metadata.PackageNotFoundError:
__version__ = "0.0.0"
CLIENT_ID = "kd1unb4b3q4t58fwlpcbzcbnm76a8fp"