mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-13 14:37:43 +01:00
[allocine] Use xpath_element
This commit is contained in:
parent
566bda51f2
commit
dc4fe5c6d7
@ -9,6 +9,7 @@
|
||||
from ..utils import (
|
||||
qualities,
|
||||
unescapeHTML,
|
||||
xpath_element,
|
||||
)
|
||||
|
||||
|
||||
@ -71,7 +72,7 @@ def _real_extract(self, url):
|
||||
|
||||
xml = self._download_xml('http://www.allocine.fr/ws/AcVisiondataV4.ashx?media=%s' % video_id, display_id)
|
||||
|
||||
video = xml.find('./AcVisionVideo').attrib
|
||||
video = xpath_element(xml, './/AcVisionVideo').attrib
|
||||
quality = qualities(['ld', 'md', 'hd'])
|
||||
|
||||
formats = []
|
||||
|
Loading…
Reference in New Issue
Block a user