Skip to main content

Show time-synced lyric with BTT!

Project description

Synced Lyric on TouchBar



Build Status

Show synced lyric in the touch-bar with BetterTouchTool and NetEase APIs. Based on the idea of Kashi.

Features

  1. Netease music web apis for synced lyrics;
  2. cachier to cache function calls and reduce the need to call webapis;
  3. Apple script for Spotify & Music background track information;
  4. 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:

  1. Copy&paste the content in lyric.json in Meun Bar > Touch Bar;
  2. Change the python path to your own python path in the script area;
  3. Optional: You can use pubproxy api to remedy netease's anti-crawler mechanism.
${PYTHONPATH} -m touchbar_lyric --api ${PUBPROXY_API}

Preview

Preview Preview

Note: In case there is no synced lyric, each sentence will be displayed at an evenly time interval.

Project details


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)

Uploaded Source

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

Hashes for touchbar-lyric-0.1.3.tar.gz
Algorithm Hash digest
SHA256 206e86556d4188544835371a615a57108a14506e9ee7c6bfc05ea98c4bffd125
MD5 5b55287db9df26708b8f9d30b7bc0677
BLAKE2b-256 00f530aa40a8e753b3b9115fa1cb5a4487b978e361f87ee648f18c4341d93a02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page