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
52 lines
1.1 KiB
YAML
52 lines
1.1 KiB
YAML
Categories:
|
|
- Reading
|
|
License: Apache-2.0
|
|
AuthorName: Zoe
|
|
AuthorWebSite: https://zoenb.github.io/
|
|
SourceCode: https://github.com/zoenb/vortaro
|
|
IssueTracker: https://github.com/zoenb/vortaro/issues
|
|
Changelog: https://github.com/zoenb/vortaro/releases
|
|
|
|
AutoName: Senreta Vortaro
|
|
Description: |-
|
|
Senreta Vortaro (Offline Dictionary) is an English-Esperanto dictionary app
|
|
inspired by the web page <a href="http://www.tujavortaro.net/">Tuja Vortaro</a>. It is
|
|
designed to be easy to use for beginners.
|
|
|
|
RepoType: git
|
|
Repo: https://github.com/zoenb/vortaro
|
|
|
|
Builds:
|
|
- versionName: '0.1'
|
|
versionCode: 1
|
|
commit: '0.1'
|
|
subdir: app
|
|
gradle:
|
|
- yes
|
|
|
|
- versionName: '0.2'
|
|
versionCode: 2
|
|
commit: '0.2'
|
|
subdir: app
|
|
gradle:
|
|
- yes
|
|
|
|
- versionName: '0.3'
|
|
versionCode: 3
|
|
disable: Could not find com.android.tools.build:gradle:3.0.1
|
|
commit: '0.3'
|
|
subdir: app
|
|
gradle:
|
|
- yes
|
|
|
|
- versionName: '0.5'
|
|
versionCode: 5
|
|
commit: '0.5'
|
|
subdir: app
|
|
gradle:
|
|
- yes
|
|
|
|
AutoUpdateMode: Version %v
|
|
UpdateCheckMode: Tags
|
|
CurrentVersion: '0.5'
|
|
CurrentVersionCode: 5
|