summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2017-05-07 15:34:36 +0200
committerjaseg <git@jaseg.net>2017-05-07 15:34:36 +0200
commit9a9a8bb2c9b39b61992fe01b2d4fcaf5bfcc5e7e (patch)
treeafcfd43c506a6ed349e3b263600d4ddc52436d64
parent32b5fb862778dcf3f06472a1478107c3eba6e815 (diff)
downloadpython-mpv-9a9a8bb2c9b39b61992fe01b2d4fcaf5bfcc5e7e.tar.gz
python-mpv-9a9a8bb2c9b39b61992fe01b2d4fcaf5bfcc5e7e.tar.bz2
python-mpv-9a9a8bb2c9b39b61992fe01b2d4fcaf5bfcc5e7e.zip
Add playlist_append porcelain
-rw-r--r--mpv.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mpv.py b/mpv.py
index b93c7ef..56bb47c 100644
--- a/mpv.py
+++ b/mpv.py
@@ -544,6 +544,9 @@ class MPV(object):
def loadlist(self, playlist, mode='replace'):
self.command('loadlist', playlist.encode(fs_enc), mode)
+ def playlist_append(self, filename, **options):
+ self.loadfile(self, filename, 'append', **options)
+
def playlist_clear(self):
self.command('playlist_clear')