Skip to content

Commit dd28732

Browse files
committed
[bugfix] Fix broken distribution when PyAV is unavailable.
1 parent 5f1476d commit dd28732

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scenedetect/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

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

4747
ABOUT_STRING = """

scenedetect/cli/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525

2626
from appdirs import user_config_dir
2727

28-
from scenedetect.backends.pyav import VALID_THREAD_MODES
2928
from scenedetect.frame_timecode import FrameTimecode
3029

30+
VALID_PYAV_THREAD_MODES = ['NONE', 'SLICE', 'FRAME', 'AUTO']
3131

3232
class TimecodeValue:
3333

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

0 commit comments

Comments
 (0)