Commit cf4e8a40 authored by Hans-Christoph Steiner's avatar Hans-Christoph Steiner
Browse files

convert all MediaWiki links to HTML links

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 =
        text =
        print(f, link, text, flush=True)
        description = description.replace(, '<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
parent cc6460c6
......@@ -15,7 +15,7 @@ Description: |-
Speech (TTS) services while you are connected. Each paired Bluetooth device or
virtual device (home dock, car dock, power connection, or headset plug) can be
configured to your liking. There is a
[ manual] on the website.
<a href="">manual</a> on the website.
A secondary feature is the ability to capture location information so you can
find where you left your car. The location can also be automatically captured
......@@ -26,7 +26,7 @@ Description: |-
* Icon Shape selection on Android 8.0
For Pixel users, there’s also a
[ Magisk version].
<a href="">Magisk version</a>.
RepoType: git
......@@ -10,7 +10,7 @@ Description: |-
We use a patched fork authorized by the
[ original author] until main
<a href="">original author</a> until main
development is active again.
RepoType: git
......@@ -19,7 +19,7 @@ Description: |-
Key features:
* Free software ([ server] and client licensed under GPLv3)
* Free software (<a href="">server</a> and client licensed under GPLv3)
* Doesn’t use up a ton of battery life
* Up-to-date and current
* Doesn’t rely on Google infrastructure
......@@ -34,8 +34,7 @@ Description: |-
* Syncs automatically, regardless of whether the app is open
You can expect LibreNews to send you about three notifications per day if you
connect to the [ default server] [
connect to the <a href="">default server</a> <a href="">API</a>.
RepoType: git
......@@ -19,7 +19,7 @@ Description: |-
* Keepalive feature to prevent unnecessary disconnections
* Compatible with ARMv7, x86, and MIPS devices
* No root required
* Based on the popular [ OpenConnect Linux package]
* Based on the popular <a href="">OpenConnect Linux package</a>
......@@ -9,7 +9,7 @@ Changelog:
AutoName: Reader for Selfoss
Description: |-
A new RSS reader for [ selfoss].
A new RSS reader for <a href="">selfoss</a>.
It connects to your selfoss instance (works only with selfoss, and can't work
without it), and you'll be able to read and manage all your RSS feeds.
......@@ -15,7 +15,7 @@ Description: |-
Help with translating RxDroid to your language at
<a href=""></a>!
RepoType: git
......@@ -10,7 +10,7 @@ Bitcoin: 1GLTBBirbj8GZ8uY1gwovZ1QEMjfWu3rWT
AutoName: GLT Companion
Description: |-
Advanced schedule browser for the [ Grazer Linuxtage]
Advanced schedule browser for the <a href="">Grazer Linuxtage</a>
conference in Graz, Austria. Download the most recent schedule and browse it
......@@ -10,7 +10,7 @@ Description: |-
allow it to access. You can control the level of detail of the data collected
from within the app. The app comes preconfigured so as to collect data for
upstream's open 3G connectivity map,
[ Open3GMap]: it sends
<a href="">Open3GMap</a>: it sends
data once an hour when a WiFi connection is available, but the URLs and
frequency can be chosen.
......@@ -20,7 +20,7 @@ Description: |-
This is a re-issued version of The original app was
removed from the PlayStore due to TOS violations. More information in the
[ issue tracker].
<a href="">issue tracker</a>.
RepoType: git
......@@ -8,12 +8,10 @@ IssueTracker:
AutoName: X Server
Summary: Display remote X11 apps
Description: |-
X Server, allowing you to display [
X11] applications on your device. It could be used in conjunction with
X Server, allowing you to display <a href="">X11</a> applications on your device. It could be used in conjunction with to use graphical apps according to the
instructions on
this blog]
<a href="">this blog</a>
RepoType: git
......@@ -9,7 +9,7 @@ IssueTracker:
AutoName: InstaGrabber
Description: |-
[NOTE: this app is discontinued, use [ the maintained fork] instead]
[NOTE: this app is discontinued, use <a href="">the maintained fork</a> instead]
Hey moron, this is what you can do:
* you can search for hashtags and use usernames.
......@@ -19,7 +19,7 @@ Description: |-
Select your bike network, find some stations in the list or on the map
(OpenStreetMap) and you’re good to go!
Data is retrieved from the [ CityBikes] API.
Data is retrieved from the <a href="">CityBikes</a> API.
RepoType: git
......@@ -10,7 +10,7 @@ Changelog:
AutoName: FOSDEM Companion
Description: |-
Advanced schedule browser for the [ FOSDEM] conference in
Advanced schedule browser for the <a href="">FOSDEM</a> conference in
Brussels, Belgium. Download the most recent schedule and browse it offline.
......@@ -14,8 +14,8 @@ Description: |-
* If your smartphone encounters an unknown access point with a known name (for example, a malicious access point pretending to be your home network), it asks whether you trust this access point before connecting. This makes sure that other people are not able to steal your data.
Further details are discussed in two papers, a
[ short one] and
[ long version].
<a href="">short one</a> and
<a href="">long version</a>.
RepoType: git
......@@ -12,7 +12,7 @@ AutoName: BRouter
Description: |-
Sophisticated routing engine for offline cycling directions. Works as a
selectable navigation service within a mapping application like Check out the [ website] for a Check out the <a href="">website</a> for a
full description of features.
RepoType: git
......@@ -8,7 +8,7 @@ IssueTracker:
AutoName: Ridmik Dictionary
Description: |-
Based on's database. More info
[ here].
<a href="">here</a>.
RepoType: git
......@@ -9,7 +9,7 @@ IssueTracker:
Name: MidniteSolar Classic Monitor
AutoName: Classic
Description: |-
Unofficial status monitor for [ Midnite solar]’s
Unofficial status monitor for <a href="">Midnite solar</a>’s
Classic 150, 200, 250 Charge Controller. It is a Read Only Program, it does not
write to the Classic.
......@@ -23,7 +23,7 @@ Description: |-
Just install, enable, reboot, and you’re done. Get back to work.
Requires the [ Xposed framework]
Requires the <a href="">Xposed framework</a>
RequiresRoot: 'yes'
......@@ -12,7 +12,7 @@ Donate:
AutoName: TD
Description: |-
Watch video streams about gaming with this simple client for the
[ Twitch] streaming service.
<a href="">Twitch</a> streaming service.
RepoType: git
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment