summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mpv.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/mpv.py b/mpv.py
index 56bb47c..19124d1 100644
--- a/mpv.py
+++ b/mpv.py
@@ -530,10 +530,6 @@ class MPV(object):
def playlist_prev(self, mode='weak'):
self.command('playlist_prev', mode)
- @property
- def playlist_filenames(self):
- return [element['filename'] for element in self.playlist]
-
@staticmethod
def _encode_options(options):
return ','.join('{}={}'.format(str(key), str(val)) for key, val in options.items())
@@ -544,9 +540,6 @@ 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')
@@ -671,6 +664,13 @@ class MPV(object):
def play(self, filename):
self.loadfile(filename)
+ @property
+ def playlist_filenames(self):
+ return [element['filename'] for element in self.playlist]
+
+ def playlist_append(self, filename, **options):
+ self.loadfile(filename, 'append', **options)
+
# Property accessors
def _get_property(self, name, proptype=str, decode_str=False):
fmt = {int: MpvFormat.INT64,