devfake / flox

Self Hosted Movie, Series and Anime Watch List
https://flox-demo.pyxl.dev/
MIT License
1.29k stars 190 forks source link

Update the last seen attributes from the API #159

Closed vrachnis closed 4 years ago

vrachnis commented 4 years ago

When using the Plex API, any episodes that are watched are correctly marked as seen but that is not reflected in the last seen ordering in the TV view.

This commit ensures that when an episode is watched, sorting by "Last seen" on the TV page still works.

Note: I'll admit that my PHP knowledge is close to non-existent, so I added a unit test to ensure that this works as expected, but I don't know if this commit adheres to PHP best practices. Any feedback is welcome.

devfake commented 4 years ago

Hey, thank you very much! This looks really good :)