mopidy / mopidy
1 1
import logging
2

3 1
import pykka
4

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

8 1
logger = logging.getLogger(__name__)
9

10

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

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

Read our documentation on viewing source code .

Loading