mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-27 11:05:54 +00:00
[update] Deprecate run_update()
Authored by: bashonly
This commit is contained in:
parent
0753efd8aa
commit
0e5df74a73
@ -18,6 +18,7 @@ from .networking.exceptions import HTTPError, network_exceptions
|
|||||||
from .utils import (
|
from .utils import (
|
||||||
NO_DEFAULT,
|
NO_DEFAULT,
|
||||||
Popen,
|
Popen,
|
||||||
|
deprecation_warning,
|
||||||
format_field,
|
format_field,
|
||||||
remove_end,
|
remove_end,
|
||||||
shell_quote,
|
shell_quote,
|
||||||
@ -563,6 +564,9 @@ def run_update(ydl):
|
|||||||
"""Update the program file with the latest version from the repository
|
"""Update the program file with the latest version from the repository
|
||||||
@returns Whether there was a successful update (No update = False)
|
@returns Whether there was a successful update (No update = False)
|
||||||
"""
|
"""
|
||||||
|
deprecation_warning(
|
||||||
|
'"yt_dlp.update.run_update(ydl)" is deprecated and may be removed in a future version. '
|
||||||
|
'Use "yt_dlp.update.Updater(ydl).update()" instead')
|
||||||
return Updater(ydl).update()
|
return Updater(ydl).update()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user