Skip to content

Commit 6af9108

Browse files
author
E.S. Rosenberg a.k.a. Keeper of the Keys
committed
Handle both http and https
1 parent 0ee13e9 commit 6af9108

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/gpodder/plugins/soundcloud.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def get_new_episodes(self, channel):
271271

272272
@registry.feed_handler.register
273273
def soundcloud_feed_handler(channel, max_episodes, config):
274-
m = re.match(r'https://([a-z]+\.)?soundcloud\.com/([^/]+)$', channel.url, re.I)
274+
m = re.match(r'https?://([a-z]+\.)?soundcloud\.com/([^/]+)$', channel.url, re.I)
275275

276276
if m is not None:
277277
subdomain, username = m.groups()
@@ -280,7 +280,7 @@ def soundcloud_feed_handler(channel, max_episodes, config):
280280

281281
@registry.feed_handler.register
282282
def soundcloud_fav_feed_handler(channel, max_episodes, config):
283-
m = re.match(r'https://([a-z]+\.)?soundcloud\.com/([^/]+)/favorites', channel.url, re.I)
283+
m = re.match(r'https?://([a-z]+\.)?soundcloud\.com/([^/]+)/favorites', channel.url, re.I)
284284

285285
if m is not None:
286286
subdomain, username = m.groups()

0 commit comments

Comments
 (0)