mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-22 14:25:12 +00:00
[acast] clean podcast URLs
This commit is contained in:
parent
a563c97c5c
commit
0e96b4b5ce
@ -6,6 +6,7 @@ import re
|
|||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
clean_html,
|
clean_html,
|
||||||
|
clean_podcast_url,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
parse_iso8601,
|
parse_iso8601,
|
||||||
)
|
)
|
||||||
@ -17,7 +18,7 @@ class ACastBaseIE(InfoExtractor):
|
|||||||
info = {
|
info = {
|
||||||
'id': episode['id'],
|
'id': episode['id'],
|
||||||
'display_id': episode.get('episodeUrl'),
|
'display_id': episode.get('episodeUrl'),
|
||||||
'url': episode['url'],
|
'url': clean_podcast_url(episode['url']),
|
||||||
'title': title,
|
'title': title,
|
||||||
'description': clean_html(episode.get('description') or episode.get('summary')),
|
'description': clean_html(episode.get('description') or episode.get('summary')),
|
||||||
'thumbnail': episode.get('image'),
|
'thumbnail': episode.get('image'),
|
||||||
|
Loading…
Reference in New Issue
Block a user