Skip to content

Commit

Permalink
fix: updated sample handling for allowed video files
Browse files Browse the repository at this point in the history
  • Loading branch information
dreulavelle committed Dec 6, 2024
1 parent 6d43d7f commit 8a5e849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/program/services/downloaders/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def create(

) -> Optional["DebridFile"]:
"""Factory method to validate and create a DebridFile"""
if not any(filename.endswith(ext) for ext in VIDEO_EXTENSIONS) and not "sample" in filename.lower():
if not any(filename.endswith(ext) for ext in VIDEO_EXTENSIONS) or "sample" in filename.lower():
return None

if limit_filesize:
Expand Down

0 comments on commit 8a5e849

Please sign in to comment.