Fix Plex Exporter

This commit is contained in:
Joey Hafner 2023-03-23 09:46:51 -07:00
parent 1a9ad1121e
commit 2d37cf8ba7
2 changed files with 18 additions and 1 deletions

View File

@ -15,3 +15,20 @@ From LG's documentation:
<img src=docs/img/lg_webos_video_codec.png width="600">
<img src=docs/img/lg_webos_video_playback_supporting_file.png width="600">
# Fixing Plex Exporter
When Plex is restarted you will likely need to give the exporter a new Plex token so it can connect to Plex.
1. Open [Plex](https://plex.jafner.net).
2. Log into any account.
3. Select a locally-hosted piece of media (any media). Open the information page for that media, you do not need to play it.
4. From the triple-dot menu for the media, click "Get Info" to open the Media Info panel.
5. At the bottom right of the Media Info panel, click "View XML".
6. The Plex token is contained in the URL for the XML page. It should be at the very end of the URL, and look like `X-Plex-Token=4eBmSrpfXxxgT3cRF2gC`. The token is the part after the `=`.
7. Copy that value. Paste it into the configuration for `"--token=<token-goes-here>"` under the `command:` section of the `docker-compose.yml`
8. Sync the changes via git.
9. Restart Plex exporter with `docker-compose up -d --force-recreate exporter_plex`
https://github.com/arnarg/plex_exporter
https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/

View File

@ -85,7 +85,7 @@ services:
- monitoring
command:
- "--plex-server=https://plex.jafner.net"
- "--token=suirW-a-z6SpqUAJjjDj"
- "--token=4eBmSrpfXxxgT3cRF2gC"
- "--auto-discover"
labels:
- traefik.enable=false