def __init__(self, player, playlisttt):
        threading.Thread.__init__(self)

        os.system("clear")

        self.cmdInput = None
        self._player = player
        self.pp = playlisttt
        self.color = colorPrint.bcolors()
        self.mediaInfo = mediaInfo2.mediaTag()

        print(self.color.HEADER + "<---- mOTHmUSICpLAYER ---->" + self.color.ENDC + "\n")

        # load on startup
        if bool(configuration.get_conf("player", "remember_last_track")):
            self.pp.external_playlist_flag = True
            item = self.pp.get_items_from_playlist("last_track_and_playlist", "none")
            # print item
            self.pp.playlist = item[2]
            if len(item) == 3:
                load_index = 1
            else:
                load_index = int(item[3].strip())

            self._player.load_track_from_playlist(self.pp.playlist, load_index)

        elif bool(configuration.get_conf("player", "load_from_playlist_on_startup")):
            self._player.load_track_from_playlist(self.pp.playlist, int(0))

        # load the eq
        for x in range(1, 11):
            value = configuration.get_conf("eq", "band" + str(int(x) - 1), "int")
            self._player.eq_set(int(x), int(value))
 def __init__(self):
     self.media_ = mediaInfo2.mediaTag()
     self.internal_playlist = self.file_path()
     self.playlist = self.internal_playlist
     self.path_s = ""
     self.external_playlist_flag = False