rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.35k stars 604 forks source link

Advanced Setting "Ignore Folders" is being removed during folder scanning #3326

Closed hubdows closed 7 months ago

hubdows commented 8 months ago

I keep setting the Ignore Folders setting in the config.ini folder, but every time I initiate the folder scan the contents of the ignore folders setting is reset.

Before scan (headphones shutdown and config.ini changed):

[Advanced] album_completion_pct = 80 cache_sizemb = 32 ignored_folders = [ misc, Misc, soundtrack, Vari*tists ] ignored_files = [] journal_mode = wal verify_ssl_cert = 1

During scan (after headphones started):

[Advanced] album_completion_pct = 80 cache_sizemb = 32 ignored_folders = [] ignored_files = [] journal_mode = wal verify_ssl_cert = 1

rembo10 commented 7 months ago

So this is a bit dumb on my side... and it needs a more resilient fix, but if you add the folders like this: ignored_folders = ['misc', 'Misc', 'soundtrack'] It should work

It's using literal_eval from ast to parse the list in the config