Skip to content

Commit

Permalink
Fixed flake8 errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
deepspy committed Jun 24, 2024
1 parent d3e980e commit a4737bb
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions youtube_dl/extractor/kankids.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
CONTENT_DIR = r'/content/kids/'
DOMAIN = r'kankids.org.il'


class KanKidsIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?' +\
DOMAIN.replace('.', '\.') + CONTENT_DIR +\
Expand All @@ -18,7 +19,7 @@ class KanKidsIE(InfoExtractor):
'_type': 'playlist',
'id': 'p-11732',
'title': 'בית ספר לקוסמים',
},
},
'playlist_count': 60,
},
{
Expand All @@ -27,17 +28,17 @@ class KanKidsIE(InfoExtractor):
'_type': 'playlist',
'id': 'cramel_main',
'title': 'כראמל - עונה 1',
},
},
'playlist_count': 21,
},
]
]

def _real_extract(self, url):
m = super()._match_valid_url(url)
series_id = m.group('id')
category = m.group('category')
playlist_season = m.group('season')

webpage = self._download_webpage(url, series_id)

title_pattern = r'<title>(?P<title>.+) \|'
Expand All @@ -54,8 +55,8 @@ def _real_extract(self, url):
series_id + r'/' + # Series
season + r'/' + # Season
r'(?P<id>[0-9]+)/"' + # Episode
r'.+title="(?P<title>.+)"' # Title
, webpage))
r'.+title="(?P<title>.+)"', # Title
webpage))

entries = []
content_dir = r'https://www.' + DOMAIN + content_dir
Expand All @@ -65,12 +66,12 @@ def _real_extract(self, url):
ie='Generic',
video_id=video_id,
video_title=title,
))
))

return {
'_type': 'playlist',
'id': series_id,
'title': series_title,
'entries': entries,
}
}

0 comments on commit a4737bb

Please sign in to comment.