[downloader/f4m] Clarify that we should eventually just implement the DRM scheme...
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 30 Jan 2015 15:06:55 +0000 (16:06 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 30 Jan 2015 15:06:55 +0000 (16:06 +0100)
youtube_dl/downloader/f4m.py

index 29de7630d3de72bb9ba2cb8efccbe17644d3808f..13055a67e517d32740a9116fd14bf57e85036d2f 100644 (file)
@@ -238,13 +238,13 @@ class F4mFD(FileDownloader):
                   doc.findall(_add_ns('drmAdditionalHeaderSet'))):
             # If id attribute is missing it's valid for all media nodes
             # without drmAdditionalHeaderId or drmAdditionalHeaderSetId attribute
-            if not 'id' in e.attrib:
-                self.report_error('Media is DRM protected')
+            if 'id' not in e.attrib:
+                self.report_error('Missing ID in f4m DRM')
         media = list(filter(lambda e: 'drmAdditionalHeaderId' not in e.attrib and
                                       'drmAdditionalHeaderSetId' not in e.attrib,
                             media))
         if not media:
-            self.report_error('Media is DRM protected')
+            self.report_error('Unsupported DRM')
         return media
 
     def real_download(self, filename, info_dict):