From 35fae42ab78ee67b73b6ec22b40d074d62359a89 Mon Sep 17 00:00:00 2001 From: Jesse Bannon Date: Wed, 19 Apr 2023 18:15:12 -0700 Subject: [PATCH] lint --- src/ytdl_sub/utils/chapters.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ytdl_sub/utils/chapters.py b/src/ytdl_sub/utils/chapters.py index 7b032e83..785123ee 100644 --- a/src/ytdl_sub/utils/chapters.py +++ b/src/ytdl_sub/utils/chapters.py @@ -1,13 +1,12 @@ -import json import re -import subprocess from typing import Dict from typing import List from typing import Optional from typing import Tuple from ytdl_sub.entries.entry import Entry -from ytdl_sub.entries.variables.kwargs import YTDL_SUB_CUSTOM_CHAPTERS, CHAPTERS +from ytdl_sub.entries.variables.kwargs import CHAPTERS +from ytdl_sub.entries.variables.kwargs import YTDL_SUB_CUSTOM_CHAPTERS from ytdl_sub.utils.file_handler import FileMetadata @@ -237,7 +236,9 @@ class Chapters: titles: List[str] = [] # Try to get actual yt-dlp chapters first, then custom chapters, then default to empty list - chapters = entry.kwargs_get(CHAPTERS, default=entry.kwargs_get(YTDL_SUB_CUSTOM_CHAPTERS, default=[])) + chapters = entry.kwargs_get( + CHAPTERS, default=entry.kwargs_get(YTDL_SUB_CUSTOM_CHAPTERS, default=[]) + ) for chapter in chapters: timestamps.append(Timestamp.from_seconds(int(float(chapter["start_time"]))))