@ -96,7 +96,6 @@ class MetadataParserPP(PostProcessor):
return f
# Deprecated
class MetadataFromFieldPP ( MetadataParserPP ) :
@classmethod
def to_action ( cls , f ) :
@ -106,19 +105,17 @@ class MetadataFromFieldPP(MetadataParserPP):
return (
cls . Actions . INTERPRET ,
match . group ( ' in ' ) . replace ( ' \\ : ' , ' : ' ) ,
match . group ( ' out ' ) )
match . group ( ' out ' ) ,
)
def __init__ ( self , downloader , formats ) :
super ( ) . __init__ ( self , downloader , [ self . to_action ( f ) for f in formats ] )
self . deprecation_warning (
' yt_dlp.postprocessor.MetadataFromFieldPP is deprecated '
' and may be removed in a future version. Use yt_dlp.postprocessor.MetadataParserPP instead ' )
super ( ) . __init__ ( downloader , [ self . to_action ( f ) for f in formats ] )
# Deprecated
class MetadataFromTitlePP ( MetadataParserPP ) :
def __init__ ( self , downloader , titleformat ) :
super ( ) . __init__ ( self , downloader , [ ( self . Actions . INTERPRET , ' title ' , titleformat ) ] )
super ( ) . __init__ ( downloader , [ ( self . Actions . INTERPRET , ' title ' , titleformat ) ] )
self . deprecation_warning (
' yt_dlp.postprocessor.MetadataFromTitlePP is deprecated '
' and may be removed in a future version. Use yt_dlp.postprocessor.Metadata Parser PP instead' )
' and may be removed in a future version. Use yt_dlp.postprocessor.Metadata FromField PP instead' )