Skip to content

Commit

Permalink
Merge pull request #342 from ytdl-org/master
Browse files Browse the repository at this point in the history
[pull] master from ytdl-org:master
  • Loading branch information
pull[bot] authored Jul 31, 2019
2 parents b204647 + 826dcff commit e8a28f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def _real_main(argv=None):
if opts.verbose:
write_string('[debug] Batch file urls: ' + repr(batch_urls) + '\n')
except IOError:
sys.exit('ERROR: batch file could not be read')
sys.exit('ERROR: batch file %s could not be read' % opts.batchfile)
all_urls = batch_urls + [url.strip() for url in args] # batch_urls are already striped in read_batch_urls
_enc = preferredencoding()
all_urls = [url.decode(_enc, 'ignore') if isinstance(url, bytes) else url for url in all_urls]
Expand Down
1 change: 1 addition & 0 deletions youtube_dl/extractor/mgtv.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def _real_extract(self, url):
'http_headers': {
'Referer': url,
},
'format_note': stream.get('name'),
})
self._sort_formats(formats)

Expand Down

0 comments on commit e8a28f5

Please sign in to comment.