Closed sertonix closed 1 year ago
Custom Sources will be tricky to add, but definitely a good idea and worth doing. Aside from GitLab/Gitea it would also improve the experience for third-party F-Droid repos.
Could you link to a custom GitLab host to test with?
Leaving some notes for later:
overrideSource
that is null
by default.getSource
should be modified to optionally take this overrideSource
string, and immediately return the override source if one is given and actually exists.
getSource
should be changed to make use of this new param where appropriate.standardizeURL
is used, don't use it if the App specifies an override source - just return the existing URL.
standardizeURL
can no longer be relied on to reliably grab the 'standard' URL and discard the rest. Again, think of better wording (is it obvious what "exact URL" is supposed to mean?).Above should be okay but will probably have some unforeseen issues.
I found this one: VLC
Doesn't look like any repos on this site have APKs attached to the releases. Could you provide the repo you made this issue for (assuming you had one)?
Closing this for now, the feature has been added in the latest version: https://github.com/ImranR98/Obtainium/releases/tag/v0.12.0-beta
Have not tried it with third-party gitlab repos so we may need to reopen this issue if it turns out not to work. Works with third-party F-Droid repos (see #393).
couldn't download these ones - https://git.torrents-csv.com/heretic/torrents-csv-android , https://forge.chapril.org/hardcoresushi/DroidFS
Gitlab and gitea/forgejo servers can be self hosted and the would have protocols that could be understand by obtainium. It would be nice to have an option to select what type of server the url is. Potentially it would be nice to add other servers as sources so that you can search on them.