[lsm] Improve code style

This commit is contained in:
Caesim 2023-12-06 18:49:51 +02:00
parent cce553f902
commit fc7ed21196
2 changed files with 4 additions and 5 deletions

View File

@ -2,10 +2,10 @@ from .common import InfoExtractor
from ..utils import (
int_or_none,
parse_iso8601,
traverse_obj,
url_or_none,
urlencode_postdata,
)
from ..utils.traversal import traverse_obj
class CloudyCDNIE(InfoExtractor):

View File

@ -8,10 +8,10 @@ from ..utils import (
js_to_json,
parse_iso8601,
parse_qs,
traverse_obj,
url_or_none,
urljoin,
)
from ..utils.traversal import traverse_obj
class LSMBaseIE(InfoExtractor):
@ -137,9 +137,8 @@ class LSMLREmbedIE(InfoExtractor):
title = item.get('title')
if id and id.startswith('v') and not title:
title = traverse_obj(
media_json,
('audio', lambda _, v: v['id'][1:] == id[1:], 'title', {lambda x: x and f'{x} - Video Version'}),
get_all=False)
media_json, ('audio', lambda _, v: v['id'][1:] == id[1:], 'title',
{lambda x: x and f'{x} - Video Version'}), get_all=False)
entries.append({
'formats': formats,