mirror of https://github.com/yt-dlp/yt-dlp.git
parent
709fa17030
commit
19fa262ecb
|
@ -2083,10 +2083,7 @@ from .theplatform import (
|
||||||
from .thestar import TheStarIE
|
from .thestar import TheStarIE
|
||||||
from .thesun import TheSunIE
|
from .thesun import TheSunIE
|
||||||
from .theweatherchannel import TheWeatherChannelIE
|
from .theweatherchannel import TheWeatherChannelIE
|
||||||
from .thirtydaysinger import (
|
from .thirtydaysinger import ThirtyDaySingerIE, ThirtyDaySingerPlaylistIE
|
||||||
ThirtyDaySingerIE,
|
|
||||||
ThirtyDaySingerPlaylistIE
|
|
||||||
)
|
|
||||||
from .thisamericanlife import ThisAmericanLifeIE
|
from .thisamericanlife import ThisAmericanLifeIE
|
||||||
from .thisoldhouse import ThisOldHouseIE
|
from .thisoldhouse import ThisOldHouseIE
|
||||||
from .thisvid import (
|
from .thisvid import (
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from .wistia import WistiaBaseIE
|
from .wistia import WistiaBaseIE
|
||||||
from ..utils import (
|
from ..utils import clean_html, get_elements_html_by_class
|
||||||
clean_html,
|
|
||||||
get_elements_html_by_class
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
class ThirtyDaySingerBase(WistiaBaseIE):
|
class ThirtyDaySingerBase(WistiaBaseIE):
|
||||||
|
@ -28,7 +25,7 @@ class ThirtyDaySingerBase(WistiaBaseIE):
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'title': title or fallback_title,
|
'title': title or fallback_title,
|
||||||
'description': clean_html(self._format_html_list(description))
|
'description': clean_html(self._format_html_list(description)),
|
||||||
}
|
}
|
||||||
|
|
||||||
# The site makes extensive use of HTML lists for formatting and `clean_html`
|
# The site makes extensive use of HTML lists for formatting and `clean_html`
|
||||||
|
@ -38,7 +35,7 @@ class ThirtyDaySingerBase(WistiaBaseIE):
|
||||||
'<ul>': '<br>',
|
'<ul>': '<br>',
|
||||||
'</ul': '<br>',
|
'</ul': '<br>',
|
||||||
'<li>': '<br>- ',
|
'<li>': '<br>- ',
|
||||||
'</li>': ''
|
'</li>': '',
|
||||||
}
|
}
|
||||||
|
|
||||||
for k, v in replacements.items():
|
for k, v in replacements.items():
|
||||||
|
@ -61,8 +58,8 @@ class ThirtyDaySingerIE(ThirtyDaySingerBase):
|
||||||
'description': 'md5:d3291de8988be57b1d3e411126ba4d33',
|
'description': 'md5:d3291de8988be57b1d3e411126ba4d33',
|
||||||
'duration': 344.22,
|
'duration': 344.22,
|
||||||
'timestamp': 1559952526,
|
'timestamp': 1559952526,
|
||||||
'title': 'Welcome to 30 Day Singer'
|
'title': 'Welcome to 30 Day Singer',
|
||||||
}
|
},
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
@ -81,7 +78,7 @@ class ThirtyDaySingerPlaylistIE(ThirtyDaySingerBase):
|
||||||
'title': '30 Day Beginner Course with Jonathan Estabrooks',
|
'title': '30 Day Beginner Course with Jonathan Estabrooks',
|
||||||
},
|
},
|
||||||
'playlist_count': 1,
|
'playlist_count': 1,
|
||||||
'expected_warnings': ['This video is for premium members only']
|
'expected_warnings': ['This video is for premium members only'],
|
||||||
}]
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
|
|
Loading…
Reference in New Issue