Hello community,

here is the log from the commit of package python-python-mpv for 
openSUSE:Factory checked in at 2020-07-14 07:58:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-mpv (Old)
 and      /work/SRC/openSUSE:Factory/.python-python-mpv.new.3060 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-python-mpv"

Tue Jul 14 07:58:40 2020 rev:12 rq:820545 version:0.4.7

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-python-mpv/python-python-mpv.changes      
2020-04-07 10:28:44.110323733 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-python-mpv.new.3060/python-python-mpv.changes
    2020-07-14 07:59:42.281870278 +0200
@@ -1,0 +2,9 @@
+Sun Jul 12 12:05:20 UTC 2020 - [email protected]
+
+- Update to version 0.4.7
+  * README: Add detail on subtitle handling
+  * Fix handling of dashed options in loadfile.
+  * update README with inserting subtitles
+  * Add release script 
+
+-------------------------------------------------------------------

Old:
----
  python-mpv-0.4.6.tar.gz

New:
----
  python-mpv-0.4.7.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-python-mpv.spec ++++++
--- /var/tmp/diff_new_pack.RB18IE/_old  2020-07-14 07:59:43.013872648 +0200
+++ /var/tmp/diff_new_pack.RB18IE/_new  2020-07-14 07:59:43.017872661 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python-python-mpv
-Version:        0.4.6
+Version:        0.4.7
 Release:        0
 Summary:        Python interface to the mpv media player
 License:        AGPL-3.0-or-later

++++++ python-mpv-0.4.6.tar.gz -> python-mpv-0.4.7.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-mpv-0.4.6/PKG-INFO 
new/python-mpv-0.4.7/PKG-INFO
--- old/python-mpv-0.4.6/PKG-INFO       2020-04-05 13:05:16.000000000 +0200
+++ new/python-mpv-0.4.7/PKG-INFO       2020-07-12 13:30:54.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: python-mpv
-Version: 0.4.6
+Version: 0.4.7
 Summary: A python interface to the mpv media player
 Home-page: https://github.com/jaseg/python-mpv
 Author: jaseg
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-mpv-0.4.6/README.rst 
new/python-mpv-0.4.7/README.rst
--- old/python-mpv-0.4.6/README.rst     2020-04-05 12:47:34.000000000 +0200
+++ new/python-mpv-0.4.7/README.rst     2020-07-12 13:25:58.000000000 +0200
@@ -161,6 +161,36 @@
     player.play('python://foo')
     player.wait_for_playback()
 
+Using external subtitles
+........................
+
+The easiest way to load custom subtitles from a file is to pass the 
``--sub-file`` option to the ``loadfile`` call:
+
+.. code:: python
+
+    #!/usr/bin/env python3
+    import mpv
+
+    player = mpv.MPV()
+    player.play('test.webm', sub_file='test.srt')
+
+Note that you can also pass many other options to ``loadfile``. See the mpv 
docs for details.
+
+If you want to add subtitle files or streams at runtime, you can use the 
``sub-add`` command. ``sub-add`` can only be
+called once the player is done loading the file and starts playing. An easy 
way to wait for this is to wait for the
+``core-idle`` property.
+
+.. code:: python
+
+    #!/usr/bin/env python3
+    import mpv
+
+    player = mpv.MPV()
+    player.play('test.webm')
+    player.wait_for_property('core-idle', lambda idle: not idle)
+    player.sub_add('test.srt')
+    player.wait_for_playback()
+
 Using MPV's built-in GUI
 ........................
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-mpv-0.4.6/mpv.py new/python-mpv-0.4.7/mpv.py
--- old/python-mpv-0.4.6/mpv.py 2020-01-03 01:08:05.000000000 +0100
+++ new/python-mpv-0.4.7/mpv.py 2020-07-12 12:47:40.000000000 +0200
@@ -921,7 +921,7 @@
 
     @staticmethod
     def _encode_options(options):
-        return ','.join('{}={}'.format(str(key), str(val)) for key, val in 
options.items())
+        return ','.join('{}={}'.format(_py_to_mpv(str(key)), str(val)) for 
key, val in options.items())
 
     def loadfile(self, filename, mode='replace', **options):
         """Mapped mpv loadfile command, see man mpv(1)."""
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-mpv-0.4.6/python_mpv.egg-info/PKG-INFO 
new/python-mpv-0.4.7/python_mpv.egg-info/PKG-INFO
--- old/python-mpv-0.4.6/python_mpv.egg-info/PKG-INFO   2020-04-05 
13:05:16.000000000 +0200
+++ new/python-mpv-0.4.7/python_mpv.egg-info/PKG-INFO   2020-07-12 
13:30:54.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: python-mpv
-Version: 0.4.6
+Version: 0.4.7
 Summary: A python interface to the mpv media player
 Home-page: https://github.com/jaseg/python-mpv
 Author: jaseg
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/python-mpv-0.4.6/setup.py 
new/python-mpv-0.4.7/setup.py
--- old/python-mpv-0.4.6/setup.py       2020-04-05 12:49:00.000000000 +0200
+++ new/python-mpv-0.4.7/setup.py       2020-07-12 13:30:36.000000000 +0200
@@ -3,7 +3,7 @@
 from setuptools import setup
 setup(
     name = 'python-mpv',
-    version = '0.4.6',
+    version = '0.4.7',
     py_modules = ['mpv'],
     description = 'A python interface to the mpv media player',
     url = 'https://github.com/jaseg/python-mpv',


Reply via email to