diff options
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
| -rwxr-xr-x | youtube_dl/YoutubeDL.py | 7 | 
1 files changed, 5 insertions, 2 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index 5c875b497..fde026fbf 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -624,7 +624,7 @@ class YoutubeDL(object):              return self.process_ie_result(                  new_result, download=download, extra_info=extra_info) -        elif result_type == 'playlist': +        elif result_type == 'playlist' or result_type == 'multi_video':              # We process each entry in the playlist              playlist = ie_result.get('title', None) or ie_result.get('id', None)              self.to_screen('[download] Downloading playlist: %s' % playlist) @@ -679,6 +679,9 @@ class YoutubeDL(object):              ie_result['entries'] = playlist_results              return ie_result          elif result_type == 'compat_list': +            self.report_warning( +                'Extractor %s returned a compat_list result. ' +                'It needs to be updated.' % ie_result.get('extractor'))              def _fixup(r):                  self.add_extra_info(r,                      { @@ -1001,7 +1004,7 @@ class YoutubeDL(object):              else:                  self.to_screen('[info] Writing video description metadata as JSON to: ' + infofn)                  try: -                    write_json_file(info_dict, encodeFilename(infofn)) +                    write_json_file(info_dict, infofn)                  except (OSError, IOError):                      self.report_error('Cannot write metadata to JSON file ' + infofn)                      return  | 
