Show time-synced lyric with BTT!
Project description
Synced Lyric on TouchBar
Show synced lyric in the touch-bar with BetterTouchTool and NetEase APIs. Based on the idea of Kashi.
Features
- Netease music web apis for synced lyrics;
- cachier to cache function calls and reduce the need to call webapis;
- Apple script for Spotify & Music background track information;
- Support for English/Chinese;
Note: I am using Catalina, so 'iTunes' in previous macOS is now 'Music'. You can change the 'Music' back to 'iTunes'.
Instruction
1. Denpendencies
It is advised to set up a new python environment with 3.6+.
pip install touchbar_lyric
2. Configuration in BetterTouchTool
Same as Kashi:
- Copy&paste the content in
lyric.jsonin Meun Bar > Touch Bar; - Change the python path to your own python path in the script area;
- Optional: You can use pubproxy api to remedy netease's anti-crawler mechanism.
${PYTHONPATH} -m touchbar_lyric --api ${PUBPROXY_API}
Preview
Note: In case there is no synced lyric, each sentence will be displayed at an evenly time interval.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
touchbar-lyric-0.1.3.tar.gz
(5.2 kB
view details)
File details
Details for the file touchbar-lyric-0.1.3.tar.gz.
File metadata
- Download URL: touchbar-lyric-0.1.3.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
206e86556d4188544835371a615a57108a14506e9ee7c6bfc05ea98c4bffd125
|
|
| MD5 |
5b55287db9df26708b8f9d30b7bc0677
|
|
| BLAKE2b-256 |
00f530aa40a8e753b3b9115fa1cb5a4487b978e361f87ee648f18c4341d93a02
|