Skip to content

Commit 8d83825

Browse files
committed
feat(plaxt): skip scrobbling if PLEX_TOKEN is not set
1 parent 7c4a9a0 commit 8d83825

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ the performance of a low-end server.
99
2. Cross-device response caching by client type
1010
3. Disable transcoding by forcing direct play/stream
1111
4. Redirect web app to [official one](https://app.plex.tv/desktop)
12+
5. [Plaxt](https://github.com/XanderStrike/goplaxt) integration
1213

1314
## Prerequisites
1415

@@ -31,12 +32,9 @@ env CGO_ENABLED=0 go install -trimpath -ldflags="-s -w" github.com/RoyXiang/plex
3132
* If you need a cache layer, set a value for it
3233
- `PLEX_TOKEN` (Optional, if you need it, see [here](https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/))
3334
* It is used to receive notifications from Plex Media Server
34-
* Currently, notifications are used to flush the cache of metadata
35+
* Notifications are used to flush the cache of metadata
3536
- `PLAXT_URL` (Optional, e.g. `https://plaxt.astandke.com/api?id=generate-your-own-silly`)
36-
* Set it if you run an instance of [plaxt](https://github.com/XanderStrike/goplaxt)
37+
* `PLEX_TOKEN` is required
38+
* Set it if you run an instance of [Plaxt](https://github.com/XanderStrike/goplaxt)
3739
* Or, you can set it to [the official one](https://plaxt.astandke.com/)
3840
2. Run the program
39-
40-
## TODO
41-
42-
- [ ] Native [Trakt](https://trakt.tv/) integration

handler/plex.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (c *PlexClient) GetAccountInfo(token string) (user plex.UserPlexTV) {
181181
}
182182

183183
func (c *PlexClient) syncTimelineWithPlaxt(r *http.Request) {
184-
if c.plaxtUrl == "" {
184+
if c.plaxtUrl == "" || c.client.Token == "" {
185185
return
186186
}
187187

0 commit comments

Comments
 (0)