fdroiddata/metadata/com.isanexusdev.androidcpg.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

47 lines
1,011 B
YAML

Categories:
- Multimedia
- Internet
License: LGPL-3.0-only
SourceCode: https://github.com/IsaNexusDev/androidcpg
IssueTracker: https://github.com/IsaNexusDev/androidcpg/issues
AutoName: AndroidCPG
Description: |-
Upload photos and videos to your coppermine gallery through the standard "Share"
menu.
See: <a href="http://forum.coppermine-gallery.net/index.php/topic,77788">Coppermine</a>
RepoType: git
Repo: https://github.com/IsaNexusDev/androidcpg
Builds:
- versionName: '1.1'
versionCode: 2
commit: 1dc066fc9e61
subdir: Android
- versionName: '1.2'
versionCode: 3
commit: c708b217d607
subdir: Android
- versionName: '1.3'
versionCode: 4
commit: 9119c50742b8
subdir: Android
- versionName: '1.4'
versionCode: 5
commit: 87ddde36ee84
subdir: Android
- versionName: '1.5'
versionCode: 6
commit: d9b924652f
subdir: Android
AutoUpdateMode: None
UpdateCheckMode: RepoManifest
CurrentVersion: '1.5'
CurrentVersionCode: 6