ImranR98 / Obtainium

Get Android app updates straight from the source.
https://obtainium.imranr.dev
GNU General Public License v3.0
7.25k stars 161 forks source link

Regex Replacement Strings #1521

Open SkyNinja opened 5 months ago

SkyNinja commented 5 months ago

In #639, Google Drive links were discussed. In that issue, I mentioned a hypothetical in which a webpage has a link to a Google Drive download, and another user recommended using an alternate link that immediately provides the file as a direct apk link. These two methods are entirely incompatible, but a regex replacement could bridge the gap, since the urls are totally predictable and would use the same ID.

The only alternative I can think of for such a situation is using the direct download URL, which isn't viable in situations where the link might change between versions.

Admittedly, this is not high priority in any way. Regex replacements can be super useful, but I can't really think of any uses in Obtanium beyond this hypothetical.

o101010 commented 5 months ago

I think replacement regex can also be usefull for version. I have the case with Breezy Weather. The version push by github is v5.1.8 but my os give 5.1.8_froid. I allready extract 5.1.8 but is still block with the "_fdroid" string.

NicholasFlamy commented 5 hours ago

Another potential feature related to this is you could extract a version string and then replace that into the links to get to the latest apk. (For example, using a release changelog as a version source, and then going through links (that don't specify beta vs release) with the version numbers.)

NicholasFlamy commented 4 hours ago

Another potential feature related to this is you could extract a version string and then replace that into the links to get to the latest apk. (For example, using a release changelog as a version source, and then going through links (that don't specify beta vs release) with the version numbers.)

This would actually be a really helpful feature for some of my apps.