A feature-rich command-line audio/video downloader
[ie/abc.net.au] Support listen URLs (#14389)
uoag0ea5d5882def
diff --git a/yt_dlp/extractor/abc.py b/yt_dlp/extractor/abc.pyindex 7296be73b3..2e6617842b 100644--- a/yt_dlp/extractor/abc.py+++ b/yt_dlp/extractor/abc.py@@ -21,7 +21,7 @@ from ..utils import (class ABCIE(InfoExtractor):IE_NAME = 'abc.net.au'- _VALID_URL = r'https?://(?:www\.)?abc\.net\.au/(?:news|btn)/(?:[^/]+/){1,4}(?P<id>\d{5,})'+ _VALID_URL = r'https?://(?:www\.)?abc\.net\.au/(?:news|btn|listen)/(?:[^/?#]+/){1,4}(?P<id>\d{5,})'_TESTS = [{'url': 'http://www.abc.net.au/news/2014-11-05/australia-to-staff-ebola-treatment-centre-in-sierra-leone/5868334',@@ -53,8 +53,9 @@ class ABCIE(InfoExtractor):'info_dict': {'id': '6880080','ext': 'mp3',- 'title': 'NAB lifts interest rates, following Westpac and CBA',+ 'title': 'NAB lifts interest rates, following Westpac and CBA - ABC listen','description': 'md5:f13d8edc81e462fce4a0437c7dc04728',+ 'thumbnail': r're:https://live-production\.wcms\.abc-cdn\.net\.au/2193d7437c84b25eafd6360c82b5fa21',},}, {'url': 'http://www.abc.net.au/news/2015-10-19/6866214',@@ -64,8 +65,9 @@ class ABCIE(InfoExtractor):'info_dict': {'id': '10527914','ext': 'mp4',- 'title': 'WWI Centenary',- 'description': 'md5:c2379ec0ca84072e86b446e536954546',+ 'title': 'WWI Centenary - Behind The News',+ 'description': 'md5:fa4405939ff750fade46ff0cd4c66a52',+ 'thumbnail': r're:https://live-production\.wcms\.abc-cdn\.net\.au/bcc3433c97bf992dff32ec5a768713c9',},}, {'url': 'https://www.abc.net.au/news/programs/the-world/2020-06-10/black-lives-matter-protests-spawn-support-for/12342074',@@ -73,7 +75,8 @@ class ABCIE(InfoExtractor):'id': '12342074','ext': 'mp4','title': 'Black Lives Matter protests spawn support for Papuans in Indonesia',- 'description': 'md5:2961a17dc53abc558589ccd0fb8edd6f',+ 'description': 'md5:625257209f2d14ce23cb4e3785da9beb',+ 'thumbnail': r're:https://live-production\.wcms\.abc-cdn\.net\.au/7ee6f190de6d7dbb04203e514bfae9ec',},}, {'url': 'https://www.abc.net.au/btn/newsbreak/btn-newsbreak-20200814/12560476',@@ -93,7 +96,16 @@ class ABCIE(InfoExtractor):'title': 'Wagner Group retreating from Russia, leader Prigozhin to move to Belarus','ext': 'mp4','description': 'Wagner troops leave Rostov-on-Don and\xa0Yevgeny Prigozhin will move to Belarus under a deal brokered by Belarusian President Alexander Lukashenko to end the mutiny.',- 'thumbnail': 'https://live-production.wcms.abc-cdn.net.au/0c170f5b57f0105c432f366c0e8e267b?impolicy=wcms_crop_resize&cropH=2813&cropW=5000&xPos=0&yPos=249&width=862&height=485',+ 'thumbnail': r're:https://live-production\.wcm\.abc-cdn\.net\.au/0c170f5b57f0105c432f366c0e8e267b',+ },+ }, {+ 'url': 'https://www.abc.net.au/listen/programs/the-followers-madness-of-two/presents-followers-madness-of-two/105697646',+ 'info_dict': {+ 'id': '105697646',+ 'title': 'INTRODUCING — The Followers: Madness of Two - ABC listen',+ 'ext': 'mp3',+ 'description': 'md5:2310cd0d440a4e01656abea15db8d1f3',+ 'thumbnail': r're:https://live-production\.wcms\.abc-cdn\.net\.au/90d7078214e5d66553ffb7fcf0da0cda',},}]