refactor: follow more guidelines

This commit is contained in:
2025-04-03 17:32:44 -04:00
parent f360566824
commit ec31250153
20 changed files with 122 additions and 86 deletions

View File

@@ -14,7 +14,7 @@ categories = json.dumps(
"preview",
"selfpromo",
"sponsor",
]
],
)
@@ -30,7 +30,7 @@ async def get_segments(video_id: str):
)
if response.status == 200 and (
results := list(
filter(lambda v: video_id == v["videoID"], await response.json())
filter(lambda v: video_id == v["videoID"], await response.json()),
)
):
sponsorblock_cache[video_id] = results[0]