aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/heise.py
diff options
context:
space:
mode:
authorMats <d912e3@gmail.com>2014-09-27 21:12:23 +0200
committerMats <d912e3@gmail.com>2014-09-27 21:12:23 +0200
commit7b7518124ee433484b485502671e011017bc1897 (patch)
tree225ddde940c78fc05bb31c97e99ea9b8641371b6 /youtube_dl/extractor/heise.py
parent0155549d6cec6f49279ebe4a5a73cf6dcc6716fe (diff)
downloadyoutube-dl-7b7518124ee433484b485502671e011017bc1897.zip
youtube-dl-7b7518124ee433484b485502671e011017bc1897.tar.gz
youtube-dl-7b7518124ee433484b485502671e011017bc1897.tar.bz2
[heise] Don't check string type
Before Python 3 could be unicode, so don't check at all.
Diffstat (limited to 'youtube_dl/extractor/heise.py')
-rw-r--r--youtube_dl/extractor/heise.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/youtube_dl/extractor/heise.py b/youtube_dl/extractor/heise.py
index b3cb10f..73c9531 100644
--- a/youtube_dl/extractor/heise.py
+++ b/youtube_dl/extractor/heise.py
@@ -88,8 +88,7 @@ class HeiseIE(InfoExtractor):
for res, obj in rs.items():
format_id = '{0}_{1}'.format(t, res)
- if (not obj or not obj.get('url') or
- not isinstance(obj['url'], str)):
+ if not obj or not obj.get('url'):
self._warn('formats: {0}: no url', format_id)
continue
@@ -107,11 +106,11 @@ class HeiseIE(InfoExtractor):
self._sort_formats(formats)
info['formats'] = formats
- if config.get('poster') and isinstance(config['poster'], str):
+ if config.get('poster'):
info['thumbnail'] = config['poster']
date = get_meta_content('date', html)
- if date and isinstance(date, str):
+ if date:
try:
info['timestamp'] = parse_iso8601(date)
except ValueError as e: