0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-10-31 23:02:40 +00:00

[ie/teachable] Remove Wistia support

This commit is contained in:
Abdessamad DERRAZ 2023-10-24 21:25:57 +02:00
parent 931a90e7da
commit e61606eaf2

View file

@ -2,7 +2,6 @@
from .common import InfoExtractor from .common import InfoExtractor
from .hotmart import HotmartIE from .hotmart import HotmartIE
from .wistia import WistiaIE
from ..utils import ( from ..utils import (
clean_html, clean_html,
extract_attributes, extract_attributes,
@ -191,8 +190,7 @@ def _real_extract(self, url):
hotmart_urls.append(hotmart_url) hotmart_urls.append(hotmart_url)
wistia_urls = WistiaIE._extract_embed_urls(url, webpage) if not hotmart_urls:
if not wistia_urls and not hotmart_urls:
if any(re.search(p, webpage) for p in ( if any(re.search(p, webpage) for p in (
r'class=["\']lecture-contents-locked', r'class=["\']lecture-contents-locked',
r'>\s*Lecture contents locked', r'>\s*Lecture contents locked',
@ -226,16 +224,6 @@ def _real_extract(self, url):
chapter = sections[chapter_number - 1] chapter = sections[chapter_number - 1]
entries = [] entries = []
for wistia_url in wistia_urls:
entries.append({
'_type': 'url_transparent',
'url': wistia_url,
'ie_key': WistiaIE.ie_key(),
'title': title,
'chapter': chapter,
'chapter_number': chapter_number,
})
for hotmart_url in hotmart_urls: for hotmart_url in hotmart_urls:
entries.append({ entries.append({
'_type': 'url_transparent', '_type': 'url_transparent',