Mailing List Archive

[MythTV/mythtv] 06815b: Python Bindings: Artwork is a mutable string
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: 06815bf2f3fe3e6eee59258b2fda86b7c33e5500
https://github.com/MythTV/mythtv/commit/06815bf2f3fe3e6eee59258b2fda86b7c33e5500
Author: Roland Ernst <rcrernst@gmail.com>
Date: 2023-06-04 (Sun, 04 Jun 2023)

Changed paths:
M mythtv/bindings/python/MythTV/dataheap.py

Log Message:
-----------
Python Bindings: Artwork is a mutable string

This fixes the class Artwork to be mutable and makes it
independent form the cPython implementation of 'str'.
It restores the original behavior from the former python 2
implementation.


Commit: 86e5d0aa069f20f84494ddf9628372cd85dc7d39
https://github.com/MythTV/mythtv/commit/86e5d0aa069f20f84494ddf9628372cd85dc7d39
Author: Roland Ernst <rcrernst@gmail.com>
Date: 2023-06-04 (Sun, 04 Jun 2023)

Changed paths:
M mythtv/bindings/python/MythTV/dataheap.py

Log Message:
-----------
Python Bindings: Allow overwriting of artworks

Allow overwrite/update of existing artwork in method
'Recorded.importMetadata()'.
Add a reference to the grabber in the art artwork's filename.
Store these artworks in the SQL table recordedartwork.


Commit: aa335750487cf483680b422dc2aa179c58002729
https://github.com/MythTV/mythtv/commit/aa335750487cf483680b422dc2aa179c58002729
Author: Roland Ernst <rcrernst@gmail.com>
Date: 2023-06-04 (Sun, 04 Jun 2023)

Changed paths:
M mythtv/bindings/python/MythTV/dataheap.py
M mythtv/bindings/python/MythTV/static.py

Log Message:
-----------
Python Bindings: Respect overwrite flag in cast update

of the method 'Recorded.importMetadata()'.

Handle update of existing 'Cast' entries in respect to the
'overwrite' flag.
Update the new table 'roles' introduced in DB-Schema 1369 with the
correct character (role) if provided by the metadata.
Check for valid 'role' before inserting cast data.


Commit: da2bb45c7b23a2382632c3a105f53f0bf371e268
https://github.com/MythTV/mythtv/commit/da2bb45c7b23a2382632c3a105f53f0bf371e268
Author: Roland Ernst <rcrernst@gmail.com>
Date: 2023-06-04 (Sun, 04 Jun 2023)

Changed paths:
M mythtv/bindings/python/MythTV/dataheap.py

Log Message:
-----------
Python Bindings: Add character to the cast members

when exporting metadata from the 'recorded' class.

And sort the cast by priority from the 'cast' table.


Commit: 8b59a835167d8f3cfa6a6e14022082221e0bce12
https://github.com/MythTV/mythtv/commit/8b59a835167d8f3cfa6a6e14022082221e0bce12
Author: Roland Ernst <rcrernst@gmail.com>
Date: 2023-06-04 (Sun, 04 Jun 2023)

Changed paths:
M mythtv/bindings/python/MythTV/dataheap.py

Log Message:
-----------
Python Bindings: Fix export of artwork images

from recordings and videos.


Commit: badc93ad136fcbaea80c57f6e4eca12fd44b9623
https://github.com/MythTV/mythtv/commit/badc93ad136fcbaea80c57f6e4eca12fd44b9623
Author: Roland Ernst <rcrernst@gmail.com>
Date: 2023-06-04 (Sun, 04 Jun 2023)

Changed paths:
M mythtv/bindings/python/MythTV/__init__.py
M mythtv/bindings/python/MythTV/dataheap.py

Log Message:
-----------
Python Bindings: Add metadata-grabber using inetrefs

In case the inetref for a given recorded - or video - entry holds
already the grabber-script and the cleaned inetref number,
one can use this information to fetch metadata by a direct call of
this grabber script.

Basic usage for recordings:
rec = Recorded((<chanid>,<starttime>), db=<db>)
mgrabber = InetrefGrabber(rec.inetref, lang='<your-lang>')
metadata = mgrabber.grabMetadata()
rec.importMetadata(metadata, overwrite=<True/False>)

Basic usage for video:
vid = next(<db>.searchVideos(title = <title>))
mgrabber = InetrefGrabber(vid.inetref, lang='<your-lang>')
metadata = mgrabber.grabMetadata()
vid.importMetadata(metadata, overwrite=<True/False>)

Note: Items encapsualted with "<>" needs to be provided.


Compare: https://github.com/MythTV/mythtv/compare/2915ae4bee5a...badc93ad136f
_______________________________________________
mythtv-commits mailing list
mythtv-commits@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-commits