[cleanup] Fix minor mistakes (#17083)

Authored by: doe1080
This commit is contained in:
doe1080
2026-06-29 23:08:40 +00:00
committed by GitHub
parent 500e54cf86
commit b0472c3bce
22 changed files with 34 additions and 36 deletions
+4 -1
View File
@@ -514,7 +514,10 @@ class BBCCoUkIE(InfoExtractor):
value = item.get(p)
if value and re.match(r'^[pb][\da-z]{7}$', value):
return value
get_from_attributes(item)
if programme_id := get_from_attributes(item):
return programme_id
mediator = item.find(f'./{{{self._EMP_PLAYLIST_NS}}}mediator')
if mediator is not None:
return get_from_attributes(mediator)