mopidy / mopidy
1 2
import logging
2

3 2
import pykka
4

5 2
from mopidy import backend
6 2
from mopidy.file import library
7

8 2
logger = logging.getLogger(__name__)
9

10

11 2
class FileBackend(pykka.ThreadingActor, backend.Backend):
12 2
    uri_schemes = ["file"]
13

14 2
    def __init__(self, config, audio):
15 2
        super().__init__()
16 2
        self.library = library.FileLibraryProvider(backend=self, config=config)
17 2
        self.playback = backend.PlaybackProvider(audio=audio, backend=self)
18 2
        self.playlists = None

Read our documentation on viewing source code .

Loading