[acast] clean podcast URLs
authorRemita Amine <remitamine@gmail.com>
Sun, 3 Jan 2021 23:53:58 +0000 (00:53 +0100)
committerRemita Amine <remitamine@gmail.com>
Mon, 4 Jan 2021 00:14:26 +0000 (01:14 +0100)
youtube_dl/extractor/acast.py

index 60378db1be3eeabb1a2907754588442f22dd0e08..b9355a2c81d2c47dae19b0c6d252b08c3d428b43 100644 (file)
@@ -6,6 +6,7 @@ import re
 from .common import InfoExtractor
 from ..utils import (
     clean_html,
+    clean_podcast_url,
     int_or_none,
     parse_iso8601,
 )
@@ -17,7 +18,7 @@ class ACastBaseIE(InfoExtractor):
         info = {
             'id': episode['id'],
             'display_id': episode.get('episodeUrl'),
-            'url': episode['url'],
+            'url': clean_podcast_url(episode['url']),
             'title': title,
             'description': clean_html(episode.get('description') or episode.get('summary')),
             'thumbnail': episode.get('image'),