From 3f45e4c12811f607db68ab1d513ded0053ae9583 Mon Sep 17 00:00:00 2001 From: Pierre Date: Fri, 29 Mar 2024 13:25:42 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: dirkf --- youtube_dl/extractor/acast.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/youtube_dl/extractor/acast.py b/youtube_dl/extractor/acast.py index c8d0aae8b..7ea4d153c 100644 --- a/youtube_dl/extractor/acast.py +++ b/youtube_dl/extractor/acast.py @@ -48,9 +48,9 @@ class ACastIE(ACastBaseIE): _VALID_URL = r'''(?x) https?:// (?: - (?:(?:embed|www|shows)\.)?acast\.com/| - play\.acast\.com/s/ - ) + (?:(?:(?Pembed)|www|shows)\.)?acast\.com| + play\.acast\.com/s + )/(?(embed)(?:$/)?) (?P[^/]+)/(?P[^/#?]+) ''' _TESTS = [{ @@ -96,7 +96,7 @@ class ACastChannelIE(ACastBaseIE): _VALID_URL = r'''(?x) https?:// (?: - (?:www|shows\.)?acast\.com/| + (?:(?:www|shows)\.)?acast\.com/| play\.acast\.com/s/ ) (?P[^/#?]+)