diff --git a/script.js b/script.js index e6a16e8..83a4d73 100644 --- a/script.js +++ b/script.js @@ -2014,6 +2014,10 @@ function createObtainiumInstructions(app, brand) { const repoUrl = `https://github.com/${CONFIG.owner}/${CONFIG.repo}`; const obtainiumLatestUrl = "https://github.com/ImranR98/Obtainium/releases/latest"; + const aboutAppForObtainium = "Auto-added using **NullStore**\n" + + `${window.location.protocol}//${window.location.host}/?q=${encodeURIComponent(app?.appName)}\n\n` + + "NOTE : Only edit app details in obtainium if you know what you are doing, it can break update tracker"; + const rawSlug = app?.appKey || normalizeForSearch(app?.appName || "app"); const rawBrand = brand?.brandKey || normalizeForSearch(brand?.brandName || "brand"); @@ -2029,7 +2033,13 @@ function createObtainiumInstructions(app, brand) { const mainPackageId = activeVariant?.packageName || getAppPackageId(app, brand, modalSelectedVariant, modalSelectedSubVariant); const mainLabel = getObtainiumAppLabel(app?.appName || "App", brand?.brandName || "Brand", modalSelectedVariant, modalSelectedSubVariant); - const mainAdditionalSettings = { apkFilterRegEx: regexPattern }; + const mainAdditionalSettings = { + fallbackToOlderReleases: true, + appName: mainLabel, + appAuthor: CONFIG.owner, + about: aboutAppForObtainium, + apkFilterRegEx: regexPattern + }; if (modalBuildFilter === "beta") { mainAdditionalSettings.includePrereleases = true; } @@ -2059,7 +2069,13 @@ function createObtainiumInstructions(app, brand) { const vLabel = getObtainiumAppLabel(app.appName, brand.brandName, v.variant, v.subVariant); const vPackageId = v.packageName || getAppPackageId(app, brand, v.variant, v.subVariant); - const vAdditionalSettings = { apkFilterRegEx: vRegex }; + const vAdditionalSettings = { + fallbackToOlderReleases: true, + appName: vLabel, + appAuthor: CONFIG.owner, + about: aboutAppForObtainium, + apkFilterRegEx: vRegex + }; if (modalBuildFilter === "beta") { vAdditionalSettings.includePrereleases = true; } @@ -2113,7 +2129,7 @@ function createObtainiumInstructions(app, brand) { return `
- Ensure that you have Obtainium installed (available on GitHub). Use the Add to Obtainium button for a quick setup if it's available, or follow the steps below to add the app manually: + Ensure that you have Obtainium installed (available on GitHub).

Use the Add to Obtainium button for a quick setup (from step 4) if it's available, or follow the steps below to add the app manually:
  1. Open Obtainium on your device.
  2. @@ -2124,10 +2140,11 @@ function createObtainiumInstructions(app, brand) {
-
  • Scroll down to Filter APKs by regular expression and enter: +
  • Scroll down to APK selection > Filter APKs/links by regular expression and enter: ${step4Content}
  • To get beta updates, enable the Include Pre-releases toggle.
  • +
  • Make sure Fallback to older releases is checked, else obtainium will stop by checking last release assests.
  • Tap Add to begin downloading.
  • diff --git a/style.css b/style.css index 6cd16ff..0f15ac4 100644 --- a/style.css +++ b/style.css @@ -1816,6 +1816,10 @@ body.light-mode .download-btn { } } +.obtainium-instructions .highlight { + color: var(--accent-obtainium) +} + .obtainium-instructions ol { padding-left: 20px; display: flex;