You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/metadata_agents.rst
+7-38Lines changed: 7 additions & 38 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ All agent base classes share the following class attributes:
89
89
The ``version`` attribute on an agent class controls the *agent API style*:
90
90
91
91
- **version 0** (legacy) — ``search()`` receives a :ref:`MediaContainer <mediacontainer>` for ``results`` and you append :ref:`MetadataSearchResult <metadatasearchresult>` objects via ``results.Append(...)``.
92
-
- **version 1+** (modern) — ``search()`` receives an :ref:`ObjectContainer <objectcontainer>` for ``results``.
92
+
- **version 1+** (modern) — ``search()`` receives an :ref:`ObjectContainer <objectcontainer>` for ``results`` and you append :ref:`SearchResult <searchresult>` objects via ``results.Append(...)``.
93
93
94
94
This is **not** the same as ``PlexFrameworkVersion`` in ``Info.plist``, which
95
95
selects the framework bootstrap version (always ``"2"`` for modern plug-ins).
@@ -108,7 +108,7 @@ Called when the server needs search results for a media item.
108
108
- Type
109
109
- Description
110
110
* - results
111
-
- :ref:`ObjectContainer <objectcontainer>` or :ref:`MediaContainer <mediacontainer>`
111
+
- :ref:`MediaContainer <mediacontainer>` (V0) or :ref:`ObjectContainer <objectcontainer>` (V1+)
112
112
- Container to append results to.
113
113
* - media
114
114
- :ref:`Media.Movie <media-movie>`, :ref:`Media.TV_Show <media-tv-show>`, :ref:`Media.Artist <media-artist>`, :ref:`Media.Album <media-album>`, etc.
@@ -161,7 +161,11 @@ For version 0 agents, append :ref:`MetadataSearchResult <metadatasearchresult>`
0 commit comments