mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[moviefap] Fix dictionary comprehension syntax incompatible with Python 2.6
This commit is contained in:
		@@ -48,17 +48,19 @@ class MovieFapIE(InfoExtractor):
 | 
				
			|||||||
            return []
 | 
					            return []
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # get the required information from the XML
 | 
					        # get the required information from the XML
 | 
				
			||||||
        attrs = {attr: str_to_int(timeline.find(attr).text)
 | 
					        width = str_to_int(timeline.find('imageWidth').text)
 | 
				
			||||||
                 for attr in ['imageWidth', 'imageHeight', 'imageFirst', 'imageLast']}
 | 
					        height = str_to_int(timeline.find('imageHeight').text)
 | 
				
			||||||
 | 
					        first = str_to_int(timeline.find('imageFirst').text)
 | 
				
			||||||
 | 
					        last = str_to_int(timeline.find('imageLast').text)
 | 
				
			||||||
        pattern = timeline.find('imagePattern').text
 | 
					        pattern = timeline.find('imagePattern').text
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # generate the list of thumbnail information dicts
 | 
					        # generate the list of thumbnail information dicts
 | 
				
			||||||
        thumbnails = []
 | 
					        thumbnails = []
 | 
				
			||||||
        for i in range(attrs['imageFirst'], attrs['imageLast'] + 1):
 | 
					        for i in range(first, last + 1):
 | 
				
			||||||
            thumbnails.append({
 | 
					            thumbnails.append({
 | 
				
			||||||
                'url': pattern.replace('#', str(i)),
 | 
					                'url': pattern.replace('#', str(i)),
 | 
				
			||||||
                'width': attrs['imageWidth'],
 | 
					                'width': width,
 | 
				
			||||||
                'height': attrs['imageHeight']
 | 
					                'height': height
 | 
				
			||||||
            })
 | 
					            })
 | 
				
			||||||
        return thumbnails
 | 
					        return thumbnails
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user