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:
parent
931a90e7da
commit
e61606eaf2
1 changed files with 1 additions and 13 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
from .common import InfoExtractor
|
||||
from .hotmart import HotmartIE
|
||||
from .wistia import WistiaIE
|
||||
from ..utils import (
|
||||
clean_html,
|
||||
extract_attributes,
|
||||
|
@ -191,8 +190,7 @@ def _real_extract(self, url):
|
|||
|
||||
hotmart_urls.append(hotmart_url)
|
||||
|
||||
wistia_urls = WistiaIE._extract_embed_urls(url, webpage)
|
||||
if not wistia_urls and not hotmart_urls:
|
||||
if not hotmart_urls:
|
||||
if any(re.search(p, webpage) for p in (
|
||||
r'class=["\']lecture-contents-locked',
|
||||
r'>\s*Lecture contents locked',
|
||||
|
@ -226,16 +224,6 @@ def _real_extract(self, url):
|
|||
chapter = sections[chapter_number - 1]
|
||||
|
||||
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:
|
||||
entries.append({
|
||||
'_type': 'url_transparent',
|
||||
|
|
Loading…
Reference in a new issue