Browse Source

[acast] clean podcast URLs

Remita Amine 4 years ago
parent
commit
0e96b4b5ce
1 changed files with 2 additions and 1 deletions
  1. 2 1
      youtube_dl/extractor/acast.py

+ 2 - 1
youtube_dl/extractor/acast.py

@@ -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'),