Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Version 6.4 doesn't scan the music folder #163

Closed
Elinvention opened this issue May 28, 2020 · 10 comments
Closed

Version 6.4 doesn't scan the music folder #163

Elinvention opened this issue May 28, 2020 · 10 comments

Comments

@Elinvention
Copy link

Describe the bug
Botamusic 6.4 doesn't scan the music folder. After update I deleted all databases (rm *.db and git status reports a clean working tree).

Affected version
58b7600

To Reproduce
Steps to reproduce the behavior:

  1. Install botamusique
  2. Run botamusique
  3. the music_folder isn't being scanned
  4. No music files to play from web interface

Expected behavior
Botamusique should scan the music folder as in previous version.

Desktop (please complete the following information):

  • OS: Manjaro
  • Browser Firefox
  • Version 76.0.1
@Elinvention
Copy link
Author

I run the !rescan command and it started scanning. So the actual issue is that it no longer does it at startup automatically.

@azlux
Copy link
Owner

azlux commented May 28, 2020

What's the value of this parameter into you custom config ? https://github.com/azlux/botamusique/blob/master/configuration.default.ini#L70
refresh_cache_on_startup

@Elinvention
Copy link
Author

Ah, I didn't see that. Sorry, it works fine then. I was tricked by this message at startup: library: rebuild directory cache.

@TerryGeng
Copy link
Collaborator

TerryGeng commented May 31, 2020

This is actually a bug, which has been here for a long time. Thanks for reporting to us!

@Elinvention
Copy link
Author

I tested latest master and now it seems to hang for a while at library: rebuild directory cache at startup, even though I have refresh_cache_on_startup = False in configuration.ini.

@TerryGeng
Copy link
Collaborator

I think you can run the bot with -v argument to see the detailed debug log. File paths will be shown in debug mode when scanning the folders.

@Elinvention
Copy link
Author

-v doesn't show any file paths at startup and when I !rescan. However I think it should skip this process at startup if refresh_cache_on_startup = False, but it doesn't anymore.

@TerryGeng
Copy link
Collaborator

Do you think we need to reopen this issue?

@Elinvention
Copy link
Author

Yes because now I don't want the bot to scan each time at startup. When I opened this issue I didn't know about !rescan and refresh_cache_on_startup = False and I was puzzled by the empty list of local files. Now I want the bot to rescan only when I know I changed the music directory. This way I can avoid having to wait a few minutes for the bot to startup.

@TerryGeng
Copy link
Collaborator

Sorry about the typo I have made. This problem should be fixed now.

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

No branches or pull requests

3 participants