Open LeendertPlas opened 3 years ago
Hello. Anything new on this matter. I'm also interested. I was successfuly using it on ubuntu, but I migrated to windows...
I've finally successfully installed it on Windows. I want to write a complete write-up but don't have time now, here's some findings to help you:
### Utilize Python 2.7! I was having issues trying Python 3.7.2
Follow the instructions on this older version of https://github.com/l3uddz/plex_autoscan/blob/master/README.bak.md
Remember, paths for Windows will be utilizing doubleslashes, eg., C:\Program Files(x86)\
Also, run Administrator command prompt when testing it out
Here's my config (redacted sensitive parts)
{ "DOCKER_NAME": "", "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": [ "My Drive/Movies/", "My Drive/TV Shows/", "My Drive/Movies 4K/", "My Drive/Anime/" ], "MIME_TYPES": true, "MIME_TYPES_LIST": [ "video" ] }, "CLIENT_ID": "7097SDFSDFXXXXXXXXXXXXXX.apps.googleusercontent.com", "CLIENT_SECRET": "6XXXXXXXXXXXtS", "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": "C:\Plex_Server\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db", "PLEX_EMPTY_TRASH": false, "PLEX_EMPTY_TRASH_CONTROL_FILES": [ "" ], "PLEX_EMPTY_TRASH_MAX_FILES": 100, "PLEX_EMPTY_TRASH_ZERO_DELETED": false, "PLEX_FIX_MISMATCHED": false, "PLEX_FIX_MISMATCHED_LANG": "en", "PLEX_LD_LIBRARY_PATH": "", "PLEX_LOCAL_URL": "http://localhost:32400", "PLEX_SCANNER": "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe", "PLEX_SUPPORT_DIR": "", "PLEX_TOKEN": "f1WXXXXXXXixZFd", "PLEX_USER": "", "PLEX_WAIT_FOR_EXTERNAL_SCANNERS": false, "RCLONE": { "BINARY": "C:\rclone\rclone.exe", "CONFIG": "C:\Users\Victor\.config\rclone\rclone.conf", "CRYPT_MAPPINGS": {}, "RC_CACHE_REFRESH": { "ENABLED": true, "FILE_EXISTS_TO_REMOTE_MAPPINGS": {}, "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": "0.0.0.0", "SERVER_MAX_FILE_CHECKS": 10, "SERVER_PASS": "9edfaXXXXXXXXXXX3", "SERVER_PATH_MAPPINGS": { "P:\": [ "P:\" ] }, "SERVER_PORT": 3467, "SERVER_SCAN_DELAY": 5, "SERVER_SCAN_FOLDER_ON_FILE_EXISTS_EXHAUSTION": false, "SERVER_SCAN_PRIORITIES": { "0": [ "/Movies/" ], "1": [ "/TV Shows/" ], "2": [ "/Music/" ] }, "SERVER_USE_SQLITE": true, "USE_DOCKER": false, "USE_SUDO": false }
O great thanks.
I've solved the issue myself. I also took my linux conf and modified it for windows. Basically i went through all code, throw out what i dont need. I was having troubles with threading. Most of the time the script just stopped working without any error. The biggest problem was when it crashed just after it downloaded all the changes from google and didnt write them to queue database. So when i restarted the script, google monitor didnt find any new changes, so everything was lost. Now i have two scripts. First one just tooks all the changes and write them to queue database. Second one imports everything from queue database to plex. I'm running them manually, once per they if I have time. As I said there is no threading involved and it's working without issues, almost two months i think. I'm using python 3.x.x. If anyone is interested in the code, i can send it.
On Fri, 19 Nov 2021, 11:51 zelik888, @.***> wrote:
I've finally successfully installed it on Windows. I want to write a complete write-up but don't have time now, here's some findings to help you:
### Utilize Python 2.7! I was having issues trying Python 3.7.2
Follow the instructions on this older version of https://github.com/l3uddz/plex_autoscan/blob/master/README.bak.md http://readme.md
Remember, paths for Windows will be utilizing doubleslashes, eg., C:\Program Files(x86)\
Also, run Administrator command prompt when testing it out
Here's my config (redacted sensitive parts) { "DOCKER_NAME": "", "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": [ "My Drive/Movies/", "My Drive/TV Shows/", "My Drive/Movies 4K/", "My Drive/Anime/" ], "MIME_TYPES": true, "MIME_TYPES_LIST": [ "video" ] }, "CLIENT_ID": " 7097SDFSDFXXXXXXXXXXXXXX.apps.googleusercontent.com", "CLIENT_SECRET": "6XXXXXXXXXXXtS", "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": "C:\Plex_Server\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db", "PLEX_EMPTY_TRASH": false, "PLEX_EMPTY_TRASH_CONTROL_FILES": [ "" ], "PLEX_EMPTY_TRASH_MAX_FILES": 100, "PLEX_EMPTY_TRASH_ZERO_DELETED": false, "PLEX_FIX_MISMATCHED": false, "PLEX_FIX_MISMATCHED_LANG": "en", "PLEX_LD_LIBRARY_PATH": "", "PLEX_LOCAL_URL": "http://localhost:32400", "PLEX_SCANNER": "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe", "PLEX_SUPPORT_DIR": "", "PLEX_TOKEN": "f1WXXXXXXXixZFd", "PLEX_USER": "", "PLEX_WAIT_FOR_EXTERNAL_SCANNERS": false, "RCLONE": { "BINARY": "C:\rclone\rclone.exe", "CONFIG": "C:\Users\Victor\.config\rclone\rclone.conf", "CRYPT_MAPPINGS": {}, "RC_CACHE_REFRESH": { "ENABLED": true, "FILE_EXISTS_TO_REMOTE_MAPPINGS": {}, "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": "0.0.0.0", "SERVER_MAX_FILE_CHECKS": 10, "SERVER_PASS": "9edfaXXXXXXXXXXX3", "SERVER_PATH_MAPPINGS": { "P:\": [ "P:\" ] }, "SERVER_PORT": 3467, "SERVER_SCAN_DELAY": 5, "SERVER_SCAN_FOLDER_ON_FILE_EXISTS_EXHAUSTION": false, "SERVER_SCAN_PRIORITIES": { "0": [ "/Movies/" ], "1": [ "/TV Shows/" ], "2": [ "/Music/" ] }, "SERVER_USE_SQLITE": true, "USE_DOCKER": false, "USE_SUDO": false }
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/l3uddz/plex_autoscan/issues/163#issuecomment-973968475, or unsubscribe https://github.com/notifications/unsubscribe-auth/APGSFJHO3HIKXIOS5GVHHV3UMYT4VANCNFSM4XWTOZQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
O great thanks. I've solved the issue myself. I also took my linux conf and modified it for windows. Basically i went through all code, throw out what i dont need. I was having troubles with threading. Most of the time the script just stopped working without any error. The biggest problem was when it crashed just after it downloaded all the changes from google and didnt write them to queue database. So when i restarted the script, google monitor didnt find any new changes, so everything was lost. Now i have two scripts. First one just tooks all the changes and write them to queue database. Second one imports everything from queue database to plex. I'm running them manually, once per they if I have time. As I said there is no threading involved and it's working without issues, almost two months i think. I'm using python 3.x.x. If anyone is interested in the code, i can send it. … On Fri, 19 Nov 2021, 11:51 zelik888, @.**> wrote: I've finally successfully installed it on Windows. I want to write a complete write-up but don't have time now, here's some findings to help you: ### Utilize Python 2.7! I was having issues trying Python 3.7.2* Follow the instructions on this older version of https://github.com/l3uddz/plex_autoscan/blob/master/README.bak.md http://readme.md Remember, paths for Windows will be utilizing doubleslashes, eg., C:\Program Files(x86)\ Also, run Administrator command prompt when testing it out Here's my config (redacted sensitive parts) { "DOCKER_NAME": "", "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": [ "My Drive/Movies/", "My Drive/TV Shows/", "My Drive/Movies 4K/", "My Drive/Anime/" ], "MIME_TYPES": true, "MIME_TYPES_LIST": [ "video" ] }, "CLIENT_ID": " 7097SDFSDFXXXXXXXXXXXXXX.apps.googleusercontent.com", "CLIENT_SECRET": "6XXXXXXXXXXXtS", "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": "C:\Plex_Server\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db", "PLEX_EMPTY_TRASH": false, "PLEX_EMPTY_TRASH_CONTROL_FILES": [ "" ], "PLEX_EMPTY_TRASH_MAX_FILES": 100, "PLEX_EMPTY_TRASH_ZERO_DELETED": false, "PLEX_FIX_MISMATCHED": false, "PLEX_FIX_MISMATCHED_LANG": "en", "PLEX_LD_LIBRARY_PATH": "", "PLEX_LOCAL_URL": "http://localhost:32400", "PLEX_SCANNER": "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe", "PLEX_SUPPORT_DIR": "", "PLEX_TOKEN": "f1WXXXXXXXixZFd", "PLEX_USER": "", "PLEX_WAIT_FOR_EXTERNAL_SCANNERS": false, "RCLONE": { "BINARY": "C:\rclone\rclone.exe", "CONFIG": "C:\Users\Victor\.config\rclone\rclone.conf", "CRYPT_MAPPINGS": {}, "RC_CACHE_REFRESH": { "ENABLED": true, "FILE_EXISTS_TO_REMOTE_MAPPINGS": {}, "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": "0.0.0.0", "SERVER_MAX_FILE_CHECKS": 10, "SERVER_PASS": "9edfaXXXXXXXXXXX3", "SERVER_PATH_MAPPINGS": { "P:\": [ "P:\" ] }, "SERVER_PORT": 3467, "SERVER_SCAN_DELAY": 5, "SERVER_SCAN_FOLDER_ON_FILE_EXISTS_EXHAUSTION": false, "SERVER_SCAN_PRIORITIES": { "0": [ "/Movies/" ], "1": [ "/TV Shows/" ], "2": [ "/Music/" ] }, "SERVER_USE_SQLITE": true, "USE_DOCKER": false, "USE_SUDO": false } — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#163 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APGSFJHO3HIKXIOS5GVHHV3UMYT4VANCNFSM4XWTOZQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
I'm interested, because I'm having some other issues..I'm not sure if it's plexautoscan related yet but something is wonky on my Bazarr. When I enable post processing script it'll popup LookupError('unknown encoding: 65001') and it never curl calls the plexautoscan. When I try manually scanning via the plexautoscan website it says success, logs say it did a scan but metadata isn't refreshed. I don't know.
Hm, I don't have any post processing in code, i threw out everything regarding sonar radar rclone,... It just bare google monitor drive, download changes, write them to queue and import them to plex. I don't know if any of this would help in your case.
On Fri, 19 Nov 2021, 12:51 zelik888, @.***> wrote:
O great thanks. I've solved the issue myself. I also took my linux conf and modified it for windows. Basically i went through all code, throw out what i dont need. I was having troubles with threading. Most of the time the script just stopped working without any error. The biggest problem was when it crashed just after it downloaded all the changes from google and didnt write them to queue database. So when i restarted the script, google monitor didnt find any new changes, so everything was lost. Now i have two scripts. First one just tooks all the changes and write them to queue database. Second one imports everything from queue database to plex. I'm running them manually, once per they if I have time. As I said there is no threading involved and it's working without issues, almost two months i think. I'm using python 3.x.x. If anyone is interested in the code, i can send it. … <#m-778523094791362186> On Fri, 19 Nov 2021, 11:51 zelik888, @.**> wrote: I've finally successfully installed it on Windows. I want to write a complete write-up but don't have time now, here's some findings to help you: ### Utilize Python 2.7! I was having issues trying Python 3.7.2* Follow the instructions on this older version of https://github.com/l3uddz/plex_autoscan/blob/master/README.bak.md http://readme.md Remember, paths for Windows will be utilizing doubleslashes, eg., C:\Program Files(x86)\ Also, run Administrator command prompt when testing it out Here's my config (redacted sensitive parts) { "DOCKER_NAME": "", "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": [ "My Drive/Movies/", "My Drive/TV Shows/", "My Drive/Movies 4K/", "My Drive/Anime/" ], "MIME_TYPES": true, "MIME_TYPES_LIST": [ "video" ] }, "CLIENT_ID": " 7097SDFSDFXXXXXXXXXXXXXX.apps.googleusercontent.com", "CLIENT_SECRET": "6XXXXXXXXXXXtS", "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": "C:\Plex_Server\Plex Media Server\Plug-in Support\Databases\com.plexapp.plugins.library.db", "PLEX_EMPTY_TRASH": false, "PLEX_EMPTY_TRASH_CONTROL_FILES": [ "" ], "PLEX_EMPTY_TRASH_MAX_FILES": 100, "PLEX_EMPTY_TRASH_ZERO_DELETED": false, "PLEX_FIX_MISMATCHED": false, "PLEX_FIX_MISMATCHED_LANG": "en", "PLEX_LD_LIBRARY_PATH": "", "PLEX_LOCAL_URL": "http://localhost:32400", "PLEX_SCANNER": "C:\Program Files (x86)\Plex\Plex Media Server\Plex Media Scanner.exe", "PLEX_SUPPORT_DIR": "", "PLEX_TOKEN": "f1WXXXXXXXixZFd", "PLEX_USER": "", "PLEX_WAIT_FOR_EXTERNAL_SCANNERS": false, "RCLONE": { "BINARY": "C:\rclone\rclone.exe", "CONFIG": "C:\Users\Victor.config\rclone\rclone.conf", "CRYPT_MAPPINGS": {}, "RC_CACHE_REFRESH": { "ENABLED": true, "FILE_EXISTS_TO_REMOTE_MAPPINGS": {}, "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": "0.0.0.0", "SERVER_MAX_FILE_CHECKS": 10, "SERVER_PASS": "9edfaXXXXXXXXXXX3", "SERVER_PATH_MAPPINGS": { "P:\": [ "P:\" ] }, "SERVER_PORT": 3467, "SERVER_SCAN_DELAY": 5, "SERVER_SCAN_FOLDER_ON_FILE_EXISTS_EXHAUSTION": false, "SERVER_SCAN_PRIORITIES": { "0": [ "/Movies/" ], "1": [ "/TV Shows/" ], "2": [ "/Music/" ] }, "SERVER_USE_SQLITE": true, "USE_DOCKER": false, "USE_SUDO": false } — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#163 (comment) https://github.com/l3uddz/plex_autoscan/issues/163#issuecomment-973968475>, or unsubscribe https://github.com/notifications/unsubscribe-auth/APGSFJHO3HIKXIOS5GVHHV3UMYT4VANCNFSM4XWTOZQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .
I'm interested, because I'm having some other issues..I'm not sure if it's plexautoscan related yet but something is wonky on my Bazarr. When I enable post processing script it'll popup LookupError('unknown encoding: 65001') and it never curl calls the plexautoscan. When I try manually scanning via the plexautoscan website it says success, logs say it did a scan but metadata isn't refreshed. I don't know.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/l3uddz/plex_autoscan/issues/163#issuecomment-974005536, or unsubscribe https://github.com/notifications/unsubscribe-auth/APGSFJFXOAKY2H7DN7436BLUMY24JANCNFSM4XWTOZQA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
Thank you. I seem to have more of an issue with the plex media scanner not refreshing a directory when I run it from shell. It generates a crash report everytime instead. Haven't found a solution yet, can't get subtitles to update
I'm working on getting this set up. Why is RClone required?
It isn't?
I was able to get this to work on whatbox server but i recently changed to seedbox.cc and for love nore money i cannot get this to work can anyone help at all please
I was able to get this to work on whatbox server but i recently changed to seedbox.cc and for love nore money i cannot get this to work can anyone help at all please
How did you get it working on Windows? I'm looking to set this up on Windows 10 but the only instructions I see are "Note: It's recommended that you install Rclone and Python using chocolatey.".
Has anyone found a guide to set this up for windows? In one of the earlier issues it said that some people got it to work on windows. but it wasn't complete enough for me to set it up.
I think an example config for windows with sensitive information blanked out would also help a lot :) if a guide does not exist.