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 & iTunes/Music background track information;
  4. Support for English/Chinese;

Instruction

1. Denpendencies

First check your python version, which should be 3.6+. All commands should be executed in your terminal.

python3 --version

pip

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py

You might want to restart your terminal.

pip3 install touchbar_lyric

Python Path

Take a note for the python3 path. We will refer it as ${PYTHONPATH}

whereis python3

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 /Users/chenghaomou/Anaconda/bin/python 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}

Where --api ${PUBPROXY_API} is optional.

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.9.tar.gz (5.4 kB view hashes)

Uploaded Source

Supported by

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