Add the item fields bitrate_mode, encoder_info and encoder_settings

This commit is contained in:
Julien Cassette 2021-11-20 18:07:21 +01:00
parent eb71f7698b
commit 4f83b2d8a6
4 changed files with 9 additions and 1 deletions

View file

@ -531,6 +531,9 @@ class Item(LibModel):
'length': DurationType(),
'bitrate': types.ScaledInt(1000, 'kbps'),
'bitrate_mode': types.STRING,
'encoder_info': types.STRING,
'encoder_settings': types.STRING,
'format': types.STRING,
'samplerate': types.ScaledInt(1000, 'kHz'),
'bitdepth': types.INTEGER,

View file

@ -10,6 +10,7 @@ New features:
* :doc:`/plugins/kodiupdate`: Now supports multiple kodi instances
:bug:`4101`
* Add the item fields ``bitrate_mode``, ``encoder_info`` and ``encoder_settings``.
Bug fixes:
@ -28,6 +29,7 @@ For packagers:
* We fixed a version for the dependency on the `Confuse`_ library.
:bug:`4167`
* The minimum required version of :pypi:`mediafile` is now 0.9.0.
1.6.0 (November 27, 2021)

View file

@ -235,6 +235,9 @@ Audio information:
* length (in seconds)
* bitrate (in kilobits per second, with units: e.g., "192kbps")
* bitrate_mode (eg. "CBR", "VBR" or "ABR", only available for the MP3 format)
* encoder_info (eg. "LAME 3.97.0", only available for some formats)
* encoder_settings (eg. "-V2", only available for the MP3 format)
* format (e.g., "MP3" or "FLAC")
* channels
* bitdepth (only available for some formats)

View file

@ -88,7 +88,7 @@ setup(
'unidecode',
'musicbrainzngs>=0.4',
'pyyaml',
'mediafile>=0.2.0',
'mediafile>=0.9.0',
'confuse>=1.5.0',
'munkres>=1.0.0',
'jellyfish',