fdroiddata/metadata/com.agateau.catgenerator.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

37 lines
964 B
YAML

Categories:
- Multimedia
License: Apache-2.0
AuthorName: Aurélien Gâteau
AuthorEmail: srv@agateau.com
SourceCode: https://github.com/agateau/cat-avatar-generator-app
IssueTracker: https://github.com/agateau/cat-avatar-generator-app/issues
Changelog: https://github.com/agateau/cat-avatar-generator-app/blob/HEAD/CHANGELOG.md
AutoName: Cat Avatar Generator
Description: |-
Generate avatar and profile pictures based on
<a href="http://www.peppercarrot.com/extras/html/2016_cat-generator/index.php">Pepper and
Carrot</a> by David Revoy.
RepoType: git
Repo: https://github.com/agateau/cat-avatar-generator-app
Builds:
- versionName: 0.1.0
versionCode: 1
commit: b5932276947ce50c5b85538b748769878f6f25c7
subdir: app
gradle:
- yes
- versionName: 0.2.0
versionCode: 2
commit: 0.2.0
subdir: app
gradle:
- yes
AutoUpdateMode: Version %v
UpdateCheckMode: Tags
CurrentVersion: 0.2.0
CurrentVersionCode: 2