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:
parent
1c0340e2d7
commit
dd4d016de8
1 changed files with 2 additions and 1 deletions
|
|
@ -241,7 +241,8 @@ The easiest way to load custom subtitles from a file is to pass the ``--sub-file
|
||||||
import mpv
|
import mpv
|
||||||
|
|
||||||
player = mpv.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.
|
Note that you can also pass many other options to ``loadfile``. See the mpv docs for details.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue