1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-06-30 05:01:21 +02:00

[bbccouk] PEP8

This commit is contained in:
Sergey M․ 2020-05-14 05:11:42 +07:00
parent 9d8f3a12a6
commit 327593257c
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -528,7 +528,7 @@ def _extract_from_legacy_playlist(self, playlist, playlist_id):
def get_programme_id(item):
def get_from_attributes(item):
for p in('identifier', 'group'):
for p in ('identifier', 'group'):
value = item.get(p)
if value and re.match(r'^[pb][\da-z]{7}$', value):
return value