From dd4d016de8eb7f79c9fa0810e9e3dc59f949a2de Mon Sep 17 00:00:00 2001 From: Naglis Jonaitis Date: Mon, 16 May 2022 00:54:41 +0300 Subject: Fix external subtitles example Currently, running the example results in: > TypeError: MPV.play() got an unexpected keyword argument 'sub_file' --- README.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 3af7d9d..1f61efe 100644 --- a/README.rst +++ b/README.rst @@ -241,7 +241,8 @@ The easiest way to load custom subtitles from a file is to pass the ``--sub-file import mpv player = mpv.MPV() - player.play('test.webm', sub_file='test.srt') + player.loadfile('test.webm', sub_file='test.srt') + player.wait_for_playback() Note that you can also pass many other options to ``loadfile``. See the mpv docs for details. -- cgit