Beispiel #1
0
 def __init__(self):
     self._config = get_config()
     self._path = get_path()
     self._song_file = join(self._path["data_path"],
                            self._path["song_file"])
     self._song_dict = {}
     self._dir_list = []
     self._dir_file_list = []
Beispiel #2
0
 def __init__(self, *args, **kwargs):
     super().__init__(*args, **kwargs)
     self._crawler = Crawler()
     self._producer = Producer()
     self._config = get_config()
     self._path = get_path()
     self._selected_playlist_index = 0
     self._crawl_button = QLabel(self)
     self._playlist_combo = QComboBox(self)
     self._build_gui()
Beispiel #3
0
    def __init__(self):
        self._config = get_config()
        self._path = get_path()
        cache_path = os.path.join(
            self._path["data_path"],
            self._config["hosts"]["spotify"]["cache_file"])
        self._icon = self._config["hosts"]["spotify"]["icon"]

        oauth = SpotifyOAuth(
            client_id=self._config["hosts"]["spotify"]["client_id"],
            client_secret=self._config["hosts"]["spotify"]["client_secret"],
            redirect_uri=self._config["hosts"]["spotify"]["redirect_uri"],
            show_dialog=True,
            cache_path=cache_path,
            scope="playlist-read-collaborative")

        self._spotipy = spotipy.Spotify(auth_manager=oauth)
Beispiel #4
0
 def __init__(self):
     self._config = get_config()
     self._path = get_path()
     self._songs = []
     self._songs_json = {}
Beispiel #5
0
 def __init__(self):
     self._result = {}
     self._config = get_config()
     self._path = get_path()