fdroiddata/metadata/com.github.niqdev.ipcam.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

49 lines
1 KiB
YAML

Categories:
- Internet
License: MIT
AuthorName: niqdev
AuthorEmail: niqdev.info@gmail.com
SourceCode: https://github.com/niqdev/ipcam-view
IssueTracker: https://github.com/niqdev/ipcam-view/issues
AutoName: IPCam Demo
Description: |-
Demo app for the <a href="https://github.com/niqdev/ipcam-view">ipcam-view library</a> with
current features handle basic authentication, multiple camera in one activity
and take snapshots.
RepoType: git
Repo: https://github.com/niqdev/ipcam-view.git
Builds:
- versionName: 1.7.0
versionCode: 10
commit: v1.7.0
subdir: app
gradle:
- yes
scandelete:
- mjpeg-view/src/main/jniLibs
- versionName: 1.8.0
versionCode: 11
commit: v1.8.0
subdir: app
gradle:
- yes
scandelete:
- mjpeg-view/src/main/jniLibs
- versionName: 1.9.0
versionCode: 12
commit: v1.9.0
subdir: app
gradle:
- yes
scandelete:
- mjpeg-view/src/main/jniLibs
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: 1.9.0
CurrentVersionCode: 12