ImranR98 / apps.obtainium.imranr.dev

Collection of suggested apps for Obtainium.
https://apps.obtainium.imranr.dev
GNU General Public License v3.0
111 stars 33 forks source link

Add script to generate app config from Obtainium URL #96

Closed Hamster45105 closed 2 months ago

Hamster45105 commented 2 months ago

This PR adds a Python script that can convert an Obtainium redirect URL to a valid JSON file for this website.

When run it will ask whether you want to create a new app config or add a secondary config to an already existing one.

It will then take an Obtainium redirect URL and deal with it accordingly.

It sets the icon to null, categories to other and description (in English) to null to be added in later. It also sets altLabel to none if adding to an existing config.

NOTE: To use colorama has to be installed using pip install colorama

ImranR98 commented 2 months ago

Nice. I haven't tried it but looks good.