plex-api-client 0.6.5__tar.gz → 0.7.0__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.6.5 → plex-api-client-0.7.0}/PKG-INFO +2 -10
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/README.md +1 -9
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/setup.py +1 -1
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/activities.py +3 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/authentication.py +2 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/butler.py +6 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/hubs.py +4 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/library.py +16 -80
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/log.py +3 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/media.py +3 -0
- plex-api-client-0.7.0/src/plex_api/models/operations/__init__.py +63 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/playlists.py +14 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/plex.py +3 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/sdkconfiguration.py +3 -3
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/search.py +4 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/server.py +15 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/sessions.py +7 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/statistics.py +2 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/updater.py +4 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/utils/utils.py +27 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/video.py +2 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api_client.egg-info/PKG-INFO +2 -10
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api_client.egg-info/SOURCES.txt +0 -1
- plex-api-client-0.6.5/src/plex_api/models/operations/__init__.py +0 -64
- plex-api-client-0.6.5/src/plex_api/models/operations/getlibraryitems.py +0 -227
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/LICENSE.md +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/setup.cfg +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/__init__.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/_hooks/__init__.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/_hooks/registration.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/_hooks/sdkhooks.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/_hooks/types.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/__init__.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/components/__init__.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/components/security.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/__init__.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/addplaylistcontents.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/applyupdates.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/cancelserveractivities.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/checkforupdates.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/clearplaylistcontents.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/createplaylist.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/deletelibrary.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/deleteplaylist.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/enablepapertrail.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getavailableclients.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getbutlertasks.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getdevices.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getfilehash.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getglobalhubs.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getlibraries.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getlibrary.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getlibraryhubs.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getmetadata.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getmetadatachildren.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getmyplexaccount.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getondeck.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getpin.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getplaylist.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getplaylistcontents.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getplaylists.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getrecentlyadded.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getresizedphoto.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getsearchresults.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getserveractivities.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getservercapabilities.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getserveridentity.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getserverlist.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getserverpreferences.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getsessionhistory.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getsessions.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getsourceconnectioninformation.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getstatistics.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/gettimeline.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/gettoken.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/gettranscodesessions.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/gettransienttoken.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/getupdatestatus.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/logline.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/logmultiline.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/markplayed.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/markunplayed.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/performsearch.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/performvoicesearch.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/refreshlibrary.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/sdkerror.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/startalltasks.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/starttask.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/startuniversaltranscode.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/stopalltasks.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/stoptask.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/stoptranscodesession.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/updateplaylist.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/updateplayprogress.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/errors/uploadplaylist.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/internal/__init__.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/internal/globals.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/addplaylistcontents.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/applyupdates.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/cancelserveractivities.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/checkforupdates.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/clearplaylistcontents.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/createplaylist.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/deletelibrary.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/deleteplaylist.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/enablepapertrail.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getavailableclients.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getbutlertasks.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getdevices.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getfilehash.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getglobalhubs.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getlibraries.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getlibrary.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getlibraryhubs.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getmetadata.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getmetadatachildren.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getmyplexaccount.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getondeck.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getpin.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getplaylist.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getplaylistcontents.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getplaylists.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getrecentlyadded.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getresizedphoto.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getsearchresults.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getserveractivities.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getservercapabilities.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getserveridentity.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getserverlist.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getserverpreferences.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getsessionhistory.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getsessions.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getsourceconnectioninformation.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getstatistics.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/gettimeline.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/gettoken.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/gettranscodesessions.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/gettransienttoken.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/getupdatestatus.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/logline.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/logmultiline.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/markplayed.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/markunplayed.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/performsearch.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/performvoicesearch.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/refreshlibrary.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/searchlibrary.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/startalltasks.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/starttask.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/startuniversaltranscode.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/stopalltasks.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/stoptask.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/stoptranscodesession.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/updateplaylist.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/updateplayprogress.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/models/operations/uploadplaylist.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/sdk.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/utils/__init__.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api/utils/retries.py +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api_client.egg-info/dependency_links.txt +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api_client.egg-info/requires.txt +0 -0
- {plex-api-client-0.6.5 → plex-api-client-0.7.0}/src/plex_api_client.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: plex-api-client
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.7.0
|
|
4
4
|
Summary: Python Client SDK Generated by Speakeasy
|
|
5
5
|
Home-page: https://github.com/LukeHagar/plexpy.git
|
|
6
6
|
Author: LukeHagar
|
|
@@ -35,7 +35,6 @@ Description: # plexpy
|
|
|
35
35
|
x_plex_client_identifier='Postman',
|
|
36
36
|
)
|
|
37
37
|
|
|
38
|
-
|
|
39
38
|
res = s.server.get_server_capabilities()
|
|
40
39
|
|
|
41
40
|
if res.object is not None:
|
|
@@ -101,7 +100,6 @@ Description: # plexpy
|
|
|
101
100
|
* [get_libraries](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_libraries) - Get All Libraries
|
|
102
101
|
* [get_library](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_library) - Get Library Details
|
|
103
102
|
* [delete_library](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#delete_library) - Delete Library Section
|
|
104
|
-
* [get_library_items](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_library_items) - Get Library Items
|
|
105
103
|
* [refresh_library](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#refresh_library) - Refresh Library
|
|
106
104
|
* [search_library](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#search_library) - Search Library
|
|
107
105
|
* [get_metadata](https://github.com/LukeHagar/plexpy/blob/master/docs/sdks/library/README.md#get_metadata) - Get Items Metadata
|
|
@@ -175,7 +173,6 @@ Description: # plexpy
|
|
|
175
173
|
x_plex_client_identifier='Postman',
|
|
176
174
|
)
|
|
177
175
|
|
|
178
|
-
|
|
179
176
|
res = None
|
|
180
177
|
try:
|
|
181
178
|
res = s.server.get_server_capabilities()
|
|
@@ -215,7 +212,6 @@ Description: # plexpy
|
|
|
215
212
|
x_plex_client_identifier='Postman',
|
|
216
213
|
)
|
|
217
214
|
|
|
218
|
-
|
|
219
215
|
res = s.server.get_server_capabilities()
|
|
220
216
|
|
|
221
217
|
if res.object is not None:
|
|
@@ -243,7 +239,6 @@ Description: # plexpy
|
|
|
243
239
|
x_plex_client_identifier='Postman',
|
|
244
240
|
)
|
|
245
241
|
|
|
246
|
-
|
|
247
242
|
res = s.server.get_server_capabilities()
|
|
248
243
|
|
|
249
244
|
if res.object is not None:
|
|
@@ -262,8 +257,7 @@ Description: # plexpy
|
|
|
262
257
|
x_plex_client_identifier='Postman',
|
|
263
258
|
)
|
|
264
259
|
|
|
265
|
-
|
|
266
|
-
res = s.plex.get_pin(server_url="https://plex.tv/api/v2", strong=False, x_plex_client_identifier='Postman')
|
|
260
|
+
res = s.plex.get_pin(strong=False, x_plex_client_identifier='Postman', server_url="https://plex.tv/api/v2")
|
|
267
261
|
|
|
268
262
|
if res.object is not None:
|
|
269
263
|
# handle response
|
|
@@ -308,7 +302,6 @@ Description: # plexpy
|
|
|
308
302
|
x_plex_client_identifier='Postman',
|
|
309
303
|
)
|
|
310
304
|
|
|
311
|
-
|
|
312
305
|
res = s.server.get_server_capabilities()
|
|
313
306
|
|
|
314
307
|
if res.object is not None:
|
|
@@ -347,7 +340,6 @@ Description: # plexpy
|
|
|
347
340
|
x_plex_client_identifier='Postman',
|
|
348
341
|
)
|
|
349
342
|
|
|
350
|
-
|
|
351
343
|
res = s.plex.get_pin(strong=False, x_plex_client_identifier='Postman')
|
|
352
344
|
|
|
353
345
|
if res.object is not None:
|
|
@@ -28,7 +28,6 @@ s = plex_api.PlexAPI(
|
|
|
28
28
|
x_plex_client_identifier='Postman',
|
|
29
29
|
)
|
|
30
30
|
|
|
31
|
-
|
|
32
31
|
res = s.server.get_server_capabilities()
|
|
33
32
|
|
|
34
33
|
if res.object is not None:
|
|
@@ -94,7 +93,6 @@ if res.object is not None:
|
|
|
94
93
|
* [get_libraries](docs/sdks/library/README.md#get_libraries) - Get All Libraries
|
|
95
94
|
* [get_library](docs/sdks/library/README.md#get_library) - Get Library Details
|
|
96
95
|
* [delete_library](docs/sdks/library/README.md#delete_library) - Delete Library Section
|
|
97
|
-
* [get_library_items](docs/sdks/library/README.md#get_library_items) - Get Library Items
|
|
98
96
|
* [refresh_library](docs/sdks/library/README.md#refresh_library) - Refresh Library
|
|
99
97
|
* [search_library](docs/sdks/library/README.md#search_library) - Search Library
|
|
100
98
|
* [get_metadata](docs/sdks/library/README.md#get_metadata) - Get Items Metadata
|
|
@@ -168,7 +166,6 @@ s = plex_api.PlexAPI(
|
|
|
168
166
|
x_plex_client_identifier='Postman',
|
|
169
167
|
)
|
|
170
168
|
|
|
171
|
-
|
|
172
169
|
res = None
|
|
173
170
|
try:
|
|
174
171
|
res = s.server.get_server_capabilities()
|
|
@@ -208,7 +205,6 @@ s = plex_api.PlexAPI(
|
|
|
208
205
|
x_plex_client_identifier='Postman',
|
|
209
206
|
)
|
|
210
207
|
|
|
211
|
-
|
|
212
208
|
res = s.server.get_server_capabilities()
|
|
213
209
|
|
|
214
210
|
if res.object is not None:
|
|
@@ -236,7 +232,6 @@ s = plex_api.PlexAPI(
|
|
|
236
232
|
x_plex_client_identifier='Postman',
|
|
237
233
|
)
|
|
238
234
|
|
|
239
|
-
|
|
240
235
|
res = s.server.get_server_capabilities()
|
|
241
236
|
|
|
242
237
|
if res.object is not None:
|
|
@@ -255,8 +250,7 @@ s = plex_api.PlexAPI(
|
|
|
255
250
|
x_plex_client_identifier='Postman',
|
|
256
251
|
)
|
|
257
252
|
|
|
258
|
-
|
|
259
|
-
res = s.plex.get_pin(server_url="https://plex.tv/api/v2", strong=False, x_plex_client_identifier='Postman')
|
|
253
|
+
res = s.plex.get_pin(strong=False, x_plex_client_identifier='Postman', server_url="https://plex.tv/api/v2")
|
|
260
254
|
|
|
261
255
|
if res.object is not None:
|
|
262
256
|
# handle response
|
|
@@ -301,7 +295,6 @@ s = plex_api.PlexAPI(
|
|
|
301
295
|
x_plex_client_identifier='Postman',
|
|
302
296
|
)
|
|
303
297
|
|
|
304
|
-
|
|
305
298
|
res = s.server.get_server_capabilities()
|
|
306
299
|
|
|
307
300
|
if res.object is not None:
|
|
@@ -340,7 +333,6 @@ s = plex_api.PlexAPI(
|
|
|
340
333
|
x_plex_client_identifier='Postman',
|
|
341
334
|
)
|
|
342
335
|
|
|
343
|
-
|
|
344
336
|
res = s.plex.get_pin(strong=False, x_plex_client_identifier='Postman')
|
|
345
337
|
|
|
346
338
|
if res.object is not None:
|
|
@@ -64,6 +64,7 @@ class Activities:
|
|
|
64
64
|
res = operations.GetServerActivitiesResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
|
|
65
65
|
|
|
66
66
|
if http_res.status_code == 200:
|
|
67
|
+
# pylint: disable=no-else-return
|
|
67
68
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
68
69
|
out = utils.unmarshal_json(http_res.text, Optional[operations.GetServerActivitiesResponseBody])
|
|
69
70
|
res.object = out
|
|
@@ -73,6 +74,7 @@ class Activities:
|
|
|
73
74
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
74
75
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
75
76
|
elif http_res.status_code == 401:
|
|
77
|
+
# pylint: disable=no-else-return
|
|
76
78
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
77
79
|
out = utils.unmarshal_json(http_res.text, errors.GetServerActivitiesResponseBody)
|
|
78
80
|
out.raw_response = http_res
|
|
@@ -136,6 +138,7 @@ class Activities:
|
|
|
136
138
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
137
139
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
138
140
|
elif http_res.status_code == 401:
|
|
141
|
+
# pylint: disable=no-else-return
|
|
139
142
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
140
143
|
out = utils.unmarshal_json(http_res.text, errors.CancelServerActivitiesResponseBody)
|
|
141
144
|
out.raw_response = http_res
|
|
@@ -66,6 +66,7 @@ class Authentication:
|
|
|
66
66
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
67
67
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
68
68
|
elif http_res.status_code == 401:
|
|
69
|
+
# pylint: disable=no-else-return
|
|
69
70
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
70
71
|
out = utils.unmarshal_json(http_res.text, errors.GetTransientTokenResponseBody)
|
|
71
72
|
out.raw_response = http_res
|
|
@@ -131,6 +132,7 @@ class Authentication:
|
|
|
131
132
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
132
133
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
133
134
|
elif http_res.status_code == 401:
|
|
135
|
+
# pylint: disable=no-else-return
|
|
134
136
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
135
137
|
out = utils.unmarshal_json(http_res.text, errors.GetSourceConnectionInformationResponseBody)
|
|
136
138
|
out.raw_response = http_res
|
|
@@ -57,6 +57,7 @@ class Butler:
|
|
|
57
57
|
res = operations.GetButlerTasksResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
|
|
58
58
|
|
|
59
59
|
if http_res.status_code == 200:
|
|
60
|
+
# pylint: disable=no-else-return
|
|
60
61
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
61
62
|
out = utils.unmarshal_json(http_res.text, Optional[operations.GetButlerTasksResponseBody])
|
|
62
63
|
res.object = out
|
|
@@ -66,6 +67,7 @@ class Butler:
|
|
|
66
67
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
67
68
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
68
69
|
elif http_res.status_code == 401:
|
|
70
|
+
# pylint: disable=no-else-return
|
|
69
71
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
70
72
|
out = utils.unmarshal_json(http_res.text, errors.GetButlerTasksResponseBody)
|
|
71
73
|
out.raw_response = http_res
|
|
@@ -129,6 +131,7 @@ class Butler:
|
|
|
129
131
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
130
132
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
131
133
|
elif http_res.status_code == 401:
|
|
134
|
+
# pylint: disable=no-else-return
|
|
132
135
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
133
136
|
out = utils.unmarshal_json(http_res.text, errors.StartAllTasksResponseBody)
|
|
134
137
|
out.raw_response = http_res
|
|
@@ -188,6 +191,7 @@ class Butler:
|
|
|
188
191
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
189
192
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
190
193
|
elif http_res.status_code == 401:
|
|
194
|
+
# pylint: disable=no-else-return
|
|
191
195
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
192
196
|
out = utils.unmarshal_json(http_res.text, errors.StopAllTasksResponseBody)
|
|
193
197
|
out.raw_response = http_res
|
|
@@ -255,6 +259,7 @@ class Butler:
|
|
|
255
259
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
256
260
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
257
261
|
elif http_res.status_code == 401:
|
|
262
|
+
# pylint: disable=no-else-return
|
|
258
263
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
259
264
|
out = utils.unmarshal_json(http_res.text, errors.StartTaskResponseBody)
|
|
260
265
|
out.raw_response = http_res
|
|
@@ -318,6 +323,7 @@ class Butler:
|
|
|
318
323
|
elif http_res.status_code == 400 or http_res.status_code == 404 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
319
324
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
320
325
|
elif http_res.status_code == 401:
|
|
326
|
+
# pylint: disable=no-else-return
|
|
321
327
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
322
328
|
out = utils.unmarshal_json(http_res.text, errors.StopTaskResponseBody)
|
|
323
329
|
out.raw_response = http_res
|
|
@@ -63,6 +63,7 @@ class Hubs:
|
|
|
63
63
|
res = operations.GetGlobalHubsResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
|
|
64
64
|
|
|
65
65
|
if http_res.status_code == 200:
|
|
66
|
+
# pylint: disable=no-else-return
|
|
66
67
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
67
68
|
out = utils.unmarshal_json(http_res.text, Optional[operations.GetGlobalHubsResponseBody])
|
|
68
69
|
res.object = out
|
|
@@ -72,6 +73,7 @@ class Hubs:
|
|
|
72
73
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
73
74
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
74
75
|
elif http_res.status_code == 401:
|
|
76
|
+
# pylint: disable=no-else-return
|
|
75
77
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
76
78
|
out = utils.unmarshal_json(http_res.text, errors.GetGlobalHubsResponseBody)
|
|
77
79
|
out.raw_response = http_res
|
|
@@ -134,6 +136,7 @@ class Hubs:
|
|
|
134
136
|
res = operations.GetLibraryHubsResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
|
|
135
137
|
|
|
136
138
|
if http_res.status_code == 200:
|
|
139
|
+
# pylint: disable=no-else-return
|
|
137
140
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
138
141
|
out = utils.unmarshal_json(http_res.text, Optional[operations.GetLibraryHubsResponseBody])
|
|
139
142
|
res.object = out
|
|
@@ -143,6 +146,7 @@ class Hubs:
|
|
|
143
146
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
144
147
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
145
148
|
elif http_res.status_code == 401:
|
|
149
|
+
# pylint: disable=no-else-return
|
|
146
150
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
147
151
|
out = utils.unmarshal_json(http_res.text, errors.GetLibraryHubsResponseBody)
|
|
148
152
|
out.raw_response = http_res
|
|
@@ -67,6 +67,7 @@ class Library:
|
|
|
67
67
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
68
68
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
69
69
|
elif http_res.status_code == 401:
|
|
70
|
+
# pylint: disable=no-else-return
|
|
70
71
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
71
72
|
out = utils.unmarshal_json(http_res.text, errors.GetFileHashResponseBody)
|
|
72
73
|
out.raw_response = http_res
|
|
@@ -122,6 +123,7 @@ class Library:
|
|
|
122
123
|
res = operations.GetRecentlyAddedResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
|
|
123
124
|
|
|
124
125
|
if http_res.status_code == 200:
|
|
126
|
+
# pylint: disable=no-else-return
|
|
125
127
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
126
128
|
out = utils.unmarshal_json(http_res.text, Optional[operations.GetRecentlyAddedResponseBody])
|
|
127
129
|
res.object = out
|
|
@@ -131,6 +133,7 @@ class Library:
|
|
|
131
133
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
132
134
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
133
135
|
elif http_res.status_code == 401:
|
|
136
|
+
# pylint: disable=no-else-return
|
|
134
137
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
135
138
|
out = utils.unmarshal_json(http_res.text, errors.GetRecentlyAddedResponseBody)
|
|
136
139
|
out.raw_response = http_res
|
|
@@ -191,6 +194,7 @@ class Library:
|
|
|
191
194
|
res = operations.GetLibrariesResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
|
|
192
195
|
|
|
193
196
|
if http_res.status_code == 200:
|
|
197
|
+
# pylint: disable=no-else-return
|
|
194
198
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
195
199
|
out = utils.unmarshal_json(http_res.text, Optional[operations.GetLibrariesResponseBody])
|
|
196
200
|
res.object = out
|
|
@@ -200,6 +204,7 @@ class Library:
|
|
|
200
204
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
201
205
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
202
206
|
elif http_res.status_code == 401:
|
|
207
|
+
# pylint: disable=no-else-return
|
|
203
208
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
204
209
|
out = utils.unmarshal_json(http_res.text, errors.GetLibrariesResponseBody)
|
|
205
210
|
out.raw_response = http_res
|
|
@@ -299,6 +304,7 @@ class Library:
|
|
|
299
304
|
res = operations.GetLibraryResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
|
|
300
305
|
|
|
301
306
|
if http_res.status_code == 200:
|
|
307
|
+
# pylint: disable=no-else-return
|
|
302
308
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
303
309
|
out = utils.unmarshal_json(http_res.text, Optional[operations.GetLibraryResponseBody])
|
|
304
310
|
res.object = out
|
|
@@ -308,6 +314,7 @@ class Library:
|
|
|
308
314
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
309
315
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
310
316
|
elif http_res.status_code == 401:
|
|
317
|
+
# pylint: disable=no-else-return
|
|
311
318
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
312
319
|
out = utils.unmarshal_json(http_res.text, errors.GetLibraryResponseBody)
|
|
313
320
|
out.raw_response = http_res
|
|
@@ -371,6 +378,7 @@ class Library:
|
|
|
371
378
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
372
379
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
373
380
|
elif http_res.status_code == 401:
|
|
381
|
+
# pylint: disable=no-else-return
|
|
374
382
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
375
383
|
out = utils.unmarshal_json(http_res.text, errors.DeleteLibraryResponseBody)
|
|
376
384
|
out.raw_response = http_res
|
|
@@ -385,86 +393,6 @@ class Library:
|
|
|
385
393
|
|
|
386
394
|
|
|
387
395
|
|
|
388
|
-
def get_library_items(self, section_id: int, tag: operations.Tag) -> operations.GetLibraryItemsResponse:
|
|
389
|
-
r"""Get Library Items
|
|
390
|
-
Fetches details from a specific section of the library identified by a section key and a tag. The tag parameter accepts the following values:
|
|
391
|
-
- `all`: All items in the section.
|
|
392
|
-
- `unwatched`: Items that have not been played.
|
|
393
|
-
- `newest`: Items that are recently released.
|
|
394
|
-
- `recentlyAdded`: Items that are recently added to the library.
|
|
395
|
-
- `recentlyViewed`: Items that were recently viewed.
|
|
396
|
-
- `onDeck`: Items to continue watching.
|
|
397
|
-
- `collection`: Items categorized by collection.
|
|
398
|
-
- `edition`: Items categorized by edition.
|
|
399
|
-
- `genre`: Items categorized by genre.
|
|
400
|
-
- `year`: Items categorized by year of release.
|
|
401
|
-
- `decade`: Items categorized by decade.
|
|
402
|
-
- `director`: Items categorized by director.
|
|
403
|
-
- `actor`: Items categorized by starring actor.
|
|
404
|
-
- `country`: Items categorized by country of origin.
|
|
405
|
-
- `contentRating`: Items categorized by content rating.
|
|
406
|
-
- `rating`: Items categorized by rating.
|
|
407
|
-
- `resolution`: Items categorized by resolution.
|
|
408
|
-
- `firstCharacter`: Items categorized by the first letter.
|
|
409
|
-
- `folder`: Items categorized by folder.
|
|
410
|
-
"""
|
|
411
|
-
hook_ctx = HookContext(operation_id='getLibraryItems', oauth2_scopes=[], security_source=self.sdk_configuration.security)
|
|
412
|
-
request = operations.GetLibraryItemsRequest(
|
|
413
|
-
section_id=section_id,
|
|
414
|
-
tag=tag,
|
|
415
|
-
)
|
|
416
|
-
|
|
417
|
-
base_url = utils.template_url(*self.sdk_configuration.get_server_details())
|
|
418
|
-
|
|
419
|
-
url = utils.generate_url(base_url, '/library/sections/{sectionId}/{tag}', request)
|
|
420
|
-
|
|
421
|
-
if callable(self.sdk_configuration.security):
|
|
422
|
-
headers, query_params = utils.get_security(self.sdk_configuration.security())
|
|
423
|
-
else:
|
|
424
|
-
headers, query_params = utils.get_security(self.sdk_configuration.security)
|
|
425
|
-
|
|
426
|
-
headers['Accept'] = 'application/json'
|
|
427
|
-
headers['user-agent'] = self.sdk_configuration.user_agent
|
|
428
|
-
client = self.sdk_configuration.client
|
|
429
|
-
|
|
430
|
-
try:
|
|
431
|
-
req = client.prepare_request(requests_http.Request('GET', url, params=query_params, headers=headers))
|
|
432
|
-
req = self.sdk_configuration.get_hooks().before_request(BeforeRequestContext(hook_ctx), req)
|
|
433
|
-
http_res = client.send(req)
|
|
434
|
-
except Exception as e:
|
|
435
|
-
_, e = self.sdk_configuration.get_hooks().after_error(AfterErrorContext(hook_ctx), None, e)
|
|
436
|
-
if e is not None:
|
|
437
|
-
raise e
|
|
438
|
-
|
|
439
|
-
if utils.match_status_codes(['4XX','5XX'], http_res.status_code):
|
|
440
|
-
result, e = self.sdk_configuration.get_hooks().after_error(AfterErrorContext(hook_ctx), http_res, None)
|
|
441
|
-
if e is not None:
|
|
442
|
-
raise e
|
|
443
|
-
if result is not None:
|
|
444
|
-
http_res = result
|
|
445
|
-
else:
|
|
446
|
-
http_res = self.sdk_configuration.get_hooks().after_success(AfterSuccessContext(hook_ctx), http_res)
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
res = operations.GetLibraryItemsResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
|
|
451
|
-
|
|
452
|
-
if http_res.status_code == 200:
|
|
453
|
-
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
454
|
-
out = utils.unmarshal_json(http_res.text, Optional[operations.GetLibraryItemsResponseBody])
|
|
455
|
-
res.object = out
|
|
456
|
-
else:
|
|
457
|
-
content_type = http_res.headers.get('Content-Type')
|
|
458
|
-
raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res)
|
|
459
|
-
elif http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
460
|
-
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
461
|
-
else:
|
|
462
|
-
raise errors.SDKError('unknown status code received', http_res.status_code, http_res.text, http_res)
|
|
463
|
-
|
|
464
|
-
return res
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
396
|
def refresh_library(self, section_id: float) -> operations.RefreshLibraryResponse:
|
|
469
397
|
r"""Refresh Library
|
|
470
398
|
This endpoint Refreshes the library.
|
|
@@ -514,6 +442,7 @@ class Library:
|
|
|
514
442
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
515
443
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
516
444
|
elif http_res.status_code == 401:
|
|
445
|
+
# pylint: disable=no-else-return
|
|
517
446
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
518
447
|
out = utils.unmarshal_json(http_res.text, errors.RefreshLibraryResponseBody)
|
|
519
448
|
out.raw_response = http_res
|
|
@@ -592,6 +521,7 @@ class Library:
|
|
|
592
521
|
res = operations.SearchLibraryResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
|
|
593
522
|
|
|
594
523
|
if http_res.status_code == 200:
|
|
524
|
+
# pylint: disable=no-else-return
|
|
595
525
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
596
526
|
out = utils.unmarshal_json(http_res.text, Optional[operations.SearchLibraryResponseBody])
|
|
597
527
|
res.object = out
|
|
@@ -652,6 +582,7 @@ class Library:
|
|
|
652
582
|
res = operations.GetMetadataResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
|
|
653
583
|
|
|
654
584
|
if http_res.status_code == 200:
|
|
585
|
+
# pylint: disable=no-else-return
|
|
655
586
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
656
587
|
out = utils.unmarshal_json(http_res.text, Optional[operations.GetMetadataResponseBody])
|
|
657
588
|
res.object = out
|
|
@@ -661,6 +592,7 @@ class Library:
|
|
|
661
592
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
662
593
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
663
594
|
elif http_res.status_code == 401:
|
|
595
|
+
# pylint: disable=no-else-return
|
|
664
596
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
665
597
|
out = utils.unmarshal_json(http_res.text, errors.GetMetadataResponseBody)
|
|
666
598
|
out.raw_response = http_res
|
|
@@ -720,6 +652,7 @@ class Library:
|
|
|
720
652
|
res = operations.GetMetadataChildrenResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
|
|
721
653
|
|
|
722
654
|
if http_res.status_code == 200:
|
|
655
|
+
# pylint: disable=no-else-return
|
|
723
656
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
724
657
|
out = utils.unmarshal_json(http_res.text, Optional[operations.GetMetadataChildrenResponseBody])
|
|
725
658
|
res.object = out
|
|
@@ -729,6 +662,7 @@ class Library:
|
|
|
729
662
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
730
663
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
731
664
|
elif http_res.status_code == 401:
|
|
665
|
+
# pylint: disable=no-else-return
|
|
732
666
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
733
667
|
out = utils.unmarshal_json(http_res.text, errors.GetMetadataChildrenResponseBody)
|
|
734
668
|
out.raw_response = http_res
|
|
@@ -784,6 +718,7 @@ class Library:
|
|
|
784
718
|
res = operations.GetOnDeckResponse(status_code=http_res.status_code, content_type=http_res.headers.get('Content-Type') or '', raw_response=http_res)
|
|
785
719
|
|
|
786
720
|
if http_res.status_code == 200:
|
|
721
|
+
# pylint: disable=no-else-return
|
|
787
722
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
788
723
|
out = utils.unmarshal_json(http_res.text, Optional[operations.GetOnDeckResponseBody])
|
|
789
724
|
res.object = out
|
|
@@ -793,6 +728,7 @@ class Library:
|
|
|
793
728
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
794
729
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
795
730
|
elif http_res.status_code == 401:
|
|
731
|
+
# pylint: disable=no-else-return
|
|
796
732
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
797
733
|
out = utils.unmarshal_json(http_res.text, errors.GetOnDeckResponseBody)
|
|
798
734
|
out.raw_response = http_res
|
|
@@ -67,6 +67,7 @@ class Log:
|
|
|
67
67
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
68
68
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
69
69
|
elif http_res.status_code == 401:
|
|
70
|
+
# pylint: disable=no-else-return
|
|
70
71
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
71
72
|
out = utils.unmarshal_json(http_res.text, errors.LogLineResponseBody)
|
|
72
73
|
out.raw_response = http_res
|
|
@@ -151,6 +152,7 @@ class Log:
|
|
|
151
152
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
152
153
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
153
154
|
elif http_res.status_code == 401:
|
|
155
|
+
# pylint: disable=no-else-return
|
|
154
156
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
155
157
|
out = utils.unmarshal_json(http_res.text, errors.LogMultiLineResponseBody)
|
|
156
158
|
out.raw_response = http_res
|
|
@@ -210,6 +212,7 @@ class Log:
|
|
|
210
212
|
elif http_res.status_code == 400 or http_res.status_code == 403 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
211
213
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
212
214
|
elif http_res.status_code == 401:
|
|
215
|
+
# pylint: disable=no-else-return
|
|
213
216
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
214
217
|
out = utils.unmarshal_json(http_res.text, errors.EnablePaperTrailResponseBody)
|
|
215
218
|
out.raw_response = http_res
|
|
@@ -65,6 +65,7 @@ class Media:
|
|
|
65
65
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
66
66
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
67
67
|
elif http_res.status_code == 401:
|
|
68
|
+
# pylint: disable=no-else-return
|
|
68
69
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
69
70
|
out = utils.unmarshal_json(http_res.text, errors.MarkPlayedResponseBody)
|
|
70
71
|
out.raw_response = http_res
|
|
@@ -129,6 +130,7 @@ class Media:
|
|
|
129
130
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
130
131
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
131
132
|
elif http_res.status_code == 401:
|
|
133
|
+
# pylint: disable=no-else-return
|
|
132
134
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
133
135
|
out = utils.unmarshal_json(http_res.text, errors.MarkUnplayedResponseBody)
|
|
134
136
|
out.raw_response = http_res
|
|
@@ -195,6 +197,7 @@ class Media:
|
|
|
195
197
|
elif http_res.status_code == 400 or http_res.status_code >= 400 and http_res.status_code < 500 or http_res.status_code >= 500 and http_res.status_code < 600:
|
|
196
198
|
raise errors.SDKError('API error occurred', http_res.status_code, http_res.text, http_res)
|
|
197
199
|
elif http_res.status_code == 401:
|
|
200
|
+
# pylint: disable=no-else-return
|
|
198
201
|
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
|
|
199
202
|
out = utils.unmarshal_json(http_res.text, errors.UpdatePlayProgressResponseBody)
|
|
200
203
|
out.raw_response = http_res
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
|
|
2
|
+
|
|
3
|
+
from .addplaylistcontents import *
|
|
4
|
+
from .applyupdates import *
|
|
5
|
+
from .cancelserveractivities import *
|
|
6
|
+
from .checkforupdates import *
|
|
7
|
+
from .clearplaylistcontents import *
|
|
8
|
+
from .createplaylist import *
|
|
9
|
+
from .deletelibrary import *
|
|
10
|
+
from .deleteplaylist import *
|
|
11
|
+
from .enablepapertrail import *
|
|
12
|
+
from .getavailableclients import *
|
|
13
|
+
from .getbutlertasks import *
|
|
14
|
+
from .getdevices import *
|
|
15
|
+
from .getfilehash import *
|
|
16
|
+
from .getglobalhubs import *
|
|
17
|
+
from .getlibraries import *
|
|
18
|
+
from .getlibrary import *
|
|
19
|
+
from .getlibraryhubs import *
|
|
20
|
+
from .getmetadata import *
|
|
21
|
+
from .getmetadatachildren import *
|
|
22
|
+
from .getmyplexaccount import *
|
|
23
|
+
from .getondeck import *
|
|
24
|
+
from .getpin import *
|
|
25
|
+
from .getplaylist import *
|
|
26
|
+
from .getplaylistcontents import *
|
|
27
|
+
from .getplaylists import *
|
|
28
|
+
from .getrecentlyadded import *
|
|
29
|
+
from .getresizedphoto import *
|
|
30
|
+
from .getsearchresults import *
|
|
31
|
+
from .getserveractivities import *
|
|
32
|
+
from .getservercapabilities import *
|
|
33
|
+
from .getserveridentity import *
|
|
34
|
+
from .getserverlist import *
|
|
35
|
+
from .getserverpreferences import *
|
|
36
|
+
from .getsessionhistory import *
|
|
37
|
+
from .getsessions import *
|
|
38
|
+
from .getsourceconnectioninformation import *
|
|
39
|
+
from .getstatistics import *
|
|
40
|
+
from .gettimeline import *
|
|
41
|
+
from .gettoken import *
|
|
42
|
+
from .gettranscodesessions import *
|
|
43
|
+
from .gettransienttoken import *
|
|
44
|
+
from .getupdatestatus import *
|
|
45
|
+
from .logline import *
|
|
46
|
+
from .logmultiline import *
|
|
47
|
+
from .markplayed import *
|
|
48
|
+
from .markunplayed import *
|
|
49
|
+
from .performsearch import *
|
|
50
|
+
from .performvoicesearch import *
|
|
51
|
+
from .refreshlibrary import *
|
|
52
|
+
from .searchlibrary import *
|
|
53
|
+
from .startalltasks import *
|
|
54
|
+
from .starttask import *
|
|
55
|
+
from .startuniversaltranscode import *
|
|
56
|
+
from .stopalltasks import *
|
|
57
|
+
from .stoptask import *
|
|
58
|
+
from .stoptranscodesession import *
|
|
59
|
+
from .updateplaylist import *
|
|
60
|
+
from .updateplayprogress import *
|
|
61
|
+
from .uploadplaylist import *
|
|
62
|
+
|
|
63
|
+
__all__ = ["Account","Activity","AddPlaylistContentsMediaContainer","AddPlaylistContentsMetadata","AddPlaylistContentsRequest","AddPlaylistContentsResponse","AddPlaylistContentsResponseBody","ApplyUpdatesRequest","ApplyUpdatesResponse","ButlerTask","ButlerTasks","CancelServerActivitiesRequest","CancelServerActivitiesResponse","CheckForUpdatesRequest","CheckForUpdatesResponse","ClearPlaylistContentsRequest","ClearPlaylistContentsResponse","Context","Country","CreatePlaylistMediaContainer","CreatePlaylistMetadata","CreatePlaylistRequest","CreatePlaylistResponse","CreatePlaylistResponseBody","DeleteLibraryRequest","DeleteLibraryResponse","DeletePlaylistRequest","DeletePlaylistResponse","Device","Director","Directory","Download","EnablePaperTrailResponse","Field","FieldType","Filter","Force","GET_PIN_SERVERS","GET_TOKEN_SERVERS","Genre","GetAvailableClientsMediaContainer","GetAvailableClientsResponse","GetAvailableClientsResponseBody","GetButlerTasksResponse","GetButlerTasksResponseBody","GetDevicesMediaContainer","GetDevicesResponse","GetDevicesResponseBody","GetFileHashRequest","GetFileHashResponse","GetGlobalHubsMediaContainer","GetGlobalHubsMetadata","GetGlobalHubsRequest","GetGlobalHubsResponse","GetGlobalHubsResponseBody","GetLibrariesDirectory","GetLibrariesLocation","GetLibrariesMediaContainer","GetLibrariesResponse","GetLibrariesResponseBody","GetLibraryDirectory","GetLibraryHubsCountry","GetLibraryHubsDirector","GetLibraryHubsGenre","GetLibraryHubsHub","GetLibraryHubsMedia","GetLibraryHubsMediaContainer","GetLibraryHubsMetadata","GetLibraryHubsPart","GetLibraryHubsRequest","GetLibraryHubsResponse","GetLibraryHubsResponseBody","GetLibraryHubsRole","GetLibraryHubsWriter","GetLibraryMediaContainer","GetLibraryRequest","GetLibraryResponse","GetLibraryResponseBody","GetLibraryType","GetMetadataChildrenDirectory","GetMetadataChildrenMediaContainer","GetMetadataChildrenMetadata","GetMetadataChildrenRequest","GetMetadataChildrenResponse","GetMetadataChildrenResponseBody","GetMetadataCountry","GetMetadataDirector","GetMetadataGenre","GetMetadataMedia","GetMetadataMediaContainer","GetMetadataMetadata","GetMetadataPart","GetMetadataRequest","GetMetadataResponse","GetMetadataResponseBody","GetMetadataRole","GetMetadataWriter","GetMyPlexAccountResponse","GetMyPlexAccountResponseBody","GetOnDeckGuids","GetOnDeckMedia","GetOnDeckMediaContainer","GetOnDeckMetadata","GetOnDeckPart","GetOnDeckResponse","GetOnDeckResponseBody","GetOnDeckStream","GetPinGlobals","GetPinRequest","GetPinResponse","GetPinResponseBody","GetPlaylistContentsCountry","GetPlaylistContentsDirector","GetPlaylistContentsGenre","GetPlaylistContentsMedia","GetPlaylistContentsMediaContainer","GetPlaylistContentsMetadata","GetPlaylistContentsPart","GetPlaylistContentsRequest","GetPlaylistContentsResponse","GetPlaylistContentsResponseBody","GetPlaylistContentsRole","GetPlaylistContentsWriter","GetPlaylistMediaContainer","GetPlaylistMetadata","GetPlaylistRequest","GetPlaylistResponse","GetPlaylistResponseBody","GetPlaylistsMediaContainer","GetPlaylistsMetadata","GetPlaylistsRequest","GetPlaylistsResponse","GetPlaylistsResponseBody","GetRecentlyAddedMediaContainer","GetRecentlyAddedResponse","GetRecentlyAddedResponseBody","GetResizedPhotoRequest","GetResizedPhotoResponse","GetSearchResultsCountry","GetSearchResultsDirector","GetSearchResultsGenre","GetSearchResultsMedia","GetSearchResultsMediaContainer","GetSearchResultsMetadata","GetSearchResultsPart","GetSearchResultsRequest","GetSearchResultsResponse","GetSearchResultsResponseBody","GetSearchResultsRole","GetSearchResultsWriter","GetServerActivitiesMediaContainer","GetServerActivitiesResponse","GetServerActivitiesResponseBody","GetServerCapabilitiesResponse","GetServerCapabilitiesResponseBody","GetServerIdentityMediaContainer","GetServerIdentityResponse","GetServerIdentityResponseBody","GetServerListMediaContainer","GetServerListResponse","GetServerListResponseBody","GetServerListServer","GetServerPreferencesMediaContainer","GetServerPreferencesResponse","GetServerPreferencesResponseBody","GetSessionHistoryMediaContainer","GetSessionHistoryMetadata","GetSessionHistoryResponse","GetSessionHistoryResponseBody","GetSessionsMedia","GetSessionsMediaContainer","GetSessionsMetadata","GetSessionsPart","GetSessionsResponse","GetSessionsResponseBody","GetSessionsStream","GetSourceConnectionInformationRequest","GetSourceConnectionInformationResponse","GetStatisticsDevice","GetStatisticsMediaContainer","GetStatisticsRequest","GetStatisticsResponse","GetStatisticsResponseBody","GetTimelineRequest","GetTimelineResponse","GetTokenGlobals","GetTokenRequest","GetTokenResponse","GetTranscodeSessionsMediaContainer","GetTranscodeSessionsResponse","GetTranscodeSessionsResponseBody","GetTransientTokenQueryParamType","GetTransientTokenRequest","GetTransientTokenResponse","GetUpdateStatusMediaContainer","GetUpdateStatusResponse","GetUpdateStatusResponseBody","Guids","Hub","IncludeDetails","Level","Location","LogLineRequest","LogLineResponse","LogMultiLineResponse","MarkPlayedRequest","MarkPlayedResponse","MarkUnplayedRequest","MarkUnplayedResponse","Media","MediaContainer","Metadata","MinSize","MyPlex","OnlyTransient","Operator","Part","PathParamTaskName","PerformSearchRequest","PerformSearchResponse","PerformVoiceSearchRequest","PerformVoiceSearchResponse","Player","PlaylistType","Producer","Provider","QueryParamOnlyTransient","QueryParamSmart","QueryParamType","Ratings","RefreshLibraryRequest","RefreshLibraryResponse","Release","Role","Scope","SearchLibraryMediaContainer","SearchLibraryMetadata","SearchLibraryRequest","SearchLibraryResponse","SearchLibraryResponseBody","Server","Session","Setting","Skip","Smart","Sort","StartAllTasksResponse","StartTaskRequest","StartTaskResponse","StartUniversalTranscodeRequest","StartUniversalTranscodeResponse","State","StatisticsMedia","StopAllTasksResponse","StopTaskRequest","StopTaskResponse","StopTranscodeSessionRequest","StopTranscodeSessionResponse","Stream","TaskName","Tonight","TranscodeSession","Type","UpdatePlayProgressRequest","UpdatePlayProgressResponse","UpdatePlaylistRequest","UpdatePlaylistResponse","UploadPlaylistRequest","UploadPlaylistResponse","Upscale","User","Writer"]
|