@ -60,7 +60,7 @@ from .postprocessor import (
get_postprocessor ,
get_postprocessor ,
)
)
from . postprocessor . ffmpeg import resolve_mapping as resolve_recode_mapping
from . postprocessor . ffmpeg import resolve_mapping as resolve_recode_mapping
from . update import REPOSITORY , current_git_head, detect_variant
from . update import REPOSITORY , _get_system_deprecation, current_git_head, detect_variant
from . utils import (
from . utils import (
DEFAULT_OUTTMPL ,
DEFAULT_OUTTMPL ,
IDENTITY ,
IDENTITY ,
@ -640,17 +640,9 @@ class YoutubeDL:
for name , stream in self . _out_files . items_ if name != ' console '
for name , stream in self . _out_files . items_ if name != ' console '
} )
} )
# The code is left like this to be reused for future deprecations
system_deprecation = _get_system_deprecation ( )
MIN_SUPPORTED , MIN_RECOMMENDED = ( 3 , 7 ) , ( 3 , 7 )
if system_deprecation :
current_version = sys . version_info [ : 2 ]
self . deprecated_feature ( system_deprecation . replace ( ' \n ' , ' \n ' ) )
if current_version < MIN_RECOMMENDED :
msg = ( ' Support for Python version %d . %d has been deprecated. '
' See https://github.com/yt-dlp/yt-dlp/issues/3764 for more details. '
' \n You will no longer receive updates on this version ' )
if current_version < MIN_SUPPORTED :
msg = ' Python version %d . %d is no longer supported '
self . deprecated_feature (
f ' { msg } ! Please update to Python %d.%d or above ' % ( * current_version , * MIN_RECOMMENDED ) )
if self . params . get ( ' allow_unplayable_formats ' ) :
if self . params . get ( ' allow_unplayable_formats ' ) :
self . report_warning (
self . report_warning (