mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	Use the new '_download_xml' helper in more extractors
This commit is contained in:
		| @@ -1,5 +1,4 @@ | ||||
| import os.path | ||||
| import xml.etree.ElementTree | ||||
|  | ||||
| from .common import InfoExtractor | ||||
| from ..utils import ( | ||||
| @@ -33,8 +32,7 @@ class MySpassIE(InfoExtractor): | ||||
|  | ||||
|         # get metadata | ||||
|         metadata_url = META_DATA_URL_TEMPLATE % video_id | ||||
|         metadata_text = self._download_webpage(metadata_url, video_id) | ||||
|         metadata = xml.etree.ElementTree.fromstring(metadata_text.encode('utf-8')) | ||||
|         metadata = self._download_xml(metadata_url, video_id) | ||||
|  | ||||
|         # extract values from metadata | ||||
|         url_flv_el = metadata.find('url_flv') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user