Tags: tsaridas/stremio-docker
Tags
Update expiration date for the streaming server URL (#80) The timestamp `2099-12-31T23:59:59.999Z` in the `localStorage.json` file represents an expiration date for the streaming server URL. Here's what I've found: ### What is this timestamp? It's a date in ISO 8601 format representing when this server URL "expires" in the Stremio system. ### How is it used? The `ServerUrlsBucket` (stremio-core\src\types\server_urls\server_urls_bucket.rs) in the stremio-core codebase maintains a list of streaming server URLs with their timestamps. These timestamps are used to: - Track when a URL was added - Potentially check if a URL is still valid (though I didn't find explicit code that rejects expired URLs) - The web UI uses these URLs to populate the streaming server selection dropdown ### Can we safely modify it? Yes. The date is simply stored in `localStorage` on the client side and used for reference. There is no server-side validation or certificate that depends on this exact date. ### Why set it to 2099? Setting it to a far future date ensures the URL never "expires" from the user's perspective. This is essential for our use case where we want the container's local streaming server to always be available and automatically connected. We can safely modify the date in `localStorage.json` to any future date. The Stremio application will handle it correctly, and there's no need to "renew" or generate it through some other process.
Update expiration date for the streaming server URL (#80) The timestamp `2099-12-31T23:59:59.999Z` in the `localStorage.json` file represents an expiration date for the streaming server URL. Here's what I've found: ### What is this timestamp? It's a date in ISO 8601 format representing when this server URL "expires" in the Stremio system. ### How is it used? The `ServerUrlsBucket` (stremio-core\src\types\server_urls\server_urls_bucket.rs) in the stremio-core codebase maintains a list of streaming server URLs with their timestamps. These timestamps are used to: - Track when a URL was added - Potentially check if a URL is still valid (though I didn't find explicit code that rejects expired URLs) - The web UI uses these URLs to populate the streaming server selection dropdown ### Can we safely modify it? Yes. The date is simply stored in `localStorage` on the client side and used for reference. There is no server-side validation or certificate that depends on this exact date. ### Why set it to 2099? Setting it to a far future date ensures the URL never "expires" from the user's perspective. This is essential for our use case where we want the container's local streaming server to always be available and automatically connected. We can safely modify the date in `localStorage.json` to any future date. The Stremio application will handle it correctly, and there's no need to "renew" or generate it through some other process.
PreviousNext