Skip to content

Plex auto scan give nodejs error. #4

Description

@dbz2k

davdebrid:
image: arvida42/davdebrid:latest
container_name: davdebrid
restart: always
environment:
DEBRID_ID: alldebrid
DEBRID_API_KEY: ****
DATA_FOLDER: /data
PLEX_URL: http://172.17.0.1:32400
PLEX_TOKEN: *****
networks:
- davdebrid
volumes:
- davdebrid-data:/data

The nodejs error

file:///home/node/app/src/lib/davdebrid.js:147

const sectionLocationRegex = new RegExp(`\/(${this.directories.map(dir => dir.name).join('|')})`);

                                                               ^

TypeError: Cannot read properties of undefined (reading 'map')

at Davdebrid.updatePlexOnChange (file:///home/node/app/src/lib/davdebrid.js:147:68)

at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v20.18.0

Config folder initialized

WebDAV server is running on port 8080

Watching for change to update the Plex library

!!!! Server is running without authentification, be carefull, don't expose it publicly !!!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions