![your plex media server and device are on different subnets your plex media server and device are on different subnets](https://support.qnap.ru/hc/article_attachments/360000844473/05.png)
This will default to the same timeout as the admin account if no new timeoutįrom rver import PlexServer # Login to the Plex server using the admin token plex = PlexServer ( ', token = '2ffLuB84dqLswk9skLos' ) # Login to the same Plex server using a different account userPlex = plex. Timeout ( int, optional) – Timeout in seconds on initial connection to the server. Session as the admin account if no new session is provided. Username ( str) – Username, email or user id of the user to log in to the server.Ĭache the http responses from the server. Note: Only the admin account can switch to other users. Returns a new PlexServer object logged in as the given username. switchUser ( username, session = None, timeout = None ) ¶ createToken ( type = 'delegation', scope = 'all' ) ¶Ĭreate a temp access token for the server. Returns a list of Agent objects this server has available. ParametersĪccount ( MyPlexAccount) – The account used to This will only work with an unclaimed server on localhost or the same subnet. claim ( account ) ¶Ĭlaim the Plex server using a MyPlexAccount. Returns the Account object this server belongs to. _session ( obj) – Requests session object used to access this client. _token ( str) – Token used to access this client. _baseurl ( str) – HTTP address of the client. VoiceSearch ( bool) – True if voice search is enabled. Version ( str) – Current Plex version (ex: 1.-1751929)
![your plex media server and device are on different subnets your plex media server and device are on different subnets](https://support.plex.tv/wp-content/uploads/sites/4/2013/09/Web-Overview-1024x511.png)
UpdatedAt ( int) – Datetime the server was updated. TranscoderVideoResolutions ( bool) – List of video resolutions. TranscoderVideoQualities ( bool) – List of video qualities. TranscoderVideoBitrates ( bool) – List of video bitrates. TranscoderVideo ( bool) – True if audio transcoding video is available. TranscoderSubtitles ( bool) – True if audio transcoding subtitles is available. TranscoderPhoto ( bool) – True if audio transcoding photos is available. TranscoderLyrics ( bool) – True if audio transcoding lyrics is available.
![your plex media server and device are on different subnets your plex media server and device are on different subnets](http://3.bp.blogspot.com/-jFdvi4kx6F0/UW2BcMXTGYI/AAAAAAAAC10/OyICeNa-m20/s1600/plex.png)
TranscoderAudio ( bool) – True if audio transcoding audio is available. TranscoderActiveVideoSessions ( int) – Number of active video transcoding sessions. Sync ( bool) – True if syncing to a device is enabled. StreamingBrainVersion ( bool) – Current Streaming Brain version. RequestParametersInCookie ( bool) – Unknown Platform ( str) – Platform the server is hosted on (ex: Linux) PhotoAutoTag ( bool) – True if photo auto-tagging is enabled. Photo_autotags, premium_music_metadata, session_bandwidth_restrictions, sync, Features include: camera_upload, cloudsync,Ĭontent_filter, dvr, hardware_transcoding, home, lyrics, music_videos, pass, OwnerFeatures ( list) – List of features allowed by the server owner. MyPlexUsername ( str) – Email address if signed into myPlex ( user. MyPlexSubscription ( bool) – True if you have a myPlex subscription. MyPlexSigninState ( str) – Unknown (ex: ok). MyPlexMappingState ( str) – Unknown (ex: mapped). MyPlex ( bool) – Unknown (True if logged into myPlex?). Multiuser ( bool) – True if multiusers are enabled. MachineIdentifier ( str) – Unique ID for this server (looks like an md5). HubSearch ( bool) – True if Hub Search is enabled. Timeout ( int, optional) – Timeout in seconds on initial connection to the serverĪllowCameraUpload ( bool) – True if server allows camera upload.ĪllowChannelAccess ( bool) – True if server allows channel access (iTunes?).ĪllowMediaDeletion ( bool) – True is server allows media to be deleted.ĪllowSharing ( bool) – True is server allows sharing.ĪllowSync ( bool) – True is server allows sync.Ĭertificate ( bool) – True if server has an HTTPS certificate.įriendlyName ( str) – Human friendly name for this server. Session ( requests.Session, optional) – Use your own session object if you want toĬache the http responses from the server. Token ( str) – Required Plex authentication token to access the server. Parametersīaseurl ( str) – Base url for to access the Plex Media Server (default: ‘ Server, or simply want to access your server with your username and password, youĬan also create an PlexServer instance from MyPlexAccount. If you do not know the auth token required to access your Plex List connected clients, browse your library sections and perform actions such asĮmptying trash.
![your plex media server and device are on different subnets your plex media server and device are on different subnets](https://macandegg-us.b-cdn.net/files/2019/02/emby-overview-768x464.png)
This is the main entry point to interacting with a Plex server. PlexServer ( baseurl = None, token = None, session = None, timeout = None ) ¶