Skip to content

Obtainium not finding APK from GitLab when released using GitLab api URL #2711

@DarkCrypt

Description

@DarkCrypt

Prerequisites

Describe the bug
Obtainium doesn't find APK files from GitLab when released using a GitLab api URL.

To Reproduce

  1. Add app from GitLab using repo URL.
  2. APK file is released using a GitLab api URL.
  3. Obtainium doesn't find it.
  4. Same result adding as HTML source and using custom APK link filter.

More context discussed below.

Screenshots and Logs
N/A

Please complete the following information:

  • Device: Any
  • OS: Any
  • Obtainium Version: 1.2.9

Additional context
This issue was brought up in a discussion from the Obtainium app config repo.
Main discussion link: ImranR98/apps.obtainium.imranr.dev#1115.

Comment discussing the issue and useable workaround using the GitLab releases api URL for the repo: ImranR98/apps.obtainium.imranr.dev#1115 (comment).

Same comment copy/pasted:

You're not doing anything wrong. You're attempting to add the app for Obtainium to find it within the releases like you should. The problem is the APK file is released using the GitLab api URL and Obtainium isn't finding it for some reason. Obtainium also doesn't find it by changing the source URL to "HTML". Not sure why this is.

As I look at other app configs from GitLab I have that work correctly none of them are released using the GitLab api URL.

But I do have a working config using the GitLab releases api URL for the repo which I'll share as an export file because sharing as an HTML link also doesn't work correctly. When sharing as an HTML link Obtainium excludes 3 necessary characters from the URL which breaks the config. Not sure why this is either.

Storyteller export config:
Storyteller.json

Config breakdown (add manually if needed):

App source URL: https://gitlab.com/api/v4/projects/storyteller-platform%2Fstoryteller/releases
Override source: HTML
Version string extraction ReGex: \d+.\d+.\d+
Optional (included in export file)

App name: Storyteller
Author: Shane Friedman
About: A self-hosted platform for creating and reading ebooks with synced narration.

This comment also mentions Obtainium fails to share this config using the HTML link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions