Skip to content

Commit

Permalink
Fixed linter warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
deepspy committed Jul 3, 2024
1 parent a4737bb commit 5b088cc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions youtube_dl/extractor/kankids.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

class KanKidsIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?' +\
DOMAIN.replace('.', '\.') + CONTENT_DIR +\
DOMAIN.replace('.', '\\.') + CONTENT_DIR +\
r'(?P<category>[a-z]+)-main/(?P<id>[\w\-0-9]+)/(?P<season>\w+)?/?$'
_TESTS = [
{
Expand Down Expand Up @@ -51,11 +51,11 @@ def _real_extract(self, url):
season = playlist_season if playlist_season else r'(?P<season>\w+)'
content_dir = CONTENT_DIR + category + r'-main/'
playlist = set(re.findall(
r'href="' + content_dir + # Content dir
series_id + r'/' + # Series
season + r'/' + # Season
r'(?P<id>[0-9]+)/"' + # Episode
r'.+title="(?P<title>.+)"', # Title
r'href="' + content_dir # Content dir
+ series_id + r'/' # Series
+ season + r'/' # Season
+ r'(?P<id>[0-9]+)/"' # Episode
+ r'.+title="(?P<title>.+)"', # Title
webpage))

entries = []
Expand All @@ -74,4 +74,3 @@ def _real_extract(self, url):
'title': series_title,
'entries': entries,
}

0 comments on commit 5b088cc

Please sign in to comment.