mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-06-04 13:08:33 +01:00
wip
This commit is contained in:
@@ -75,14 +75,6 @@ export default function index() {
|
|||||||
|
|
||||||
const insets = useSafeAreaInsets();
|
const insets = useSafeAreaInsets();
|
||||||
|
|
||||||
useEffect(() => {
|
|
||||||
const interval = setInterval(async () => {
|
|
||||||
await refreshStreamyfinPluginSettings();
|
|
||||||
}, 60 * 10 * 1000); // 10 min
|
|
||||||
|
|
||||||
return () => clearInterval(interval);
|
|
||||||
}, []);
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const hasDownloads = downloadedFiles && downloadedFiles.length > 0;
|
const hasDownloads = downloadedFiles && downloadedFiles.length > 0;
|
||||||
navigation.setOptions({
|
navigation.setOptions({
|
||||||
|
|||||||
@@ -174,6 +174,17 @@ export const JellyfinProvider: React.FC<{ children: ReactNode }> = ({
|
|||||||
|
|
||||||
useInterval(pollQuickConnect, isPolling ? 1000 : null);
|
useInterval(pollQuickConnect, isPolling ? 1000 : null);
|
||||||
|
|
||||||
|
useInterval(refreshStreamyfinPluginSettings, 60 * 5 * 1000); // 5 min
|
||||||
|
|
||||||
|
/************* ✨ Codeium Command ⭐ *************/
|
||||||
|
/**
|
||||||
|
* Discovers and retrieves a list of recommended Jellyfin server candidates based on the provided URL.
|
||||||
|
*
|
||||||
|
* @param url - The URL used to discover server candidates.
|
||||||
|
* @returns A promise that resolves to an array of servers with their addresses.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/****** c70f9dcb-e9fa-4929-8ff2-39aba2e996c8 *******/
|
||||||
const discoverServers = async (url: string): Promise<Server[]> => {
|
const discoverServers = async (url: string): Promise<Server[]> => {
|
||||||
const servers = await jellyfin?.discovery.getRecommendedServerCandidates(
|
const servers = await jellyfin?.discovery.getRecommendedServerCandidates(
|
||||||
url
|
url
|
||||||
|
|||||||
Reference in New Issue
Block a user