mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-17 16:52:20 +00:00
refactor: extract CCTV media and radio directory providers
This commit is contained in:
1 parent
fada0c661f
commit
79b4929b88
17 files changed
+1977
-1831
No files matched your search
@@ -0,0 +1,15 @@
|
||||
export const RADIO_DIRECTORY_CACHE_MS = 45 * 60 * 1000;
|
||||
export const RADIO_DIRECTORY_STALE_MS = 7 * 24 * 60 * 60 * 1000;
|
||||
export const RADIO_MIRROR_CACHE_MS = 6 * 60 * 60 * 1000;
|
||||
export const RADIO_FETCH_TIMEOUT_MS = 12_000;
|
||||
export const RADIO_RESPONSE_MAX_BYTES = 4 * 1024 * 1024;
|
||||
export const RADIO_DIRECTORY_LIMIT = 750;
|
||||
export const RADIO_CATALOG_MIN_SUCCESSFUL_QUERIES = 5;
|
||||
export const RADIO_CATALOG_HEALTHY_MIN_STATIONS = Math.ceil(RADIO_DIRECTORY_LIMIT / 2);
|
||||
export const RADIO_USER_AGENT = 'GodsEyeView/1.0 (Radio Browser directory client)';
|
||||
export const RADIO_UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
||||
export const RADIO_FALLBACK_MIRRORS = Object.freeze([
|
||||
'https://de1.api.radio-browser.info',
|
||||
'https://de2.api.radio-browser.info',
|
||||
'https://nl1.api.radio-browser.info',
|
||||
]);
|
||||
Reference in new issue
Block a user