Skip to content

Commit

Permalink
[bugfix] Fix broken distribution when PyAV is unavailable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Breakthrough committed May 30, 2022
1 parent 5f1476d commit dd28732
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion scenedetect/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

# Used for module identification and when printing version & about info
# (e.g. calling `scenedetect version` or `scenedetect about`).
__version__ = 'v0.6'
__version__ = 'v0.6.0.1'
# About & copyright message string shown for the 'about' CLI command (scenedetect about).

ABOUT_STRING = """
Expand Down
4 changes: 2 additions & 2 deletions scenedetect/cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@

from appdirs import user_config_dir

from scenedetect.backends.pyav import VALID_THREAD_MODES
from scenedetect.frame_timecode import FrameTimecode

VALID_PYAV_THREAD_MODES = ['NONE', 'SLICE', 'FRAME', 'AUTO']

class TimecodeValue:

Expand Down Expand Up @@ -162,7 +162,7 @@ def __str__(self) -> str:
'format': ['jpeg', 'png', 'webp'],
},
'backend-pyav': {
'threading_mode': [str(mode).lower() for mode in VALID_THREAD_MODES],
'threading_mode': [str(mode).lower() for mode in VALID_PYAV_THREAD_MODES],
},
}
"""Mapping of string options which can only be of a particular set of values. We use a list instead
Expand Down

0 comments on commit dd28732

Please sign in to comment.