fdroiddata/metadata/com.olam.yml
Hans-Christoph Steiner cf4e8a40ff convert all MediaWiki links to HTML links
```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
2020-12-09 19:10:44 +01:00

27 lines
650 B
YAML

Categories:
- Reading
License: MIT
SourceCode: https://github.com/vishnus/Olam
IssueTracker: https://github.com/vishnus/Olam/issues
AutoName: Olam
Description: |-
Quickly search for the defintions of hundreds of thousands of English/ Malayalam
words. Based on the <a href="http://olam.in/">Olan webservice</a>.
RepoType: git
Repo: https://github.com/vishnus/Olam
Builds:
- versionName: '1.0'
versionCode: 1
commit: 58a698f9628abd6d180b03af120e25735bb0016a
rm:
- libs/*
extlibs:
- android/android-support-v4.jar
AutoUpdateMode: None
UpdateCheckMode: RepoManifest
CurrentVersion: '1.0'
CurrentVersionCode: 1