add metube version. closes #83

This commit is contained in:
Alex Shnitman
2025-06-05 20:47:49 +03:00
parent f494c4f6be
commit d74e8df408
8 changed files with 106 additions and 6 deletions

View File

@@ -258,7 +258,10 @@ def robots(request):
@routes.get(config.URL_PREFIX + 'version')
def version(request):
return web.json_response({"version": yt_dlp_version})
return web.json_response({
"yt-dlp": yt_dlp_version,
"version": os.getenv("METUBE_VERSION", "dev")
})
if config.URL_PREFIX != '/':
@routes.get('/')