mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	PEP8 applied
This commit is contained in:
		| @@ -102,7 +102,7 @@ class IviIE(InfoExtractor): | ||||
|         compilation = result['compilation'] | ||||
|         title = result['title'] | ||||
|  | ||||
|         title = '%s - %s' % (compilation, title) if compilation is not None else title   | ||||
|         title = '%s - %s' % (compilation, title) if compilation is not None else title | ||||
|  | ||||
|         previews = result['preview'] | ||||
|         previews.sort(key=lambda fmt: self._known_thumbnails.index(fmt['content_format'])) | ||||
| @@ -152,17 +152,17 @@ class IviCompilationIE(InfoExtractor): | ||||
|         compilation_id = mobj.group('compilationid') | ||||
|         season_id = mobj.group('seasonid') | ||||
|  | ||||
|         if season_id is not None: # Season link | ||||
|         if season_id is not None:  # Season link | ||||
|             season_page = self._download_webpage(url, compilation_id, 'Downloading season %s web page' % season_id) | ||||
|             playlist_id = '%s/season%s' % (compilation_id, season_id) | ||||
|             playlist_title = self._html_search_meta('title', season_page, 'title') | ||||
|             entries = self._extract_entries(season_page, compilation_id) | ||||
|         else: # Compilation link             | ||||
|         else:  # Compilation link | ||||
|             compilation_page = self._download_webpage(url, compilation_id, 'Downloading compilation web page') | ||||
|             playlist_id = compilation_id | ||||
|             playlist_title = self._html_search_meta('title', compilation_page, 'title') | ||||
|             seasons = re.findall(r'<a href="/watch/%s/season(\d+)">[^<]+</a>' % compilation_id, compilation_page) | ||||
|             if len(seasons) == 0: # No seasons in this compilation | ||||
|             if len(seasons) == 0:  # No seasons in this compilation | ||||
|                 entries = self._extract_entries(compilation_page, compilation_id) | ||||
|             else: | ||||
|                 entries = [] | ||||
| @@ -172,4 +172,4 @@ class IviCompilationIE(InfoExtractor): | ||||
|                         compilation_id, 'Downloading season %s web page' % season_id) | ||||
|                     entries.extend(self._extract_entries(season_page, compilation_id)) | ||||
|  | ||||
|         return self.playlist_result(entries, playlist_id, playlist_title) | ||||
|         return self.playlist_result(entries, playlist_id, playlist_title) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jouke Waleson
					Jouke Waleson