Files
Iris/mopidy_iris
jojo141185 4954f6de54 fix: Resolve Mopidy v4 ModuleNotFoundError on startup
The Mopidy v4.0 development versions have removed the `mopidy.models.serialize` module, which causes a `ModuleNotFoundError` in Iris on startup.

This commit introduces a check to detect the Mopidy version. It conditionally uses the new Pydantic `.model_dump()` method for serialization on v4 while falling back to the legacy `ModelJSONEncoder` for older versions. This makes Iris compatible with both Mopidy v3 and the new v4 pre-releases.
2025-09-06 10:10:03 +00:00
..
2024-01-03 10:55:15 +13:00
2024-03-25 20:30:26 +13:00
2020-02-03 16:14:04 +13:00
2023-06-01 18:09:46 -07:00
2023-09-20 15:43:58 +09:30