mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-30 12:01:28 +00:00
ruff fixes
Authored by: bashonly
This commit is contained in:
parent
709fa17030
commit
19fa262ecb
|
@ -2083,10 +2083,7 @@
|
|||
from .thestar import TheStarIE
|
||||
from .thesun import TheSunIE
|
||||
from .theweatherchannel import TheWeatherChannelIE
|
||||
from .thirtydaysinger import (
|
||||
ThirtyDaySingerIE,
|
||||
ThirtyDaySingerPlaylistIE
|
||||
)
|
||||
from .thirtydaysinger import ThirtyDaySingerIE, ThirtyDaySingerPlaylistIE
|
||||
from .thisamericanlife import ThisAmericanLifeIE
|
||||
from .thisoldhouse import ThisOldHouseIE
|
||||
from .thisvid import (
|
||||
|
|
|
@ -1,10 +1,7 @@
|
|||
import re
|
||||
|
||||
from .wistia import WistiaBaseIE
|
||||
from ..utils import (
|
||||
clean_html,
|
||||
get_elements_html_by_class
|
||||
)
|
||||
from ..utils import clean_html, get_elements_html_by_class
|
||||
|
||||
|
||||
class ThirtyDaySingerBase(WistiaBaseIE):
|
||||
|
@ -28,7 +25,7 @@ def _extract_webpage_data(self, webpage):
|
|||
|
||||
return {
|
||||
'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`
|
||||
|
@ -38,7 +35,7 @@ def _format_html_list(self, html):
|
|||
'<ul>': '<br>',
|
||||
'</ul': '<br>',
|
||||
'<li>': '<br>- ',
|
||||
'</li>': ''
|
||||
'</li>': '',
|
||||
}
|
||||
|
||||
for k, v in replacements.items():
|
||||
|
@ -61,8 +58,8 @@ class ThirtyDaySingerIE(ThirtyDaySingerBase):
|
|||
'description': 'md5:d3291de8988be57b1d3e411126ba4d33',
|
||||
'duration': 344.22,
|
||||
'timestamp': 1559952526,
|
||||
'title': 'Welcome to 30 Day Singer'
|
||||
}
|
||||
'title': 'Welcome to 30 Day Singer',
|
||||
},
|
||||
}]
|
||||
|
||||
def _real_extract(self, url):
|
||||
|
@ -81,7 +78,7 @@ class ThirtyDaySingerPlaylistIE(ThirtyDaySingerBase):
|
|||
'title': '30 Day Beginner Course with Jonathan Estabrooks',
|
||||
},
|
||||
'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):
|
||||
|
|
Loading…
Reference in a new issue