From 788fcd4585432663480a23a83905ff6f8d91c866 Mon Sep 17 00:00:00 2001 From: Alex Seiler Date: Tue, 7 Feb 2017 05:00:33 +0100 Subject: [PATCH] [simplex] Fix format extraction for python 2.6 and 2.7 --- youtube_dl/extractor/simplex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/simplex.py b/youtube_dl/extractor/simplex.py index 7c5c67a48..dd5e0e101 100644 --- a/youtube_dl/extractor/simplex.py +++ b/youtube_dl/extractor/simplex.py @@ -48,7 +48,7 @@ class SimplexIE(InfoExtractor): def _known_simplex_format(self, simplex_formats, fid): for sf in simplex_formats: - if type(sf['id']) == str and sf['id'] == fid: + if sf['id'] == fid: return sf elif type(sf['id']) == list and fid in sf['id']: return sf