diff options
author | Remita Amine <remitamine@gmail.com> | 2017-04-12 20:38:43 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2017-04-12 20:38:43 +0100 |
commit | 40fcba5edb0f54f09e33a193a0ffefb5668ca694 (patch) | |
tree | 28f40ca64f30e71cbce96cbf069ce5121afd715c /youtube_dl/extractor/bbc.py | |
parent | e4d74e2778ca283330460d893a0923820a74df66 (diff) |
improve coding style
Diffstat (limited to 'youtube_dl/extractor/bbc.py')
-rw-r--r-- | youtube_dl/extractor/bbc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/bbc.py b/youtube_dl/extractor/bbc.py index 0e05b782b..dd65b8d86 100644 --- a/youtube_dl/extractor/bbc.py +++ b/youtube_dl/extractor/bbc.py @@ -409,7 +409,7 @@ class BBCCoUkIE(InfoExtractor): description = smp_config['summary'] for item in smp_config['items']: kind = item['kind'] - if kind != 'programme' and kind != 'radioProgramme': + if kind not in ('programme', 'radioProgramme'): continue programme_id = item.get('vpid') duration = int_or_none(item.get('duration')) @@ -450,7 +450,7 @@ class BBCCoUkIE(InfoExtractor): for item in self._extract_items(playlist): kind = item.get('kind') - if kind != 'programme' and kind != 'radioProgramme': + if kind not in ('programme', 'radioProgramme'): continue title = playlist.find('./{%s}title' % self._EMP_PLAYLIST_NS).text description_el = playlist.find('./{%s}summary' % self._EMP_PLAYLIST_NS) |