]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/extractor/appletrailers.py
[YoutubeDL] Always set the '_filename' field in the info_dict (reported in #4053)
[youtube-dl.git] / youtube_dl / extractor / appletrailers.py
index 0c01fa1a13ffa6fbfbfe7b7fb2283d5ed4f8b70f..70621946d8a8c9de4437d36755d8476f65608318 100644 (file)
@@ -4,8 +4,8 @@ import re
 import json
 
 from .common import InfoExtractor
+from ..compat import compat_urlparse
 from ..utils import (
-    compat_urlparse,
     int_or_none,
 )
 
@@ -129,7 +129,9 @@ class AppleTrailersIE(InfoExtractor):
                 'thumbnail': thumbnail,
                 'upload_date': upload_date,
                 'uploader_id': uploader_id,
-                'user_agent': 'QuickTime compatible (youtube-dl)',
+                'http_headers': {
+                    'User-Agent': 'QuickTime compatible (youtube-dl)',
+                },
             })
 
         return {