Skip to content

Commit

Permalink
plex: Fix the user field in Episode
Browse files Browse the repository at this point in the history
  • Loading branch information
p-hueber committed Oct 31, 2024
1 parent 2d8caf7 commit bec5bbe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Unreleased

## Fixed

- Plex sessions were not detected since 0.8.0.


## [0.8.0] - 2024-10-20

### Added
Expand Down
7 changes: 4 additions & 3 deletions src/media_server/plex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pub struct Episode {
index: i32,
parent_index: i32,
r#type: String,
#[serde(rename = "User")]
user: User,
#[serde(flatten)]
_other: serde_json::Value,
Expand Down Expand Up @@ -150,7 +151,7 @@ mod test {
"index": 5,
"parentIndex": 3,
"type": "episode",
"user": {
"User": {
"id": "1",
"title": "user",
"thumb": "ignore"
Expand Down Expand Up @@ -248,7 +249,7 @@ mod test {
"index": 5,
"parentIndex": 3,
"type": "episode",
"user": {
"User": {
"id": "1",
"title": "user",
"thumb": "ignore"
Expand Down Expand Up @@ -307,7 +308,7 @@ mod test {
"index": 5,
"parentIndex": 3,
"type": "episode",
"user": {
"User": {
"id": "1",
"title": "user",
"thumb": "ignore"
Expand Down

0 comments on commit bec5bbe

Please sign in to comment.