[cloudy] Minor changes
This commit is contained in:
		@@ -8,6 +8,7 @@ from ..utils import (
 | 
				
			|||||||
    ExtractorError,
 | 
					    ExtractorError,
 | 
				
			||||||
    compat_parse_qs,
 | 
					    compat_parse_qs,
 | 
				
			||||||
    compat_urllib_parse,
 | 
					    compat_urllib_parse,
 | 
				
			||||||
 | 
					    remove_end,
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -52,13 +53,15 @@ class CloudyIE(InfoExtractor):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        title = data.get('title', [None])[0]
 | 
					        title = data.get('title', [None])[0]
 | 
				
			||||||
        if title:
 | 
					        if title:
 | 
				
			||||||
            title = title.replace('&asdasdas', '').strip()
 | 
					            title = remove_end(title, '&asdasdas').strip()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        formats = []
 | 
					        formats = []
 | 
				
			||||||
        formats.append({
 | 
					        video_url = data.get('url', [None])[0]
 | 
				
			||||||
            'format_id': 'sd',
 | 
					        if video_url:
 | 
				
			||||||
            'url': data.get('url', [None])[0],
 | 
					            formats.append({
 | 
				
			||||||
        })
 | 
					                'format_id': 'sd',
 | 
				
			||||||
 | 
					                'url': video_url,
 | 
				
			||||||
 | 
					            })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
            'id': video_id,
 | 
					            'id': video_id,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user