<gh_stars>0
import yaml


class Settings(object):
    def __init__(self):
        with open("configuration.yml", 'r') as configfile:
            self.config = yaml.load(configfile)
        self.login = self.config['kadenze']['login']
        self.password = self.config['kadenze']['password']
        self.path = self.config['download']['path']
        self.courses = self.config['download']['courses']
        self.video_format = self.config['download']['resolution']

    def __new__(cls, *args, **kwargs):
        if not hasattr(cls, 'instance'):
            cls.instance = super(Settings, cls).__new__(cls)
        return cls.instance

import yaml


class Settings(object):
    def __init__(self):
        with open("configuration.yml", 'r') as configfile:
            self.config = yaml.load(configfile)
        self.login = self.config['kadenze']['login']
        self.password = self.config['kadenze']['password']
        self.path = self.config['download']['path']
        self.courses = self.config['download']['courses']
        self.video_format = self.config['download']['resolution']

    def __new__(cls, *args, **kwargs):
        if not hasattr(cls, 'instance'):
            cls.instance = super(Settings, cls).__new__(cls)
        return cls.instance