python-mpv-jsonipc 1.2.2__py3-none-any.whl → 1.2.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-mpv-jsonipc
3
- Version: 1.2.2
3
+ Version: 1.2.3
4
4
  Summary: Python API to MPV using JSON IPC
5
5
  Author-email: Izzie Walton <izzie@iwalton.com>
6
6
  License-Expression: Apache-2.0
@@ -0,0 +1,6 @@
1
+ python_mpv_jsonipc.py,sha256=-UvwnvcI2x1JyVue-4xGLipkzzGFlCrT6PqGe_FVAkY,24302
2
+ python_mpv_jsonipc-1.2.3.dist-info/licenses/LICENSE.md,sha256=7GQBUOA3dNG1Jk-yaPOCncNnRVURCRMev23QpZ1ew-s,10495
3
+ python_mpv_jsonipc-1.2.3.dist-info/METADATA,sha256=YF-8QYjJ5EtyYcPfaVC2_8dywv_pkKujnsgl2-qAU1g,2277
4
+ python_mpv_jsonipc-1.2.3.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
5
+ python_mpv_jsonipc-1.2.3.dist-info/top_level.txt,sha256=nGk4yjpVHKmIrL39XdGD2PhCeWF0oMjwey0nsNOd2TM,19
6
+ python_mpv_jsonipc-1.2.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (82.0.1)
2
+ Generator: setuptools (83.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
python_mpv_jsonipc.py CHANGED
@@ -268,9 +268,13 @@ class MPVProcess:
268
268
  prop_dict[key] = value
269
269
 
270
270
  def _mpv_fmt(self, data):
271
- if data == True:
271
+ # Use identity comparison so numeric arguments are preserved. In Python
272
+ # ``1 == True`` and ``0 == False``, so ``==`` would convert numeric
273
+ # options such as ``video-scale-x=1`` into ``--video-scale-x=yes``,
274
+ # which MPV rejects.
275
+ if data is True:
272
276
  return "yes"
273
- elif data == False:
277
+ elif data is False:
274
278
  return "no"
275
279
  else:
276
280
  return data
@@ -1,6 +0,0 @@
1
- python_mpv_jsonipc.py,sha256=McfALK21Mp48Ekpg8wszSnHlSExtlrpsrw90i9syvng,24041
2
- python_mpv_jsonipc-1.2.2.dist-info/licenses/LICENSE.md,sha256=7GQBUOA3dNG1Jk-yaPOCncNnRVURCRMev23QpZ1ew-s,10495
3
- python_mpv_jsonipc-1.2.2.dist-info/METADATA,sha256=AjVHMMb5-bKwYuf89xM3J9jLRPX17v-iXkMvuft8AF0,2277
4
- python_mpv_jsonipc-1.2.2.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
5
- python_mpv_jsonipc-1.2.2.dist-info/top_level.txt,sha256=nGk4yjpVHKmIrL39XdGD2PhCeWF0oMjwey0nsNOd2TM,19
6
- python_mpv_jsonipc-1.2.2.dist-info/RECORD,,