Browse Source

Remove legacy code

rtmp_test
Philipp Hagemeister 12 years ago
parent
commit
9b14f51a3e
1 changed files with 0 additions and 5 deletions
  1. +0
    -5
      youtube_dl/FileDownloader.py

+ 0
- 5
youtube_dl/FileDownloader.py View File

@ -448,11 +448,6 @@ class FileDownloader(object):
if self.params.get('writeinfojson', False):
infofn = filename + u'.info.json'
self.report_writeinfojson(infofn)
try:
json.dump
except (NameError,AttributeError):
self.trouble(u'ERROR: No JSON encoder found. Update to Python 2.6+, setup a json module, or leave out --write-info-json.')
return
try:
json_info_dict = dict((k, v) for k,v in info_dict.items() if not k in ['urlhandle'])
write_json_file(json_info_dict, encodeFilename(infofn))


Loading…
Cancel
Save