fdroiddata/metadata/com.theworld.help.cbtandroid.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

35 lines
1,003 B
YAML

Categories:
- Sports & Health
- Writing
License: GPL-3.0-only
WebSite: https://copoer.gitlab.io/CBTAndroid/
SourceCode: https://gitlab.com/copoer/CBTAndroid/tree/HEAD
IssueTracker: https://gitlab.com/copoer/CBTAndroid/issues
AutoName: CBTAndroid
Description: |-
A simple implementation of a seven column thought journal.
What is CBT:
CBT is a form of therapy that helps you restructure negative thoughts in order to improve your life
How to use:
When you find yourself feeling down, record the thoughts you are currently having. Then prove that those thoughts are wrong with facts. Finally come up with a new way of looking at the situation.
<a href="https://copoer.gitlab.io/CBTAndroid/">Learn More</a>
RepoType: git
Repo: https://gitlab.com/copoer/CBTAndroid.git
Builds:
- versionName: 0.0.4
versionCode: 3
commit: v0.0.4
subdir: app
gradle:
- yes
AutoUpdateMode: Version v%v
UpdateCheckMode: Tags
CurrentVersion: 0.0.4
CurrentVersionCode: 3