__init__.py 664 Bytes
Newer Older
dz0ny's avatar
dz0ny committed
1
2
3
4
5
6
7
8
from __future__ import unicode_literals

import logging
import os

from mopidy import config, ext


Stein Magnus Jodal's avatar
Stein Magnus Jodal committed
9
__version__ = '2.0.2'
10

dz0ny's avatar
dz0ny committed
11
12
13
14
15
logger = logging.getLogger(__name__)


class Extension(ext.Extension):

16
    dist_name = 'Mopidy-YouTube'
dz0ny's avatar
dz0ny committed
17
18
19
20
21
22
23
24
25
26
27
28
    ext_name = 'youtube'
    version = __version__

    def get_default_config(self):
        conf_file = os.path.join(os.path.dirname(__file__), 'ext.conf')
        return config.read(conf_file)

    def get_config_schema(self):
        schema = super(Extension, self).get_config_schema()
        return schema

    def setup(self, registry):
29
30
        from .backend import YouTubeBackend
        registry.add('backend', YouTubeBackend)