Fix external subtitles example

Currently, running the example results in:

> TypeError: MPV.play() got an unexpected keyword argument 'sub_file'
This commit is contained in:
Naglis Jonaitis 2022-05-16 00:54:41 +03:00 committed by jaseg
parent 1c0340e2d7
commit dd4d016de8

View file

@ -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.