jellyfin / jellyfin-plugin-nextpvr

https://jellyfin.org
MIT License
25 stars 9 forks source link

Allow dynamic recording URLs #49

Closed emveepee closed 3 months ago

emveepee commented 3 months ago

On creation ensure all recordings have a valid security ID token (sid). On a new connection attempt to re-authenticate the sid keeping saved URLs valid. There are cached json file for the recordings so if there is a failure recordings may not play until the 3hr cache timeout is met. The change of a failure is low typically only after a server IP change, a long pause in connections, or a database rebuild Unfortunately scanning tasks do not remove the cached files.

The modification date of the recording is the date of a sid change and it is also persisted so recordings are not rescanned each load.