pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.8k stars 276 forks source link

Old bug: Ignore folders #recycle (DSM) #10142

Open ward0 opened 2 years ago

ward0 commented 2 years ago

Describe the bug Bug https://github.com/pymedusa/Medusa/pull/3552 seems to be back for Synology DSM7: 2021-11-30 16:37:34 WARNING POSTPROCESSOR :: [f35a19d] Missed file: /volume1/DOWNLOADSTATION/@eaDir: Hidden or ignored folder

Medusa Info: | Branch: masterCommit: f35a19da6bc4efcafff8facca6a4d5b9e3f3f501Version: 0.5.20Database: 44.18 -- | -- Python Version: | 3.8.12 (default, Oct 22 2021, 21:05:38) [GCC 7.5.0] SSL Version: | OpenSSL 1.1.1l 24 Aug 2021 OS: | Linux-4.4.180+-x86_64-with-glibc2.2.5 Locale: | en_US.UTF-8 Timezone: | CET

Debug logs (at least 50 lines): General > Advanced Settings > Enable debug

``` 2021-11-30 16:37:34 WARNING POSTPROCESSOR :: [f35a19d] Missed file: /volume1/DOWNLOADSTATION/@eaDir: Hidden or ignored folder 2021-11-30 16:37:34 INFO POSTPROCESSOR :: [f35a19d] I did encounter some unprocessable items: 2021-11-30 16:37:34 INFO POSTPROCESSOR :: [f35a19d] Post-processing completed. 2021-11-30 16:37:34 DEBUG POSTPROCESSOR :: [f35a19d] Ignoring folder: @eaDir ```
BenjV commented 2 years ago

I assume that you are using medusa on a Synology Nas. @eaDir is a hidden system folder used by some Synology packages. It is correct that the postprocessor skips these folders.

It would be better not to use the default DownLoad Station location but to create a separate "Shared Folder" for medusa where only the for medusa downloaded files would end up.

To accomplish that create a new Shared Folder and give the "system internal user" sc-medusa read/write permissions on that folder. After that change within medusa the download location to that share in "Search Settings" tab "Torrent Search".

ward0 commented 2 years ago

@BenjV You are correct, i use Synology Nas. I have configured the following: Synology downloadstation location DOWNLOADSTATION I created a new shared folder in Syology with recycle bin disabled and gave share rights to sc-medusa. the hidden folder @eadir is also there... image I added a subfolder downloads in the newly created shared folder, and the folder @eadir is not there.

Regards, Ward

BenjV commented 2 years ago

You can ignore that @eaDir, medusa is that doing too, it only reports a hidden directory. That's not a bug at all.

ward0 commented 2 years ago

@BenjV Can you add an 'if' in the code to simply ingore this folder and don't report about it? I get a 'report' every single time that I have to click away to monitor real errors.

BenjV commented 2 years ago

I am just a user of Medusa so I cannot add something to the code.

I use a shared folder called medusa (your Medusa_downloads) and created subfolders (Downloads and Shows) there. I let Download Station put the files in "Downloaded" and the postprocessor of Medusa wil put the processed show in "Shows" In those folders DSM will not create a @eaDir folder.