mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-26 09:56:17 -05:00
Fixing when path stem's would sometimes not parse.
This commit is contained in:
parent
39961e50db
commit
456a83b8f4
1 changed files with 3 additions and 1 deletions
|
|
@ -10,6 +10,7 @@ from wrolpi.captions import read_captions, extract_captions
|
|||
from wrolpi.common import logger, register_modeler, register_after_refresh, limit_concurrent
|
||||
from wrolpi.db import get_db_curs
|
||||
from wrolpi.files.indexers import Indexer, register_indexer
|
||||
from wrolpi.files.lib import split_path_stem_and_suffix
|
||||
from wrolpi.files.models import File
|
||||
from wrolpi.vars import PYTEST
|
||||
from .downloader import video_downloader # Import downloaders so they are registered.
|
||||
|
|
@ -64,7 +65,8 @@ def video_modeler(groups: Dict[str, List[File]], session: Session):
|
|||
video.validate(session)
|
||||
|
||||
# Remove this group, it will not be processed by other modelers.
|
||||
del groups[video.video_path.stem]
|
||||
stem, _ = split_path_stem_and_suffix(video.video_path)
|
||||
del groups[stem]
|
||||
|
||||
|
||||
@register_after_refresh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue