fdroiddata/metadata/com.halftough.webcomreader.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
972 B
YAML

Categories:
- Reading
License: GPL-3.0-only
SourceCode: https://gitlab.com/halftough/webcom-reader
IssueTracker: https://gitlab.com/halftough/webcom-reader/issues
AutoName: Tinte Webcoms
Description: |-
''Webcom Reader'' allows you to pick webcomics from supported titles and
add them to your library. Marks read, download them to read offline.
List of working webcoms:
* <a href="https://www.xkcd.com/">xkcd</a>
* <a href="http://www.lunarbaboon.com/">Lunarbaboon</a>
* <a href="http://explosm.net/">Cyanide & Happiness</a>
List of planned webcoms:
* <a href="http://dilbert.com/">Dilbert</a>
* <a href="https://www.peppercarrot.com/">Pepper & Carrot</a>
RepoType: git
Repo: https://gitlab.com/halftough/webcom-reader.git
Builds:
- versionName: 0.2.0
versionCode: 4
commit: v0.2.0
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: 0.2.0
CurrentVersionCode: 4