Skip to content

After upgrading to v0.0.5, the content directory watcher stops adding new archives to the ComicLib database #10

@Arkyver

Description

@Arkyver

I've observed that since the release of v0.0.5, the changes in the content path no longer trigger a scan, which prevents new archives from being added to the database. This issue seems to stem from the fact that directory updates are now being excluded from the watchfiles in scan.py, as seen in this line of code:

for changes in watchfiles.watch(settings.content, watch_filter=lambda change, path: change in (watchfiles.Change.added, watchfiles.Change.modified) and Path(path).is_file()):

Because the scanners such as 22-ehviewer.py require the parent directory path of the image files, the scan will skip them when is invoked with a path to image files. Is this modification intended to address other issues?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions