Skip to content
This repository has been archived by the owner on Aug 6, 2022. It is now read-only.

Help wanted with setting this up with windows #163

Open
LeendertPlas opened this issue Feb 16, 2021 · 11 comments
Open

Help wanted with setting this up with windows #163

LeendertPlas opened this issue Feb 16, 2021 · 11 comments

Comments

@LeendertPlas
Copy link

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.

@LeendertPlas LeendertPlas changed the title Help wanted with setting this up with windows/ Help wanted with setting this up with windows Feb 16, 2021
@meternich
Copy link

Hello. Anything new on this matter. I'm also interested. I was successfuly using it on ubuntu, but I migrated to windows...

@zelik888
Copy link

zelik888 commented Nov 19, 2021

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
}

@meternich
Copy link

meternich commented Nov 19, 2021 via email

@zelik888
Copy link

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.

@meternich
Copy link

meternich commented Nov 19, 2021 via email

@zelik888
Copy link

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

@julianrinaldi
Copy link

I'm working on getting this set up. Why is RClone required?

@saltydk
Copy link
Collaborator

saltydk commented Apr 30, 2022

It isn't?

@Sgtmajor0205
Copy link

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

@JesseWebDotCom
Copy link

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.".

@Sgtmajor0205
Copy link

Sgtmajor0205 commented Jul 25, 2022 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants