fdroiddata/metadata/com.concentricsky.android.khan.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

44 lines
1.6 KiB
YAML

Categories:
- Science & Education
License: GPL-3.0-only
WebSite: http://viewerforkhanacademy.com
SourceCode: https://github.com/concentricsky/android-viewer-for-khan-academy
IssueTracker: https://github.com/concentricsky/android-viewer-for-khan-academy/issues
Name: Khan Academy viewer
AutoName: Viewer for Khan Academy
Description: |-
View <a href="http://khanacademy.org">Khan Academy</a>'s library of over 4,000 educational
videos. Topics covered include: general science, biology, chemistry, physics,
math, finance, history, the humanities, and more.
Khan Academy's library of videos is available free of charge. Teachers,
students, scientists - people form all walks of life - will find Khan Academy's
materials immensely valuable and engaging.
You can take individual videos, or entire topics offline to watch when you don't
have a network connection. Follow along, skip ahead, or go back by navigating
subtitles, and connect with your Khan Academy user account to track your work
and earn achievements.
RepoType: git
Repo: https://github.com/concentricsky/android-viewer-for-khan-academy.git
Builds:
- versionName: 1.2.2
versionCode: 14
commit: 13566d739dc674
patch:
- pom_14.patch
maven: 'yes'
extlibs:
- android/android-support-v4r11.jar
prebuild:
- cp oauth_credentials.json.sample res/raw/oauth_credentials.json
- $$MVN3$$ install:install-file -DgroupId=com.google.android -DartifactId=support-v4
-Dversion=r11 -Dpackaging=jar -Dfile=libs/android-support-v4r11.jar
AutoUpdateMode: None
UpdateCheckMode: RepoManifest
CurrentVersion: 1.2.2
CurrentVersionCode: 14