mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 20:07:08 -05:00 
			
		
		
		
	[godtube] Fix on Python 2.6
This commit is contained in:
		@@ -36,16 +36,16 @@ class GodTubeIE(InfoExtractor):
 | 
				
			|||||||
            'http://www.godtube.com/resource/mediaplayer/%s.xml' % video_id.lower(),
 | 
					            'http://www.godtube.com/resource/mediaplayer/%s.xml' % video_id.lower(),
 | 
				
			||||||
            video_id, 'Downloading player config XML')
 | 
					            video_id, 'Downloading player config XML')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        video_url = config.find('.//file').text
 | 
					        video_url = config.find('file').text
 | 
				
			||||||
        uploader = config.find('.//author').text
 | 
					        uploader = config.find('author').text
 | 
				
			||||||
        timestamp = parse_iso8601(config.find('.//date').text)
 | 
					        timestamp = parse_iso8601(config.find('date').text)
 | 
				
			||||||
        duration = parse_duration(config.find('.//duration').text)
 | 
					        duration = parse_duration(config.find('duration').text)
 | 
				
			||||||
        thumbnail = config.find('.//image').text
 | 
					        thumbnail = config.find('image').text
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        media = self._download_xml(
 | 
					        media = self._download_xml(
 | 
				
			||||||
            'http://www.godtube.com/media/xml/?v=%s' % video_id, video_id, 'Downloading media XML')
 | 
					            'http://www.godtube.com/media/xml/?v=%s' % video_id, video_id, 'Downloading media XML')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        title = media.find('.//title').text
 | 
					        title = media.find('title').text
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
            'id': video_id,
 | 
					            'id': video_id,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user