浏览代码

[bbc] PEP 8

Sergey M․ 9 年之前
父节点
当前提交
aaa42cf0cf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      youtube_dl/extractor/bbc.py

+ 2 - 2
youtube_dl/extractor/bbc.py

@@ -339,7 +339,7 @@ class BBCCoUkIE(InfoExtractor):
                             href, programme_id, f4m_id=format_id, fatal=False))
                             href, programme_id, f4m_id=format_id, fatal=False))
                     else:
                     else:
                         if not service and not supplier and bitrate:
                         if not service and not supplier and bitrate:
-                            format_id += '-%d' %  bitrate
+                            format_id += '-%d' % bitrate
                         fmt = {
                         fmt = {
                             'format_id': format_id,
                             'format_id': format_id,
                             'filesize': file_size,
                             'filesize': file_size,
@@ -945,7 +945,7 @@ class BBCIE(BBCCoUkIE):
             r'setPlaylist\("(%s)"\)' % EMBED_URL, webpage))
             r'setPlaylist\("(%s)"\)' % EMBED_URL, webpage))
         if entries:
         if entries:
             return self.playlist_result(
             return self.playlist_result(
-                [self.url_result(entry, 'BBCCoUk') for entry in entries],
+                [self.url_result(entry_, 'BBCCoUk') for entry_ in entries],
                 playlist_id, playlist_title, playlist_description)
                 playlist_id, playlist_title, playlist_description)
 
 
         # Multiple video article (e.g. http://www.bbc.com/news/world-europe-32668511)
         # Multiple video article (e.g. http://www.bbc.com/news/world-europe-32668511)