l3uddz / plex_autoscan

Script to assist sonarr/radarr with plex imports. Will only scan the folder that has been imported, instead of the whole library section.
GNU General Public License v3.0
395 stars 70 forks source link

Ignored and Unwanted #108

Closed dannymichel closed 5 years ago

dannymichel commented 5 years ago

My tv movies and music are in /mnt/drive/tv{movies}{music} etc. -i'd like plex auto-add to add new files uploaded to google drive

My radarr and sonarr paths are /home/user/rtorrent/upload/{tv}{movies} -i'd like to map it so radarr and sonarr check my google drive for existing media

I'm getting ignored messages and it doesn't seem to be working properly

INFO -    GOOGLE [139825599764224]: Processing 2 changes
INFO -    GOOGLE [139825599764224]: Added '1cMGzzGIqtCKkXm24p-vYsR7kx1174GsX' to cache: IO (2019).mkv
INFO -    GOOGLE [139825599764224]: 0 added / 0 removed / 1 unwanted / 1 ignored / 0 renamed
INFO -    GOOGLE [139825599764224]: Processing 0 changes
INFO -    GOOGLE [139825599764224]: 0 added / 0 removed / 0 unwanted / 0 ignored / 0 renamed
INFO -  AUTOSCAN [139825690007360]: Client '' made a manual scan request for: '/mnt/drive/movies/IO (2019)/IO (2019).mkv'
INFO -      PLEX [139825567557376]: Scan request from Manual for '/mnt/drive/movies/IO (2019)/IO (2019).mkv', sleeping for 180 seconds
INFO -    GOOGLE [139825599764224]: Processing 0 changes
INFO -    GOOGLE [139825599764224]: 0 added / 0 removed / 0 unwanted / 0 ignored / 0 renamed
INFO -      PLEX [139825567557376]: File '/mnt/drive/movies/IO (2019)/IO (2019).mkv' did not exist on check 1 of 10, checking again in

Here is my config Any ideas why it's not working?

{
  "DOCKER_NAME": "plex",
  "GOOGLE": {
    "ALLOWED": {
      "FILE_EXTENSIONS": true,
      "FILE_EXTENSIONS_LIST": [
        "webm","mkv","flv","vob","ogv","ogg","drc","gif","gifv","mng","avi","mov","qt","wmv","yuv","rm","rmvb","asf","amv","mp4","m4p","m4v","mpg","mp2","mpeg","mpe","mpv","m2v","m4v","svi","3gp","3g2","mxf","roq","nsv","f4v","f4p","f4a","f4b","mp3","flac","ts"
      ],
      "FILE_PATHS": [
        "media/movies/","media/tv/"
      ],
      "MIME_TYPES": true,
      "MIME_TYPES_LIST": [
        "video"
      ]
    },
    "CLIENT_ID": "xxx",
    "CLIENT_SECRET": "xxx",
    "ENABLED": true,
    "POLL_INTERVAL": 120,
    "SHOW_CACHE_LOGS": true,
    "TEAMDRIVE": false,
    "TEAMDRIVES": []
  },
  "PLEX_ANALYZE_DIRECTORY": true,
  "PLEX_ANALYZE_TYPE": "basic",
  "PLEX_CHECK_BEFORE_SCAN": false,
  "PLEX_DATABASE_PATH": "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db",
  "PLEX_EMPTY_TRASH": false,
  "PLEX_EMPTY_TRASH_CONTROL_FILES": [
    "/mnt/unionfs/mounted.bin"
  ],
  "PLEX_EMPTY_TRASH_MAX_FILES": 100,
  "PLEX_EMPTY_TRASH_ZERO_DELETED": false,
  "PLEX_LD_LIBRARY_PATH": "/usr/lib/plexmediaserver/lib",
  "PLEX_LOCAL_URL": "http://localhost:32400",
  "PLEX_SCANNER": "/usr/lib/plexmediaserver/Plex\\ Media\\ Scanner",
  "PLEX_SECTION_PATH_MAPPINGS": {
    "1": [
      "/Movies/"
    ],
    "2": [
      "/TV Shows/"
    ],
    "8": [
      "/Music/"
    ]
  },
  "PLEX_SUPPORT_DIR": "/var/lib/plexmediaserver/Library/Application\\ Support",
  "PLEX_TOKEN": "xxx",
  "PLEX_USER": "plex",
  "PLEX_WAIT_FOR_EXTERNAL_SCANNERS": true,
  "RCLONE": {
    "BINARY": "/usr/bin/rclone",
    "CONFIG": "/opt/rclone/rclone.conf",
    "CRYPT_MAPPING": {},
    "RC_CACHE_EXPIRE": {
      "ENABLED": false,
      "FILE_EXISTS_TO_REMOTE_MAPPINGS": {
        "media/": [
          "/mnt/drive/media/"
        ]
      },
      "RC_URL": "http://localhost:5572"
    }
  },
  "RUN_COMMAND_AFTER_SCAN": "",
  "RUN_COMMAND_BEFORE_SCAN": "",
  "SERVER_ALLOW_MANUAL_SCAN": true,
  "SERVER_FILE_CHECK_DELAY": 60,
  "SERVER_FILE_EXIST_PATH_MAPPINGS": {},
  "SERVER_IGNORE_LIST": [
    "/.grab/",
    ".DS_Store",
    "Thumbs.db"
  ],
  "SERVER_IP": "xxx.xx.xx.xxx",
  "SERVER_MAX_FILE_CHECKS": 10,
  "SERVER_PASS": "xxx",
  "SERVER_PATH_MAPPINGS": {
    "/mnt/drive/tv/": [
      "/home/user/rtorrent/upload/tv/",
      "media/tv/"
    ],
    "/mnt/drive/movies/": [
      "/home/user/rtorrent/upload/movies/",
      "media/movies/"
    ]
  },
  "SERVER_PORT": 3467,
  "SERVER_SCAN_DELAY": 180,
  "SERVER_SCAN_FOLDER_ON_FILE_EXISTS_EXHAUSTION": false,
  "SERVER_SCAN_PRIORITIES": {
    "1": [
      "/Movies/"
    ],
    "2": [
      "/TV Shows/"
    ],
    "8": [
      "/Music/"
    ]
  },
  "SERVER_USE_SQLITE": false,
  "USE_DOCKER": false,
  "USE_SUDO": true
}
desimaniac commented 5 years ago

Enable debug in the service file / server run command and youll see why it was ignored.

For example:

/opt/plex_autoscan/scan.py server --loglevel=DEBUG
desimaniac commented 5 years ago

Youll get more help if you join the Discord channel.