Browse Source

Make sure URLs are always character strings (Fixes #2051)

totalwebcasting
Philipp Hagemeister 11 years ago
parent
commit
c774b3c696
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      youtube_dl/__init__.py

+ 2
- 0
youtube_dl/__init__.py View File

@ -522,6 +522,8 @@ def _real_main(argv=None):
sys.exit(u'ERROR: batch file could not be read')
all_urls = batchurls + args
all_urls = [url.strip() for url in all_urls]
_enc = preferredencoding()
all_urls = [url.decode(_enc, 'ignore') if isinstance(url, bytes) else url]
extractors = gen_extractors()


Loading…
Cancel
Save