def clear_folder(self):
    '\n        Because the songs will be downloaded, it is important to delete them if there are not longer needed.\n        This function deletes the songs that are not in the queue (not one of the upcoming songs)\n        '
    for song in os.listdir('songs/'):
        if (('songs/' + song) not in self.queue):
            os.remove(('songs/' + song))
Because the songs will be downloaded, it is important to delete them if there are not longer needed.
This function deletes the songs that are not in the queue (not one of the upcoming songs)
def clear_folder(self):
    '\n        Because the songs will be downloaded, it is important to delete them if there are not longer needed.\n        This function deletes the songs that are not in the queue (not one of the upcoming songs)\n        '
    for song in os.listdir('songs/'):
        if (('songs/' + song) not in self.queue):
            os.remove(('songs/' + song))