From 55bfc836d046df89b4ab75affc3dfb1a4763edf7 Mon Sep 17 00:00:00 2001 From: doe1080 <98906116+doe1080@users.noreply.github.com> Date: Thu, 17 Jul 2025 01:02:59 +0900 Subject: [PATCH] LibsynIE --- yt_dlp/extractor/generic.py | 24 ------------------------ yt_dlp/extractor/libsyn.py | 34 ++++++++++++++++++++++++++++------ 2 files changed, 28 insertions(+), 30 deletions(-) diff --git a/yt_dlp/extractor/generic.py b/yt_dlp/extractor/generic.py index 9c1ebea21..ce96ec658 100644 --- a/yt_dlp/extractor/generic.py +++ b/yt_dlp/extractor/generic.py @@ -906,30 +906,6 @@ class GenericIE(InfoExtractor): 'title': 'Don’t Understand Bitcoin? This Man Will Mumble An Explanation At You', }, 'skip': 'Invalid URL', - }, { - # ✅79 - # LibsynIE - 'url': 'https://html5-player.libsyn.com/', - 'info_dict': { - 'id': '2378831', - 'ext': 'mp3', - 'title': 'md5:54108b15f98e1b4056612c10b50106b2', - 'duration': 3561.0, - 'thumbnail': r're:https?://assets\.libsyn\.com/secure/content/.+', - 'upload_date': '20130630', - }, - }, { - # ✅80 - # LibsynIE - 'url': 'https://undergroundwellness.com/podcasts/306-5-steps-to-permanent-gut-healing/', - 'info_dict': { - 'id': '3793998', - 'ext': 'mp3', - 'title': 'Underground Wellness Radio - Jack Tips: 5 Steps to Permanent Gut Healing', - 'duration': 3989.0, - 'thumbnail': 'https://assets.libsyn.com/secure/item/3793998/?height=90&width=90', - 'upload_date': '20141126', - }, }, { # ✅124 # YoutubeIE diff --git a/yt_dlp/extractor/libsyn.py b/yt_dlp/extractor/libsyn.py index 4ca521a10..8772fb763 100644 --- a/yt_dlp/extractor/libsyn.py +++ b/yt_dlp/extractor/libsyn.py @@ -18,12 +18,10 @@ class LibsynIE(InfoExtractor): 'info_dict': { 'id': '6385796', 'ext': 'mp3', - 'title': 'Champion Minded - Developing a Growth Mindset', - # description fetched using another request: - # http://html5-player.libsyn.com/embed/getitemdetails?item_id=6385796 - # 'description': 'In this episode, Allistair talks about the importance of developing a growth mindset, not only in sports, but in life too.', + 'title': 'The Allistair McCaw Podcast - Developing a Growth Mindset', + 'duration': 834.0, + 'thumbnail': r're:https?://assets\.libsyn\.com/.+', 'upload_date': '20180320', - 'thumbnail': 're:^https?://.*', }, }, { 'url': 'https://html5-player.libsyn.com/embed/episode/id/3727166/height/75/width/200/theme/standard/direction/no/autoplay/no/autonext/no/thumbnail/no/preload/no/no_addthis/no/', @@ -32,8 +30,32 @@ class LibsynIE(InfoExtractor): 'id': '3727166', 'ext': 'mp3', 'title': 'Clients From Hell Podcast - How a Sex Toy Company Kickstarted my Freelance Career', + 'thumbnail': r're:https?://assets\.libsyn\.com/.+', 'upload_date': '20150818', - 'thumbnail': 're:^https?://.*', + }, + 'skip': 'Invalid URL', + }] + _WEBPAGE_TESTS = [{ + 'url': 'https://html5-player.libsyn.com/', + 'md5': '50cff329596b8f674d4449ed077ef2f9', + 'info_dict': { + 'id': '2378831', + 'ext': 'mp3', + 'title': 'md5:54108b15f98e1b4056612c10b50106b2', + 'duration': 3561.0, + 'thumbnail': r're:https?://assets\.libsyn\.com/.+', + 'upload_date': '20130630', + }, + }, { + 'url': 'https://undergroundwellness.com/podcasts/306-5-steps-to-permanent-gut-healing/', + 'md5': '23576952577f9604520a730d90371761', + 'info_dict': { + 'id': '3793998', + 'ext': 'mp3', + 'title': 'Underground Wellness Radio - Jack Tips: 5 Steps to Permanent Gut Healing', + 'duration': 3989.0, + 'thumbnail': r're:https?://assets\.libsyn\.com/.+', + 'upload_date': '20141126', }, }]