mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-04-14 19:46:54 +00:00
```python
import yaml, glob, re, os
from fdroidserver import metadata
pat = re.compile(r'\[(https?://[^ \]]+)\s+([^\]]+)\]')
for f in glob.glob('metadata/*.yml'):
with open(f) as fp:
data = yaml.load(fp)
description = data.get('Description', '')
for m in pat.finditer(data.get('Description', '')):
link = m.group(1)
text = m.group(2)
print(f, link, text, flush=True)
description = description.replace(m.group(), '<a href="%s">%s</a>' % (link, text))
data['Description'] = description
app = metadata.App(data)
metadata.write_metadata(f, app)
```
```
sed -i 's,^ - true, - yes,' metadata/*.yml
sed -i 's,^ - false, - no,' metadata/*.yml
```
closes fdroid-website#510
29 lines
903 B
YAML
29 lines
903 B
YAML
Categories:
|
|
- Games
|
|
- Multimedia
|
|
License: MIT
|
|
AuthorName: Stephen Just
|
|
AuthorEmail: stephenjust@gmail.com
|
|
AuthorWebSite: https://stephenjust.ca/
|
|
SourceCode: https://github.com/stephenjust/stkaddons-viewer
|
|
IssueTracker: https://github.com/stephenjust/stkaddons-viewer/issues
|
|
|
|
AutoName: STK Addon Viewer
|
|
Description: |-
|
|
View addons that are available for <a href="https://supertuxkart.net/">SuperTuxKart</a>, the
|
|
free and open-source cross-platform racing game! It lists addons and displays
|
|
some information and their images. It also lists music tracks which are
|
|
available from STK or addons and lets you play them.
|
|
|
|
RepoType: git
|
|
Repo: https://github.com/stephenjust/stkaddons-viewer
|
|
|
|
Builds:
|
|
- versionName: '0.3'
|
|
versionCode: 3
|
|
commit: edadd833b96b8669864f3d2714663e09516f904e
|
|
|
|
AutoUpdateMode: None
|
|
UpdateCheckMode: RepoManifest
|
|
CurrentVersion: '0.3'
|
|
CurrentVersionCode: 3
|