Skip to content

Commit

Permalink
Add support for shows.acast.com
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMesure committed Mar 17, 2024
1 parent a96a45b commit 2594f3c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions youtube_dl/extractor/acast.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ACastIE(ACastBaseIE):
_VALID_URL = r'''(?x)
https?://
(?:
(?:(?:embed|www)\.)?acast\.com/|
(?:(?:embed|www|shows)\.)?acast\.com/|
play\.acast\.com/s/
)
(?P<channel>[^/]+)/(?P<id>[^/#?]+)
Expand Down Expand Up @@ -77,6 +77,9 @@ class ACastIE(ACastBaseIE):
}, {
'url': 'https://play.acast.com/s/sparpodcast/2a92b283-1a75-4ad8-8396-499c641de0d9',
'only_matching': True,
}, {
'url': 'https://shows.acast.com/611233d8767fdf0012f22cb6/episodes/611233e4988b6a001394b5cf',
'only_matching': True,
}]

def _real_extract(self, url):
Expand All @@ -93,7 +96,7 @@ class ACastChannelIE(ACastBaseIE):
_VALID_URL = r'''(?x)
https?://
(?:
(?:www\.)?acast\.com/|
(?:www|shows\.)?acast\.com/|
play\.acast\.com/s/
)
(?P<id>[^/#?]+)
Expand All @@ -109,6 +112,9 @@ class ACastChannelIE(ACastBaseIE):
}, {
'url': 'http://play.acast.com/s/ft-banking-weekly',
'only_matching': True,
}, {
'url': 'https://shows.acast.com/611233d8767fdf0012f22cb6',
'only_matching': True,
}]

@classmethod
Expand Down

0 comments on commit 2594f3c

Please sign in to comment.