[ard] Fix two flake8 errors

This commit is contained in:
TinyToweringTree 2019-09-01 17:22:15 +02:00
parent 767878189b
commit 716514b92b

View File

@ -744,7 +744,7 @@ class ARDMediathekIE(ARDMediathekBaseIE):
# different servers.
duplicate = next((x for x in formats
if url_basename(x['url']) == url_basename(
format_url)),
format_url)),
None)
if duplicate:
continue
@ -893,7 +893,7 @@ class ARDMediathekPlaylistIE(ARDMediathekBaseIE):
# response.
'Content-type': 'application/json',
'Accept': '*/*', }
query_str = self._build_query_str(client, playlist_id, page_number)
query_str = self._build_query_str(client, playlist_id, page_number)
try:
note = 'Downloading video IDs (page {})'.format(page_number)