Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shun-liang committed Dec 12, 2024
1 parent 26402bf commit a03c50a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/yt2doc/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,12 +182,12 @@ def main(
yt_dlp_extra_opts = ast.literal_eval(yt_dlp_extra_opts_str)
except ValueError as e:
raise MalformedYtDlpOpts(
f"ValueError when trying to parse yt-dlp-extra-opts: f{e}"
f"ValueError when trying to parse --yt-dlp-extra-opts: f{e}"
)

if not _is_dict_of_str_any(yt_dlp_extra_opts):
raise MalformedYtDlpOpts(
"yt-dlp-extra-opts is not a string representation of a dictionary"
"--yt-dlp-extra-opts is not a string representation of a dictionary"
)

with tempfile.TemporaryDirectory() as temp_dir_name:
Expand Down
4 changes: 2 additions & 2 deletions src/yt2doc/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from wtpsplit import SaT
from openai import OpenAI

from yt2doc.media.media_info_extractor import YtDlpMediaInfoExtractor
from yt2doc.media.media_info_extractor import YtDLPMediaInfoExtractor
from yt2doc.transcription.transcriber import Transcriber
from yt2doc.transcription import interfaces as transcription_interfaces
from yt2doc.extraction.file_cache import FileCache
Expand Down Expand Up @@ -75,7 +75,7 @@ def get_yt2doc(
add_table_of_contents=add_table_of_contents,
)

media_info_extractor = YtDlpMediaInfoExtractor(
media_info_extractor = YtDLPMediaInfoExtractor(
temp_dir=temp_dir,
extra_opts=yt_dlp_options or {},
)
Expand Down
2 changes: 1 addition & 1 deletion src/yt2doc/media/media_info_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def _merge_short_chapters(
return merged_chapters


class YtDlpMediaInfoExtractor:
class YtDLPMediaInfoExtractor:
def __init__(self, temp_dir: Path, extra_opts: typing.Dict[str, typing.Any]):
self.temp_dir = temp_dir
self.extra_opts = extra_opts
Expand Down

0 comments on commit a03c50a

Please sign in to comment.