sureshfizzy / CineSync

CineSync is a Python & Bash based library management tool designed to organize debrid & local libraries without the support of Sonarr & Radarr
33 stars 5 forks source link

Fixed realtime monitor #6

Open eoghan2t9 opened 1 month ago

eoghan2t9 commented 1 month ago

Fixed realtime monitor with the help of chatgpt and it now runs for me plus runs in the background detecting in full realtime

sureshfizzy commented 1 month ago

Let me test this and merge, some changes looks odd to me.

sureshfizzy commented 1 month ago

https://github.com/sureshfizzy/CineSync/pull/6/commits/a7dab330ea916759adc8b21ed9eaaa9423495c7e#diff-5990676dae026aef7627bec042def91dfefb2ec578702af4be421e156cfa59feR68

This causes execution to fail on Windows, as it is unable to decrypt properly and throws a Unicode error. It also breaches another condition, if the destination directory is empty, the script will fail to run.

Running on Windows OS Version: 10.0.19045 Found watch directory in script: D:\Watch Found destination directory in script: D:\Watch\Sample Watching directory: D:\Watch Destination directory: D:\Watch\Sample Starting initial scan... Initial files in watch directory: set() Error: Destination directory is empty.

eoghan2t9 commented 1 month ago

I shall have a look at that today and see what's the cause of that is on windows

sureshfizzy commented 1 month ago

I'm trying to figure out what went wrong on your end but haven't got time due to office works ☹️. I'll sit on it later on and see this issue.