-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Update lrc.py for updated function in python-syncedlyrics
#2120
Conversation
See syncedlyrics commit: [here](moehmeni/syncedlyrics@64d3f9d)
Not sure if this is what you mean, but you can change the version set in The commands to do this are: poetry add syncedlyrics@^1.0.0 # change version
poetry update # regenerate lockfile and reinstall |
This is just a temporary workaround and not a solution for this. |
How come? |
I'm co-maintainer of https://aur.archlinux.org/packages/spotdl on AUR, and as I don't mean to be demanding or anything by saying this, but it's not like everyone uses |
That is what @jerz4lunch was trying to fix no? Perhaps I misunderstand here, but my understanding was they had updated the SpotDL code to use the new version of syncedlyrics, but didn't no how to update the poetry details.
Of course, but poetry is what is used to develop it, and some people do so all installation methods need to be updated to support 1.0.0 |
Oops! I thought what you meant was to stick to older version, sorry for inconvenience. |
No worries :) |
Did what @Cornelius-Figgle suggested and now another function has to be updated. I would have looked into this before, but didn't know the proper steps to check. I'm closing this until I get everything working in my environment, and will submit another PR when that happens. |
Seems to have fixed the update of syncedlyrics to 1.0.0
It seems to run just fine now with this latest update. The program runs. However, I am not sure how to test the lyrics functionality to make sure I didn't break something else. If I could get some help on that, I would greatly appreciate it! |
Install pytest and run the tests I think. |
I got some errors. However, the test failures are not related to the code fix I made. So now what? |
I backported this pr into the AUR package, and spotdl seems to work with it. cc @aminvakil |
I've also tested and it works fine: |
I think you're alright then, not entirely sure though. I guess you need a contributor to merge this PR now |
See syncedlyrics commit: here
Change function call from
is_lrc_valid
tohas_translation
I changed the import of
is_lrc_valid
tohas_translation
and changed function call in the same way.Related Issue
It should solve the problem where the program wouldn't start since the function name was changed in required package
python-syncedlyrics
How Has This Been Tested?
I tested this, but poetry brings in older version of syncedlyrics than the one in the AUR which doesn't have relevant change, so I am not sure it this will actually work. I am not sure how to test it with the correct version of the dependency. If someone could guide me on how to use the correct version with poetry, I would greatly appreciate it. It looks like it should work given the commit in the project.
Screenshots (if appropriate)
Types of Changes
Checklist
This is my first time creating a pull request, so any guidance is appreciated.