Obtainium icon indicating copy to clipboard operation
Obtainium copied to clipboard

MJ PDF repo not working

Open berserkwarwolf opened this issue 3 years ago • 1 comments

https://gitlab.com/mudlej_android/mj_pdf_reader

It has a direct link to the APK in the releases section, packages. What is happening?

berserkwarwolf avatar Aug 31 '22 17:08 berserkwarwolf

The GitLab releases page cannot be scraped using the existing solution used in Obtainium, because the release info is dynamically loaded in with JavaScript. So the only way to currently get this info is through the tags RSS feed. Unfortunately it looks like this feed doesn't always contain a link to the release APK like I thought it did - it depends on how the app developer does things. Here's the Aurora Store RSS feed for comparison.

For now, nothing can be done until someone finds a way to scrape the releases page itself. I'll add a more informative error message about this later.

ImranR98 avatar Sep 01 '22 19:09 ImranR98

Closing as there does not seem to be any way to enable this.

ImranR98 avatar Nov 19 '22 21:11 ImranR98

~while trying out other open source apps like Obtainium, I've noticed that Android OSS Release Tracker supports adding GitLab repos.~

~Maybe it's worth checking out how it's done there?~

edit: while that app seems to detect the latest release version, it then merely links to it' s release webpage. It doesn't scrape that page to retrieve the link to the actual apk file. my bad.

m-rey avatar Jul 15 '23 02:07 m-rey

Not sure whether they actually scrape the APK file, but looking through their code reminded me that Obtainium now has an option to add a GitLab Access Token to enable search. The same token could be used to get release data via the API instead of the RSS feed (which is what it uses now).

The next update will use the GitLab API for better APK discovery, with the RSS feed as a fallback.

Thanks for bringing up this old issue.

ImranR98 avatar Jul 15 '23 03:07 ImranR98

Users with GitLab API keys can now add this repo: https://github.com/ImranR98/Obtainium/releases/tag/v0.13.16-beta

ImranR98 avatar Jul 15 '23 04:07 ImranR98

Apologies for resurrecting this - feel free to tell me if I should start a new discussion. But apparently the developer of MJ PDF no longer hosts apk's directly on GitLab: he links to a download page on archive.org, where the only direct download is a .zip file. So my question is twofold:

  1. Can Obtainium unpackage .zip files?
  2. If yes, is there any way to point it to navigate through the intermediate archive.org page to the download? (I'm aware that I could add the archive.org page directly as an HTML source, but it looks like that URL changes with every new release.)

My intermediate workaround is to download from the Izzyondroid repo, but that's not an ideal solution.

EDIT: just stumbled across https://github.com/ImranR98/Obtainium/issues/983, so it looks like the answer to my first question is 'no.'

foolishgrunt avatar Dec 16 '23 16:12 foolishgrunt