Beispiel #1
0
 def __init__(self):
     """Init """
     super().__init__()
     self.netease_req = NeteaseRequest()
     self.parser = LyricParser()
     self.spotifydbus = SpotifyDBus()
     self.not_found_text = 'Not Found Any Lyrics!'
     self.lyric = self.not_found_text
     self.current_playing = ''
     self.init_ui()
Beispiel #2
0
#!/usr/bin/python
from netrequest import NeteaseRequest
from lyric_parser import LyricParser

if __name__ == '__main__':
    netease_req = NeteaseRequest()
    original_lyric, transed_lyric = netease_req.get_lyrics()
    parser = LyricParser()
    lyric_dict = parser.parse(original_lyric, transed_lyric)
    if lyric_dict:
        for value in lyric_dict.values():
            print(value)