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
27 lines
816 B
YAML
27 lines
816 B
YAML
Categories:
|
|
- Navigation
|
|
License: GPL-2.0-only
|
|
SourceCode: https://sourceforge.net/p/libwlocate/code
|
|
IssueTracker: https://sourceforge.net/p/libwlocate
|
|
|
|
AutoName: LocDemo
|
|
Description: |-
|
|
Uses the libwlocate library to get the current geographic position, then
|
|
downloads the related map tiles from the <a href="http://www.openstreetmap.org
|
|
OpenStreetMap">project</a> and displays them within the main screen. The calculated
|
|
geographic position is highlighted with a red circle. Its radius differs and
|
|
depends on the quality of the returned location result.
|
|
|
|
RepoType: srclib
|
|
Repo: libwlocate
|
|
|
|
Builds:
|
|
- versionName: '2.0'
|
|
versionCode: 20
|
|
commit: 64f797
|
|
subdir: master/android/LocDemo
|
|
|
|
AutoUpdateMode: None
|
|
UpdateCheckMode: RepoManifest
|
|
CurrentVersion: '2.0'
|
|
CurrentVersionCode: 20
|