mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-07-26 16:54:09 +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
30 lines
648 B
YAML
30 lines
648 B
YAML
AntiFeatures:
|
|
- NonFreeNet
|
|
Categories:
|
|
- Multimedia
|
|
- Internet
|
|
License: GPL-3.0-only
|
|
SourceCode: https://github.com/CiTuX/TD
|
|
IssueTracker: https://github.com/CiTuX/TD/issues
|
|
Changelog: https://github.com/CiTuX/TD/releases
|
|
Donate: http://citux.tip.me
|
|
|
|
AutoName: TD
|
|
Description: |-
|
|
Watch video streams about gaming with this simple client for the
|
|
<a href="http://twitch.tv">Twitch</a> streaming service.
|
|
|
|
RepoType: git
|
|
Repo: https://github.com/CiTuX/TD
|
|
|
|
Builds:
|
|
- versionName: 0.5.0
|
|
versionCode: 16
|
|
commit: 0.5.0
|
|
gradle:
|
|
- yes
|
|
|
|
AutoUpdateMode: None
|
|
UpdateCheckMode: Tags
|
|
CurrentVersion: 0.5.0
|
|
CurrentVersionCode: 16
|