[IndavideoEmbed] use __bool__ instead of None comparison

per request of @dstftw in #16174
This commit is contained in:
András Veres-Szentkirályi 2018-04-14 21:05:31 +02:00
parent 952fb8b8a1
commit acb14703ba

View File

@ -98,7 +98,7 @@ class IndavideoEmbedIE(InfoExtractor):
def video_url_to_format(self, video_url, filesh):
height = int_or_none(self._search_regex(
r'\.(\d{3,4})\.mp4(?:\?|$)', video_url, 'height', default=None))
if height is not None and filesh is not None:
if height and filesh:
token = filesh.get(str(height))
if token is not None:
us = urlsplit(video_url)