Skip to content

Commit

Permalink
Check availability is exists before using its value
Browse files Browse the repository at this point in the history
  • Loading branch information
AliOsm committed Nov 3, 2024
1 parent 283617b commit 66c5d5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tafrigh"
version = "1.7.1"
version = "1.7.2"
description = "تفريغ النصوص وإنشاء ملفات SRT و VTT باستخدام نماذج Whisper وتقنية wit.ai."
authors = ["EasyBooks <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tafrigh/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,4 +290,4 @@ def write_output_sample(segments: list[SegmentType], output: Config.Output) -> N
def should_skip(element: dict[str, Any]) -> bool:
return (element['title'] == '[Private video]' or
element['title'] == '[Deleted video]' or
element['availability'] == 'subscriber_only')
('availability' in element and element['availability'] == 'subscriber_only'))

0 comments on commit 66c5d5b

Please sign in to comment.