def print_wellcome(): meta = Metadata() print(" ___ __ __ ___ ") print(" / | __ __/ /_____ / |/ /___ _ _____ ") print(" / /| |/ / / / __/ __ \ / /|_/ / __ \ | / / _ \ ") print(" / ___ / /_/ / /_/ /_/ / / / / / /_/ / |/ / __/ ") print("/_/ |_\__,_/\__/\____/ /_/ /_/\____/|___/\___/ ") print(" ______________________________________________________") print("/_____/_____/_____/_____/_____/_____/_____/_____/_____/ v" + meta.get_version()) print( " __ ___ ______ " ) print( " / |/ /___ __ __________ / ____/_ ________________ _____" ) print( " / /|_/ / __ \/ / / / ___/ _ \ / / / / / / ___/ ___/ __ \/ ___/" ) print( " / / / / /_/ / /_/ (__ ) __/ / /___/ /_/ / / (__ ) /_/ / / " ) print( "/_/ /_/\____/\__,_/____/\___/ \____/\__,_/_/ /____/\____/_/ " ) print( " __________________________________________________________________" ) print( "/_____/_____/_____/_____/_____/_____/_____/_____/_____/_____/_____/" ) print("\n *Keep open during your game session \n\n")
# -*- coding: utf-8 -*- from os import path from common import logo, genres from common import parse_m3u, get_files from metadata import Metadata print(logo) meta = Metadata() print("version " + meta.get_version() + "\n") def get_m3u_sources(genre, file): pwd = path.dirname(path.abspath(__file__)) sources = parse_m3u(path.join(pwd, "../", genre, file)) return sources for genre in genres: files = get_files(genre) for file in files: playlist = get_m3u_sources(genre, file) for track in playlist: print(track.title + " " + track.length + " " + track.path)