From 04d22e0eca0330acfbc19393d3ab9011cd76821f Mon Sep 17 00:00:00 2001 From: CrissZollo Date: Mon, 22 Sep 2025 17:28:56 +0200 Subject: [PATCH 1/2] Changing stremio addon URL to correct wanted format --- src/screens/AddonsScreen.tsx | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/screens/AddonsScreen.tsx b/src/screens/AddonsScreen.tsx index 1bc8b64..77f556f 100644 --- a/src/screens/AddonsScreen.tsx +++ b/src/screens/AddonsScreen.tsx @@ -700,7 +700,7 @@ const AddonsScreen = () => { }; const handleAddAddon = async (url?: string) => { - const urlToInstall = url || addonUrl; + let urlToInstall = url || addonUrl; if (!urlToInstall) { setAlertTitle('Error'); setAlertMessage('Please enter an addon URL or select a community addon'); @@ -709,6 +709,11 @@ const AddonsScreen = () => { return; } + // Replace stremio:// with https:// if present + if (urlToInstall.startsWith('stremio://')) { + urlToInstall = urlToInstall.replace(/^stremio:\/\//, 'https://'); + } + try { setInstalling(true); const manifest = await stremioService.getManifest(urlToInstall); @@ -716,11 +721,11 @@ const AddonsScreen = () => { setAddonUrl(urlToInstall); setShowConfirmModal(true); } catch (error) { - logger.error('Failed to fetch addon details:', error); - setAlertTitle('Error'); - setAlertMessage(`Failed to fetch addon details from ${urlToInstall}`); - setAlertActions([{ label: 'OK', onPress: () => setAlertVisible(false) }]); - setAlertVisible(true); + logger.error('Failed to fetch addon details:', error); + setAlertTitle('Error'); + setAlertMessage(`Failed to fetch addon details from ${urlToInstall}`); + setAlertActions([{ label: 'OK', onPress: () => setAlertVisible(false) }]); + setAlertVisible(true); } finally { setInstalling(false); } From 1673dfaa7ab0da4fbf5b80a4824340909ed6a2f5 Mon Sep 17 00:00:00 2001 From: CrissZollo Date: Mon, 22 Sep 2025 20:17:12 +0200 Subject: [PATCH 2/2] Update gradlew file permissions to make it executable --- android/gradlew | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 android/gradlew diff --git a/android/gradlew b/android/gradlew old mode 100644 new mode 100755