Merge pull request #1363 from Rudloff/defense
[youtube-dl] / youtube_dl / extractor / appletrailers.py
index 7d126e2d24203b60343052acdb362d941fd7d56e..8b191c19636087d89fe8505964292bcc6db3ba2b 100644 (file)
@@ -4,7 +4,6 @@ import xml.etree.ElementTree
 from .common import InfoExtractor
 from ..utils import (
     determine_ext,
-    ExtractorError,
 )
 
 
@@ -91,7 +90,7 @@ class AppleTrailersIE(InfoExtractor):
                 duration = 60 * int(m.group('minutes')) + int(m.group('seconds'))
 
             formats = []
-            for formats_el in li.findall('.//li/a'):
+            for formats_el in li.findall('.//a'):
                 if formats_el.attrib['class'] != 'OverlayPanel':
                     continue
                 target = formats_el.attrib['target']