Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

metadata/Music: upgrade to unmodified CU LRC lyrics grabbers #847

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

twitham1
Copy link
Contributor

@twitham1 twitham1 commented Jan 22, 2024

Replaces #845, fixes #427.

CU LRC is used unmodified and can be easily upgraded at any time, see README.

There are 14 working grabbers that pass their tests via common/testall.py or the better ./testlyrics.pl -t -k

The first commit is CU LRC imported with zero changes other than discarding unneeded files.

The second commit is the changes to our files to use the import. For each of our *.py, the CLI moved to common/culrcwrap.py while the grabber moved to the source location lib/culrcscrapers/*/*.py leaving a simple metadata header per scraper.

Kodistubs is ~100 lines that lets the few xbmc calls work.

Checklist

except for files not needed: resources/, addon.xml, default,py and
README.txt.  MythMusic uses only the LyricsFetchers in
lib/culrcscrapers/*/lyricsScraper.py
by moving our CLI from *.py to common/culrcwrap.py which uses tiny
Kodistubs to let the few xbmc calls work.  See README for simple
upgrade procedure for any future CU LRC upgrades.
@twitham1
Copy link
Contributor Author

While this diff adds more lines than it removes, over 1500 add lines are in imported changelog and LICENCE and lib/broken-scrapers that are not used. Code in use drops from 2900 lines to 2357 lines for 543 less lines as measured by

wc *.py */*.py lib/culrcscrapers/*/*.py

And 1677 of those 2357 lines are in lib maintained by CU LRC, leaving < 700 lines that we maintain, all small and easy in ./, common/ and Kodistubs/.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Music: Some lyrics grabber fail
1 participant