From: Ciaran Gultnieks Date: Thu, 28 Jun 2012 11:51:48 +0000 (+0100) Subject: Support for FlattrID field in metadata X-Git-Tag: 0.1~804 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7377453360039eefc7eb6ff59e2ccc416def5bdf;p=fdroidserver.git Support for FlattrID field in metadata --- diff --git a/docs/fdroid.texi b/docs/fdroid.texi index 24496bcd..1d123590 100644 --- a/docs/fdroid.texi +++ b/docs/fdroid.texi @@ -410,6 +410,7 @@ The following sections describe the fields recognised within the file. * Source Code:: * Issue Tracker:: * Donate:: +* FlattrID:: * Summary:: * Description:: * Repo Type:: @@ -524,6 +525,15 @@ applications have one. The URL to donate to the project. This could be the project's donate page if it has one, or perhaps even a direct PayPal link. +@node FlattrID +@section FlattrID + +@cindex FlattrID + +The project's Flattr (http://flattr.com) ID, if it has one. This should be +a numeric ID, such that (for example) https://flattr.com/thing/xxxx leads +directly to the page to donate to the project. + @node Summary @section Summary diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 2a7024d1..f64d2dd3 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -362,6 +362,7 @@ def parse_metadata(metafile, **kw): thisinfo['Source Code'] = '' thisinfo['Issue Tracker'] = '' thisinfo['Donate'] = None + thisinfo['FlattrID'] = None thisinfo['Disabled'] = None thisinfo['AntiFeatures'] = None thisinfo['Update Check Mode'] = 'Market' @@ -498,6 +499,8 @@ def write_metadata(dest, app): writefield('Issue Tracker') if app['Donate']: writefield('Donate') + if app['FlattrID']: + writefield('FlattrID') mf.write('\n') if app['Name']: writefield('Name')