Comments (7)
Mopidy-Local-SQLite is just a library extension to Mopidy-Local itself, thus Mopidy-Local must also be activated for Mopidy-Local-SQLite to work.
from mopidy-local-sqlite.
That said, Mopidy-Local-SQLite could try to handle this nicer, e.g. by checking in Extension.validate_environment()
that the Mopidy-Local config is present. If the Mopidy-Local extension is disabled, the matching config won't be available, IIRC.
from mopidy-local-sqlite.
I know, but if I disable one extension, another one that is installed shouldn't crash mopidy, imho. It should just do nothing. Or mopidy should check if an extension depends on another and disable the child-extension if the parent is disabled?
from mopidy-local-sqlite.
Agree. Mopidy doesn't know anything about the extension relations, so it must be the child extension that checks in Extensions.validate_environment()
if the parent extension is available, and if not, raise the proper exception so it is disabled too.
from mopidy-local-sqlite.
Agreed. Maybe that's something that should also go into the Mopidy docs, in the "Extension Development" section?
from mopidy-local-sqlite.
Hum, you don't have access to the config at the time of Extension.validate_environment()
, so one needs to fail the extension at a later point. For a regular frontend, I'd simply raise FrontendError
from the frontend's __init__()
. For a local library, it should be possible to do something similar.
from mopidy-local-sqlite.
AFIACS, what this whole issue really boils down is that an exception in a Web application's factory
method will go unhandled, and will prevent Mopidy's Web server from being started. IMHO, exceptions from the factory methods registered via http:app
should be caught in HttpServer._get_app_request_handlers()
, and the corresponding Web app should be disabled without affecting other Web applications. However, I'll provide a workaround for this special case in Mopidy-Local-SQLite, ASAP.
from mopidy-local-sqlite.
Related Issues (20)
- Directories showing up empty after successful scan HOT 2
- Add mopidy-local-sqlite to mopidy's coveralls.io configuration HOT 2
- Remove "Folders" directory browsing
- Create develop branch and make it the default HOT 1
- Remove Mopidy <1.1 workarounds
- library.db stored in /var/lib/mopidy instead of "data_dir" path HOT 5
- Duplicate Albums with Same Name HOT 5
- [Question] MusicBrainz MBID HOT 2
- ERROR Local library sqlite not found when running Mopidy as a service HOT 10
- Timeout accessing the database HOT 2
- Sort Last Month's Updates by age HOT 1
- ImportError: No module named utils HOT 3
- Show original local file structure in musicbox-webclient HOT 1
- Curious Album duplicity? HOT 7
- I cant see any artists or albums in MPDroid HOT 7
- Are more complicated directories possible? HOT 2
- Where is the database saved? HOT 3
- Can multiple Mopidy access the same database? HOT 2
- Auto rescan HOT 1
- Archive mopidy-local-sqlite once mopidy-local has been released HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mopidy-local-sqlite.