Closes #8152
Authored by: bashonly
name=getattr(module, '_yt_dlp__identifier', module.__name__),
version=str(next(filter(None, (
getattr(module, attr, None)
- for attr in ('__version__', 'version_string', 'version')
+ for attr in ('_yt_dlp__version', '__version__', 'version_string', 'version')
)), None)))
try:
import sqlite3
+ # We need to get the underlying `sqlite` version, see https://github.com/yt-dlp/yt-dlp/issues/8152
+ sqlite3._yt_dlp__version = sqlite3.sqlite_version
except ImportError:
# although sqlite3 is part of the standard library, it is possible to compile python without
# sqlite support. See: https://github.com/yt-dlp/yt-dlp/issues/544