plex-api-client 0.21.2__tar.gz → 0.22.1__tar.gz
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.
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/PKG-INFO +7 -2
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/README-PYPI.md +6 -1
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/pyproject.toml +1 -1
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/_version.py +3 -3
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/library.py +282 -42
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/__init__.py +54 -18
- plex_api_client-0.22.1/src/plex_api_client/models/errors/get_actors_library.py +79 -0
- plex_api_client-0.22.1/src/plex_api_client/models/errors/get_media_meta_data.py +79 -0
- plex_api_client-0.22.1/src/plex_api_client/models/errors/get_users.py +79 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/__init__.py +158 -64
- plex_api_client-0.22.1/src/plex_api_client/models/operations/get_actors_library.py +205 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_countries_library.py +43 -1
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_genres_library.py +43 -1
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_library_items.py +23 -23
- plex_api_client-0.22.1/src/plex_api_client/models/operations/get_media_meta_data.py +1242 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_recently_added.py +3 -3
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_recently_added_library.py +3 -3
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_search_library.py +3 -3
- plex_api_client-0.22.1/src/plex_api_client/models/operations/get_users.py +476 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getplaylistcontents.py +3 -3
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/gettopwatchedcontent.py +9 -7
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/playlists.py +2 -2
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/sdk.py +3 -0
- plex_api_client-0.22.1/src/plex_api_client/users.py +222 -0
- plex_api_client-0.21.2/src/plex_api_client/models/errors/get_meta_data_by_rating_key.py +0 -79
- plex_api_client-0.21.2/src/plex_api_client/models/operations/get_meta_data_by_rating_key.py +0 -629
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/LICENSE.md +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/py.typed +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/__init__.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/_hooks/__init__.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/_hooks/registration.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/_hooks/sdkhooks.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/_hooks/types.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/activities.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/authentication.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/basesdk.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/butler.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/httpclient.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/hubs.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/log.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/media.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/components/__init__.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/components/security.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/addplaylistcontents.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/applyupdates.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/cancelserveractivities.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/checkforupdates.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/clearplaylistcontents.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/createplaylist.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/deletelibrary.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/deleteplaylist.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/enablepapertrail.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_all_libraries.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_banner_image.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_countries_library.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_genres_library.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_library_details.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_library_items.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_media_providers.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_recently_added_library.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_refresh_library_metadata.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_search_all_libraries.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_search_library.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_server_identity.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_server_resources.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_thumb_image.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/get_watch_list.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getavailableclients.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getbandwidthstatistics.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getbutlertasks.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getcompanionsdata.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getdevices.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getfilehash.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getgeodata.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getglobalhubs.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/gethomedata.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getlibraryhubs.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getmetadatachildren.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getmyplexaccount.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getondeck.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getpin.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getplaylist.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getplaylistcontents.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getplaylists.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getresizedphoto.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getresourcesstatistics.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getsearchresults.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getserveractivities.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getservercapabilities.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getserverlist.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getserverpreferences.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getsessionhistory.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getsessions.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getsourceconnectioninformation.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getstatistics.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/gettimeline.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/gettokenbypinid.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/gettokendetails.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/gettopwatchedcontent.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/gettranscodesessions.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/gettransienttoken.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getupdatestatus.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/getuserfriends.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/logline.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/logmultiline.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/markplayed.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/markunplayed.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/performsearch.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/performvoicesearch.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/post_users_sign_in_data.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/sdkerror.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/startalltasks.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/starttask.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/startuniversaltranscode.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/stopalltasks.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/stoptask.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/stoptranscodesession.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/updateplaylist.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/updateplayprogress.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/errors/uploadplaylist.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/addplaylistcontents.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/applyupdates.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/cancelserveractivities.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/checkforupdates.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/clearplaylistcontents.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/createplaylist.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/deletelibrary.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/deleteplaylist.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/enablepapertrail.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_all_libraries.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_banner_image.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_library_details.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_media_providers.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_refresh_library_metadata.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_search_all_libraries.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_server_identity.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_server_resources.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_thumb_image.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/get_watch_list.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getavailableclients.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getbandwidthstatistics.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getbutlertasks.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getcompanionsdata.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getdevices.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getfilehash.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getgeodata.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getglobalhubs.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/gethomedata.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getlibraryhubs.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getmetadatachildren.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getmyplexaccount.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getondeck.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getpin.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getplaylist.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getplaylists.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getresizedphoto.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getresourcesstatistics.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getsearchresults.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getserveractivities.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getservercapabilities.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getserverlist.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getserverpreferences.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getsessionhistory.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getsessions.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getsourceconnectioninformation.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getstatistics.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/gettimeline.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/gettokenbypinid.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/gettokendetails.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/gettranscodesessions.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/gettransienttoken.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getupdatestatus.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/getuserfriends.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/logline.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/logmultiline.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/markplayed.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/markunplayed.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/performsearch.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/performvoicesearch.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/post_users_sign_in_data.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/startalltasks.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/starttask.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/startuniversaltranscode.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/stopalltasks.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/stoptask.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/stoptranscodesession.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/updateplaylist.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/updateplayprogress.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/models/operations/uploadplaylist.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/plex.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/py.typed +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/sdkconfiguration.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/search.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/server.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/sessions.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/statistics.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/types/__init__.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/types/basemodel.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/updater.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/__init__.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/annotations.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/enums.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/eventstreaming.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/forms.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/headers.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/logger.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/metadata.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/queryparams.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/requestbodies.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/retries.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/security.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/serializers.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/url.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/utils/values.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/video.py +0 -0
- {plex_api_client-0.21.2 → plex_api_client-0.22.1}/src/plex_api_client/watchlist.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: plex-api-client
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.22.1
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy
|
|
5
5
|
Author: Speakeasy
|
|
6
6
|
Requires-Python: >=3.9
|
|
@@ -239,8 +239,9 @@ asyncio.run(main())
|
|
|
239
239
|
* [get_search_library](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_search_library) - Search Library
|
|
240
240
|
* [get_genres_library](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_genres_library) - Get Genres of library media
|
|
241
241
|
* [get_countries_library](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_countries_library) - Get Countries of library media
|
|
242
|
+
* [get_actors_library](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_actors_library) - Get Actors of library media
|
|
242
243
|
* [get_search_all_libraries](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_search_all_libraries) - Search All Libraries
|
|
243
|
-
* [
|
|
244
|
+
* [get_media_meta_data](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_media_meta_data) - Get Media Metadata
|
|
244
245
|
* [get_metadata_children](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_metadata_children) - Get Items Children
|
|
245
246
|
* [get_top_watched_content](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_top_watched_content) - Get Top Watched Content
|
|
246
247
|
* [get_on_deck](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_on_deck) - Get On Deck
|
|
@@ -319,6 +320,10 @@ asyncio.run(main())
|
|
|
319
320
|
* [check_for_updates](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/updater/README.md#check_for_updates) - Checking for updates
|
|
320
321
|
* [apply_updates](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/updater/README.md#apply_updates) - Apply Updates
|
|
321
322
|
|
|
323
|
+
### [users](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/users/README.md)
|
|
324
|
+
|
|
325
|
+
* [get_users](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/users/README.md#get_users) - Get list of all connected users
|
|
326
|
+
|
|
322
327
|
### [video](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/video/README.md)
|
|
323
328
|
|
|
324
329
|
* [get_timeline](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/video/README.md#get_timeline) - Get the timeline for a media item
|
|
@@ -219,8 +219,9 @@ asyncio.run(main())
|
|
|
219
219
|
* [get_search_library](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_search_library) - Search Library
|
|
220
220
|
* [get_genres_library](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_genres_library) - Get Genres of library media
|
|
221
221
|
* [get_countries_library](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_countries_library) - Get Countries of library media
|
|
222
|
+
* [get_actors_library](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_actors_library) - Get Actors of library media
|
|
222
223
|
* [get_search_all_libraries](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_search_all_libraries) - Search All Libraries
|
|
223
|
-
* [
|
|
224
|
+
* [get_media_meta_data](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_media_meta_data) - Get Media Metadata
|
|
224
225
|
* [get_metadata_children](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_metadata_children) - Get Items Children
|
|
225
226
|
* [get_top_watched_content](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_top_watched_content) - Get Top Watched Content
|
|
226
227
|
* [get_on_deck](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_on_deck) - Get On Deck
|
|
@@ -299,6 +300,10 @@ asyncio.run(main())
|
|
|
299
300
|
* [check_for_updates](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/updater/README.md#check_for_updates) - Checking for updates
|
|
300
301
|
* [apply_updates](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/updater/README.md#apply_updates) - Apply Updates
|
|
301
302
|
|
|
303
|
+
### [users](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/users/README.md)
|
|
304
|
+
|
|
305
|
+
* [get_users](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/users/README.md#get_users) - Get list of all connected users
|
|
306
|
+
|
|
302
307
|
### [video](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/video/README.md)
|
|
303
308
|
|
|
304
309
|
* [get_timeline](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/video/README.md#get_timeline) - Get the timeline for a media item
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
import importlib.metadata
|
|
4
4
|
|
|
5
5
|
__title__: str = "plex-api-client"
|
|
6
|
-
__version__: str = "0.
|
|
6
|
+
__version__: str = "0.22.1"
|
|
7
7
|
__openapi_doc_version__: str = "0.0.3"
|
|
8
|
-
__gen_version__: str = "2.
|
|
9
|
-
__user_agent__: str = "speakeasy-sdk/python 0.
|
|
8
|
+
__gen_version__: str = "2.506.0"
|
|
9
|
+
__user_agent__: str = "speakeasy-sdk/python 0.22.1 2.506.0 0.0.3 plex-api-client"
|
|
10
10
|
|
|
11
11
|
try:
|
|
12
12
|
if __package__ is not None:
|
|
@@ -1700,7 +1700,7 @@ class Library(BaseSDK):
|
|
|
1700
1700
|
|
|
1701
1701
|
|
|
1702
1702
|
:param section_key: The unique key of the Plex library. Note: This is unique in the context of the Plex server.
|
|
1703
|
-
:param type: The type of media to retrieve. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
|
1703
|
+
:param type: The type of media to retrieve or filter by. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
|
1704
1704
|
:param retries: Override the default retry configuration for this method
|
|
1705
1705
|
:param server_url: Override the default server URL for this method
|
|
1706
1706
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1829,7 +1829,7 @@ class Library(BaseSDK):
|
|
|
1829
1829
|
|
|
1830
1830
|
|
|
1831
1831
|
:param section_key: The unique key of the Plex library. Note: This is unique in the context of the Plex server.
|
|
1832
|
-
:param type: The type of media to retrieve. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
|
1832
|
+
:param type: The type of media to retrieve or filter by. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
|
1833
1833
|
:param retries: Override the default retry configuration for this method
|
|
1834
1834
|
:param server_url: Override the default server URL for this method
|
|
1835
1835
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1929,6 +1929,7 @@ class Library(BaseSDK):
|
|
|
1929
1929
|
self,
|
|
1930
1930
|
*,
|
|
1931
1931
|
section_key: int,
|
|
1932
|
+
type_: operations.GetGenresLibraryQueryParamType,
|
|
1932
1933
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
1933
1934
|
server_url: Optional[str] = None,
|
|
1934
1935
|
timeout_ms: Optional[int] = None,
|
|
@@ -1940,6 +1941,7 @@ class Library(BaseSDK):
|
|
|
1940
1941
|
|
|
1941
1942
|
|
|
1942
1943
|
:param section_key: The unique key of the Plex library. Note: This is unique in the context of the Plex server.
|
|
1944
|
+
:param type: The type of media to retrieve or filter by. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
|
1943
1945
|
:param retries: Override the default retry configuration for this method
|
|
1944
1946
|
:param server_url: Override the default server URL for this method
|
|
1945
1947
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -1955,6 +1957,7 @@ class Library(BaseSDK):
|
|
|
1955
1957
|
|
|
1956
1958
|
request = operations.GetGenresLibraryRequest(
|
|
1957
1959
|
section_key=section_key,
|
|
1960
|
+
type=type_,
|
|
1958
1961
|
)
|
|
1959
1962
|
|
|
1960
1963
|
req = self._build_request(
|
|
@@ -2038,6 +2041,7 @@ class Library(BaseSDK):
|
|
|
2038
2041
|
self,
|
|
2039
2042
|
*,
|
|
2040
2043
|
section_key: int,
|
|
2044
|
+
type_: operations.GetGenresLibraryQueryParamType,
|
|
2041
2045
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2042
2046
|
server_url: Optional[str] = None,
|
|
2043
2047
|
timeout_ms: Optional[int] = None,
|
|
@@ -2049,6 +2053,7 @@ class Library(BaseSDK):
|
|
|
2049
2053
|
|
|
2050
2054
|
|
|
2051
2055
|
:param section_key: The unique key of the Plex library. Note: This is unique in the context of the Plex server.
|
|
2056
|
+
:param type: The type of media to retrieve or filter by. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
|
2052
2057
|
:param retries: Override the default retry configuration for this method
|
|
2053
2058
|
:param server_url: Override the default server URL for this method
|
|
2054
2059
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -2064,6 +2069,7 @@ class Library(BaseSDK):
|
|
|
2064
2069
|
|
|
2065
2070
|
request = operations.GetGenresLibraryRequest(
|
|
2066
2071
|
section_key=section_key,
|
|
2072
|
+
type=type_,
|
|
2067
2073
|
)
|
|
2068
2074
|
|
|
2069
2075
|
req = self._build_request_async(
|
|
@@ -2147,6 +2153,7 @@ class Library(BaseSDK):
|
|
|
2147
2153
|
self,
|
|
2148
2154
|
*,
|
|
2149
2155
|
section_key: int,
|
|
2156
|
+
type_: operations.GetCountriesLibraryQueryParamType,
|
|
2150
2157
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2151
2158
|
server_url: Optional[str] = None,
|
|
2152
2159
|
timeout_ms: Optional[int] = None,
|
|
@@ -2158,6 +2165,7 @@ class Library(BaseSDK):
|
|
|
2158
2165
|
|
|
2159
2166
|
|
|
2160
2167
|
:param section_key: The unique key of the Plex library. Note: This is unique in the context of the Plex server.
|
|
2168
|
+
:param type: The type of media to retrieve or filter by. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
|
2161
2169
|
:param retries: Override the default retry configuration for this method
|
|
2162
2170
|
:param server_url: Override the default server URL for this method
|
|
2163
2171
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -2173,6 +2181,7 @@ class Library(BaseSDK):
|
|
|
2173
2181
|
|
|
2174
2182
|
request = operations.GetCountriesLibraryRequest(
|
|
2175
2183
|
section_key=section_key,
|
|
2184
|
+
type=type_,
|
|
2176
2185
|
)
|
|
2177
2186
|
|
|
2178
2187
|
req = self._build_request(
|
|
@@ -2256,6 +2265,7 @@ class Library(BaseSDK):
|
|
|
2256
2265
|
self,
|
|
2257
2266
|
*,
|
|
2258
2267
|
section_key: int,
|
|
2268
|
+
type_: operations.GetCountriesLibraryQueryParamType,
|
|
2259
2269
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2260
2270
|
server_url: Optional[str] = None,
|
|
2261
2271
|
timeout_ms: Optional[int] = None,
|
|
@@ -2267,6 +2277,7 @@ class Library(BaseSDK):
|
|
|
2267
2277
|
|
|
2268
2278
|
|
|
2269
2279
|
:param section_key: The unique key of the Plex library. Note: This is unique in the context of the Plex server.
|
|
2280
|
+
:param type: The type of media to retrieve or filter by. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
|
2270
2281
|
:param retries: Override the default retry configuration for this method
|
|
2271
2282
|
:param server_url: Override the default server URL for this method
|
|
2272
2283
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -2282,6 +2293,7 @@ class Library(BaseSDK):
|
|
|
2282
2293
|
|
|
2283
2294
|
request = operations.GetCountriesLibraryRequest(
|
|
2284
2295
|
section_key=section_key,
|
|
2296
|
+
type=type_,
|
|
2285
2297
|
)
|
|
2286
2298
|
|
|
2287
2299
|
req = self._build_request_async(
|
|
@@ -2361,6 +2373,230 @@ class Library(BaseSDK):
|
|
|
2361
2373
|
http_res,
|
|
2362
2374
|
)
|
|
2363
2375
|
|
|
2376
|
+
def get_actors_library(
|
|
2377
|
+
self,
|
|
2378
|
+
*,
|
|
2379
|
+
section_key: int,
|
|
2380
|
+
type_: operations.GetActorsLibraryQueryParamType,
|
|
2381
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2382
|
+
server_url: Optional[str] = None,
|
|
2383
|
+
timeout_ms: Optional[int] = None,
|
|
2384
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
2385
|
+
) -> operations.GetActorsLibraryResponse:
|
|
2386
|
+
r"""Get Actors of library media
|
|
2387
|
+
|
|
2388
|
+
Retrieves a list of all the actors that are found for the media in this library.
|
|
2389
|
+
|
|
2390
|
+
|
|
2391
|
+
:param section_key: The unique key of the Plex library. Note: This is unique in the context of the Plex server.
|
|
2392
|
+
:param type: The type of media to retrieve or filter by. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
|
2393
|
+
:param retries: Override the default retry configuration for this method
|
|
2394
|
+
:param server_url: Override the default server URL for this method
|
|
2395
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
2396
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
2397
|
+
"""
|
|
2398
|
+
base_url = None
|
|
2399
|
+
url_variables = None
|
|
2400
|
+
if timeout_ms is None:
|
|
2401
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
2402
|
+
|
|
2403
|
+
if server_url is not None:
|
|
2404
|
+
base_url = server_url
|
|
2405
|
+
|
|
2406
|
+
request = operations.GetActorsLibraryRequest(
|
|
2407
|
+
section_key=section_key,
|
|
2408
|
+
type=type_,
|
|
2409
|
+
)
|
|
2410
|
+
|
|
2411
|
+
req = self._build_request(
|
|
2412
|
+
method="GET",
|
|
2413
|
+
path="/library/sections/{sectionKey}/actor",
|
|
2414
|
+
base_url=base_url,
|
|
2415
|
+
url_variables=url_variables,
|
|
2416
|
+
request=request,
|
|
2417
|
+
request_body_required=False,
|
|
2418
|
+
request_has_path_params=True,
|
|
2419
|
+
request_has_query_params=True,
|
|
2420
|
+
user_agent_header="user-agent",
|
|
2421
|
+
accept_header_value="application/json",
|
|
2422
|
+
http_headers=http_headers,
|
|
2423
|
+
security=self.sdk_configuration.security,
|
|
2424
|
+
timeout_ms=timeout_ms,
|
|
2425
|
+
)
|
|
2426
|
+
|
|
2427
|
+
if retries == UNSET:
|
|
2428
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
2429
|
+
retries = self.sdk_configuration.retry_config
|
|
2430
|
+
|
|
2431
|
+
retry_config = None
|
|
2432
|
+
if isinstance(retries, utils.RetryConfig):
|
|
2433
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
2434
|
+
|
|
2435
|
+
http_res = self.do_request(
|
|
2436
|
+
hook_ctx=HookContext(
|
|
2437
|
+
operation_id="get-actors-library",
|
|
2438
|
+
oauth2_scopes=[],
|
|
2439
|
+
security_source=self.sdk_configuration.security,
|
|
2440
|
+
),
|
|
2441
|
+
request=req,
|
|
2442
|
+
error_status_codes=["400", "401", "404", "4XX", "5XX"],
|
|
2443
|
+
retry_config=retry_config,
|
|
2444
|
+
)
|
|
2445
|
+
|
|
2446
|
+
response_data: Any = None
|
|
2447
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
2448
|
+
return operations.GetActorsLibraryResponse(
|
|
2449
|
+
object=utils.unmarshal_json(
|
|
2450
|
+
http_res.text, Optional[operations.GetActorsLibraryResponseBody]
|
|
2451
|
+
),
|
|
2452
|
+
status_code=http_res.status_code,
|
|
2453
|
+
content_type=http_res.headers.get("Content-Type") or "",
|
|
2454
|
+
raw_response=http_res,
|
|
2455
|
+
)
|
|
2456
|
+
if utils.match_response(http_res, "400", "application/json"):
|
|
2457
|
+
response_data = utils.unmarshal_json(
|
|
2458
|
+
http_res.text, errors.GetActorsLibraryBadRequestData
|
|
2459
|
+
)
|
|
2460
|
+
response_data.raw_response = http_res
|
|
2461
|
+
raise errors.GetActorsLibraryBadRequest(data=response_data)
|
|
2462
|
+
if utils.match_response(http_res, "401", "application/json"):
|
|
2463
|
+
response_data = utils.unmarshal_json(
|
|
2464
|
+
http_res.text, errors.GetActorsLibraryUnauthorizedData
|
|
2465
|
+
)
|
|
2466
|
+
response_data.raw_response = http_res
|
|
2467
|
+
raise errors.GetActorsLibraryUnauthorized(data=response_data)
|
|
2468
|
+
if utils.match_response(http_res, ["404", "4XX"], "*"):
|
|
2469
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
2470
|
+
raise errors.SDKError(
|
|
2471
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
2472
|
+
)
|
|
2473
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
2474
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
2475
|
+
raise errors.SDKError(
|
|
2476
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
2477
|
+
)
|
|
2478
|
+
|
|
2479
|
+
content_type = http_res.headers.get("Content-Type")
|
|
2480
|
+
http_res_text = utils.stream_to_text(http_res)
|
|
2481
|
+
raise errors.SDKError(
|
|
2482
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
2483
|
+
http_res.status_code,
|
|
2484
|
+
http_res_text,
|
|
2485
|
+
http_res,
|
|
2486
|
+
)
|
|
2487
|
+
|
|
2488
|
+
async def get_actors_library_async(
|
|
2489
|
+
self,
|
|
2490
|
+
*,
|
|
2491
|
+
section_key: int,
|
|
2492
|
+
type_: operations.GetActorsLibraryQueryParamType,
|
|
2493
|
+
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2494
|
+
server_url: Optional[str] = None,
|
|
2495
|
+
timeout_ms: Optional[int] = None,
|
|
2496
|
+
http_headers: Optional[Mapping[str, str]] = None,
|
|
2497
|
+
) -> operations.GetActorsLibraryResponse:
|
|
2498
|
+
r"""Get Actors of library media
|
|
2499
|
+
|
|
2500
|
+
Retrieves a list of all the actors that are found for the media in this library.
|
|
2501
|
+
|
|
2502
|
+
|
|
2503
|
+
:param section_key: The unique key of the Plex library. Note: This is unique in the context of the Plex server.
|
|
2504
|
+
:param type: The type of media to retrieve or filter by. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
|
2505
|
+
:param retries: Override the default retry configuration for this method
|
|
2506
|
+
:param server_url: Override the default server URL for this method
|
|
2507
|
+
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
2508
|
+
:param http_headers: Additional headers to set or replace on requests.
|
|
2509
|
+
"""
|
|
2510
|
+
base_url = None
|
|
2511
|
+
url_variables = None
|
|
2512
|
+
if timeout_ms is None:
|
|
2513
|
+
timeout_ms = self.sdk_configuration.timeout_ms
|
|
2514
|
+
|
|
2515
|
+
if server_url is not None:
|
|
2516
|
+
base_url = server_url
|
|
2517
|
+
|
|
2518
|
+
request = operations.GetActorsLibraryRequest(
|
|
2519
|
+
section_key=section_key,
|
|
2520
|
+
type=type_,
|
|
2521
|
+
)
|
|
2522
|
+
|
|
2523
|
+
req = self._build_request_async(
|
|
2524
|
+
method="GET",
|
|
2525
|
+
path="/library/sections/{sectionKey}/actor",
|
|
2526
|
+
base_url=base_url,
|
|
2527
|
+
url_variables=url_variables,
|
|
2528
|
+
request=request,
|
|
2529
|
+
request_body_required=False,
|
|
2530
|
+
request_has_path_params=True,
|
|
2531
|
+
request_has_query_params=True,
|
|
2532
|
+
user_agent_header="user-agent",
|
|
2533
|
+
accept_header_value="application/json",
|
|
2534
|
+
http_headers=http_headers,
|
|
2535
|
+
security=self.sdk_configuration.security,
|
|
2536
|
+
timeout_ms=timeout_ms,
|
|
2537
|
+
)
|
|
2538
|
+
|
|
2539
|
+
if retries == UNSET:
|
|
2540
|
+
if self.sdk_configuration.retry_config is not UNSET:
|
|
2541
|
+
retries = self.sdk_configuration.retry_config
|
|
2542
|
+
|
|
2543
|
+
retry_config = None
|
|
2544
|
+
if isinstance(retries, utils.RetryConfig):
|
|
2545
|
+
retry_config = (retries, ["429", "500", "502", "503", "504"])
|
|
2546
|
+
|
|
2547
|
+
http_res = await self.do_request_async(
|
|
2548
|
+
hook_ctx=HookContext(
|
|
2549
|
+
operation_id="get-actors-library",
|
|
2550
|
+
oauth2_scopes=[],
|
|
2551
|
+
security_source=self.sdk_configuration.security,
|
|
2552
|
+
),
|
|
2553
|
+
request=req,
|
|
2554
|
+
error_status_codes=["400", "401", "404", "4XX", "5XX"],
|
|
2555
|
+
retry_config=retry_config,
|
|
2556
|
+
)
|
|
2557
|
+
|
|
2558
|
+
response_data: Any = None
|
|
2559
|
+
if utils.match_response(http_res, "200", "application/json"):
|
|
2560
|
+
return operations.GetActorsLibraryResponse(
|
|
2561
|
+
object=utils.unmarshal_json(
|
|
2562
|
+
http_res.text, Optional[operations.GetActorsLibraryResponseBody]
|
|
2563
|
+
),
|
|
2564
|
+
status_code=http_res.status_code,
|
|
2565
|
+
content_type=http_res.headers.get("Content-Type") or "",
|
|
2566
|
+
raw_response=http_res,
|
|
2567
|
+
)
|
|
2568
|
+
if utils.match_response(http_res, "400", "application/json"):
|
|
2569
|
+
response_data = utils.unmarshal_json(
|
|
2570
|
+
http_res.text, errors.GetActorsLibraryBadRequestData
|
|
2571
|
+
)
|
|
2572
|
+
response_data.raw_response = http_res
|
|
2573
|
+
raise errors.GetActorsLibraryBadRequest(data=response_data)
|
|
2574
|
+
if utils.match_response(http_res, "401", "application/json"):
|
|
2575
|
+
response_data = utils.unmarshal_json(
|
|
2576
|
+
http_res.text, errors.GetActorsLibraryUnauthorizedData
|
|
2577
|
+
)
|
|
2578
|
+
response_data.raw_response = http_res
|
|
2579
|
+
raise errors.GetActorsLibraryUnauthorized(data=response_data)
|
|
2580
|
+
if utils.match_response(http_res, ["404", "4XX"], "*"):
|
|
2581
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
2582
|
+
raise errors.SDKError(
|
|
2583
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
2584
|
+
)
|
|
2585
|
+
if utils.match_response(http_res, "5XX", "*"):
|
|
2586
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
2587
|
+
raise errors.SDKError(
|
|
2588
|
+
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
2589
|
+
)
|
|
2590
|
+
|
|
2591
|
+
content_type = http_res.headers.get("Content-Type")
|
|
2592
|
+
http_res_text = await utils.stream_to_text_async(http_res)
|
|
2593
|
+
raise errors.SDKError(
|
|
2594
|
+
f"Unexpected response received (code: {http_res.status_code}, type: {content_type})",
|
|
2595
|
+
http_res.status_code,
|
|
2596
|
+
http_res_text,
|
|
2597
|
+
http_res,
|
|
2598
|
+
)
|
|
2599
|
+
|
|
2364
2600
|
def get_search_all_libraries(
|
|
2365
2601
|
self,
|
|
2366
2602
|
*,
|
|
@@ -2587,21 +2823,24 @@ class Library(BaseSDK):
|
|
|
2587
2823
|
http_res,
|
|
2588
2824
|
)
|
|
2589
2825
|
|
|
2590
|
-
def
|
|
2826
|
+
def get_media_meta_data(
|
|
2591
2827
|
self,
|
|
2592
2828
|
*,
|
|
2593
|
-
|
|
2829
|
+
request: Union[
|
|
2830
|
+
operations.GetMediaMetaDataRequest,
|
|
2831
|
+
operations.GetMediaMetaDataRequestTypedDict,
|
|
2832
|
+
],
|
|
2594
2833
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2595
2834
|
server_url: Optional[str] = None,
|
|
2596
2835
|
timeout_ms: Optional[int] = None,
|
|
2597
2836
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2598
|
-
) -> operations.
|
|
2599
|
-
r"""Get Metadata
|
|
2837
|
+
) -> operations.GetMediaMetaDataResponse:
|
|
2838
|
+
r"""Get Media Metadata
|
|
2600
2839
|
|
|
2601
|
-
This endpoint will return the
|
|
2840
|
+
This endpoint will return all the (meta)data of a library item specified with by the ratingKey.
|
|
2602
2841
|
|
|
2603
2842
|
|
|
2604
|
-
:param
|
|
2843
|
+
:param request: The request object to send.
|
|
2605
2844
|
:param retries: Override the default retry configuration for this method
|
|
2606
2845
|
:param server_url: Override the default server URL for this method
|
|
2607
2846
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -2615,9 +2854,9 @@ class Library(BaseSDK):
|
|
|
2615
2854
|
if server_url is not None:
|
|
2616
2855
|
base_url = server_url
|
|
2617
2856
|
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
)
|
|
2857
|
+
if not isinstance(request, BaseModel):
|
|
2858
|
+
request = utils.unmarshal(request, operations.GetMediaMetaDataRequest)
|
|
2859
|
+
request = cast(operations.GetMediaMetaDataRequest, request)
|
|
2621
2860
|
|
|
2622
2861
|
req = self._build_request(
|
|
2623
2862
|
method="GET",
|
|
@@ -2645,21 +2884,20 @@ class Library(BaseSDK):
|
|
|
2645
2884
|
|
|
2646
2885
|
http_res = self.do_request(
|
|
2647
2886
|
hook_ctx=HookContext(
|
|
2648
|
-
operation_id="get-meta-data
|
|
2887
|
+
operation_id="get-media-meta-data",
|
|
2649
2888
|
oauth2_scopes=[],
|
|
2650
2889
|
security_source=self.sdk_configuration.security,
|
|
2651
2890
|
),
|
|
2652
2891
|
request=req,
|
|
2653
|
-
error_status_codes=["400", "401", "4XX", "5XX"],
|
|
2892
|
+
error_status_codes=["400", "401", "404", "4XX", "5XX"],
|
|
2654
2893
|
retry_config=retry_config,
|
|
2655
2894
|
)
|
|
2656
2895
|
|
|
2657
2896
|
response_data: Any = None
|
|
2658
2897
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2659
|
-
return operations.
|
|
2898
|
+
return operations.GetMediaMetaDataResponse(
|
|
2660
2899
|
object=utils.unmarshal_json(
|
|
2661
|
-
http_res.text,
|
|
2662
|
-
Optional[operations.GetMetaDataByRatingKeyResponseBody],
|
|
2900
|
+
http_res.text, Optional[operations.GetMediaMetaDataResponseBody]
|
|
2663
2901
|
),
|
|
2664
2902
|
status_code=http_res.status_code,
|
|
2665
2903
|
content_type=http_res.headers.get("Content-Type") or "",
|
|
@@ -2667,17 +2905,17 @@ class Library(BaseSDK):
|
|
|
2667
2905
|
)
|
|
2668
2906
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2669
2907
|
response_data = utils.unmarshal_json(
|
|
2670
|
-
http_res.text, errors.
|
|
2908
|
+
http_res.text, errors.GetMediaMetaDataBadRequestData
|
|
2671
2909
|
)
|
|
2672
2910
|
response_data.raw_response = http_res
|
|
2673
|
-
raise errors.
|
|
2911
|
+
raise errors.GetMediaMetaDataBadRequest(data=response_data)
|
|
2674
2912
|
if utils.match_response(http_res, "401", "application/json"):
|
|
2675
2913
|
response_data = utils.unmarshal_json(
|
|
2676
|
-
http_res.text, errors.
|
|
2914
|
+
http_res.text, errors.GetMediaMetaDataUnauthorizedData
|
|
2677
2915
|
)
|
|
2678
2916
|
response_data.raw_response = http_res
|
|
2679
|
-
raise errors.
|
|
2680
|
-
if utils.match_response(http_res, "4XX", "*"):
|
|
2917
|
+
raise errors.GetMediaMetaDataUnauthorized(data=response_data)
|
|
2918
|
+
if utils.match_response(http_res, ["404", "4XX"], "*"):
|
|
2681
2919
|
http_res_text = utils.stream_to_text(http_res)
|
|
2682
2920
|
raise errors.SDKError(
|
|
2683
2921
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
@@ -2697,21 +2935,24 @@ class Library(BaseSDK):
|
|
|
2697
2935
|
http_res,
|
|
2698
2936
|
)
|
|
2699
2937
|
|
|
2700
|
-
async def
|
|
2938
|
+
async def get_media_meta_data_async(
|
|
2701
2939
|
self,
|
|
2702
2940
|
*,
|
|
2703
|
-
|
|
2941
|
+
request: Union[
|
|
2942
|
+
operations.GetMediaMetaDataRequest,
|
|
2943
|
+
operations.GetMediaMetaDataRequestTypedDict,
|
|
2944
|
+
],
|
|
2704
2945
|
retries: OptionalNullable[utils.RetryConfig] = UNSET,
|
|
2705
2946
|
server_url: Optional[str] = None,
|
|
2706
2947
|
timeout_ms: Optional[int] = None,
|
|
2707
2948
|
http_headers: Optional[Mapping[str, str]] = None,
|
|
2708
|
-
) -> operations.
|
|
2709
|
-
r"""Get Metadata
|
|
2949
|
+
) -> operations.GetMediaMetaDataResponse:
|
|
2950
|
+
r"""Get Media Metadata
|
|
2710
2951
|
|
|
2711
|
-
This endpoint will return the
|
|
2952
|
+
This endpoint will return all the (meta)data of a library item specified with by the ratingKey.
|
|
2712
2953
|
|
|
2713
2954
|
|
|
2714
|
-
:param
|
|
2955
|
+
:param request: The request object to send.
|
|
2715
2956
|
:param retries: Override the default retry configuration for this method
|
|
2716
2957
|
:param server_url: Override the default server URL for this method
|
|
2717
2958
|
:param timeout_ms: Override the default request timeout configuration for this method in milliseconds
|
|
@@ -2725,9 +2966,9 @@ class Library(BaseSDK):
|
|
|
2725
2966
|
if server_url is not None:
|
|
2726
2967
|
base_url = server_url
|
|
2727
2968
|
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
)
|
|
2969
|
+
if not isinstance(request, BaseModel):
|
|
2970
|
+
request = utils.unmarshal(request, operations.GetMediaMetaDataRequest)
|
|
2971
|
+
request = cast(operations.GetMediaMetaDataRequest, request)
|
|
2731
2972
|
|
|
2732
2973
|
req = self._build_request_async(
|
|
2733
2974
|
method="GET",
|
|
@@ -2755,21 +2996,20 @@ class Library(BaseSDK):
|
|
|
2755
2996
|
|
|
2756
2997
|
http_res = await self.do_request_async(
|
|
2757
2998
|
hook_ctx=HookContext(
|
|
2758
|
-
operation_id="get-meta-data
|
|
2999
|
+
operation_id="get-media-meta-data",
|
|
2759
3000
|
oauth2_scopes=[],
|
|
2760
3001
|
security_source=self.sdk_configuration.security,
|
|
2761
3002
|
),
|
|
2762
3003
|
request=req,
|
|
2763
|
-
error_status_codes=["400", "401", "4XX", "5XX"],
|
|
3004
|
+
error_status_codes=["400", "401", "404", "4XX", "5XX"],
|
|
2764
3005
|
retry_config=retry_config,
|
|
2765
3006
|
)
|
|
2766
3007
|
|
|
2767
3008
|
response_data: Any = None
|
|
2768
3009
|
if utils.match_response(http_res, "200", "application/json"):
|
|
2769
|
-
return operations.
|
|
3010
|
+
return operations.GetMediaMetaDataResponse(
|
|
2770
3011
|
object=utils.unmarshal_json(
|
|
2771
|
-
http_res.text,
|
|
2772
|
-
Optional[operations.GetMetaDataByRatingKeyResponseBody],
|
|
3012
|
+
http_res.text, Optional[operations.GetMediaMetaDataResponseBody]
|
|
2773
3013
|
),
|
|
2774
3014
|
status_code=http_res.status_code,
|
|
2775
3015
|
content_type=http_res.headers.get("Content-Type") or "",
|
|
@@ -2777,17 +3017,17 @@ class Library(BaseSDK):
|
|
|
2777
3017
|
)
|
|
2778
3018
|
if utils.match_response(http_res, "400", "application/json"):
|
|
2779
3019
|
response_data = utils.unmarshal_json(
|
|
2780
|
-
http_res.text, errors.
|
|
3020
|
+
http_res.text, errors.GetMediaMetaDataBadRequestData
|
|
2781
3021
|
)
|
|
2782
3022
|
response_data.raw_response = http_res
|
|
2783
|
-
raise errors.
|
|
3023
|
+
raise errors.GetMediaMetaDataBadRequest(data=response_data)
|
|
2784
3024
|
if utils.match_response(http_res, "401", "application/json"):
|
|
2785
3025
|
response_data = utils.unmarshal_json(
|
|
2786
|
-
http_res.text, errors.
|
|
3026
|
+
http_res.text, errors.GetMediaMetaDataUnauthorizedData
|
|
2787
3027
|
)
|
|
2788
3028
|
response_data.raw_response = http_res
|
|
2789
|
-
raise errors.
|
|
2790
|
-
if utils.match_response(http_res, "4XX", "*"):
|
|
3029
|
+
raise errors.GetMediaMetaDataUnauthorized(data=response_data)
|
|
3030
|
+
if utils.match_response(http_res, ["404", "4XX"], "*"):
|
|
2791
3031
|
http_res_text = await utils.stream_to_text_async(http_res)
|
|
2792
3032
|
raise errors.SDKError(
|
|
2793
3033
|
"API error occurred", http_res.status_code, http_res_text, http_res
|
|
@@ -3046,7 +3286,7 @@ class Library(BaseSDK):
|
|
|
3046
3286
|
This endpoint will return the top watched content from libraries of a certain type
|
|
3047
3287
|
|
|
3048
3288
|
|
|
3049
|
-
:param type: The type of media to retrieve. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
|
3289
|
+
:param type: The type of media to retrieve or filter by. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
|
3050
3290
|
:param include_guids: Adds the Guids object to the response
|
|
3051
3291
|
:param retries: Override the default retry configuration for this method
|
|
3052
3292
|
:param server_url: Override the default server URL for this method
|
|
@@ -3158,7 +3398,7 @@ class Library(BaseSDK):
|
|
|
3158
3398
|
This endpoint will return the top watched content from libraries of a certain type
|
|
3159
3399
|
|
|
3160
3400
|
|
|
3161
|
-
:param type: The type of media to retrieve. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
|
3401
|
+
:param type: The type of media to retrieve or filter by. 1 = movie 2 = show 3 = season 4 = episode E.g. A movie library will not return anything with type 3 as there are no seasons for movie libraries
|
|
3162
3402
|
:param include_guids: Adds the Guids object to the response
|
|
3163
3403
|
:param retries: Override the default retry configuration for this method
|
|
3164
3404
|
:param server_url: Override the default server URL for this method
|