trizen / clyrics Goto Github PK
View Code? Open in Web Editor NEWAn extensible lyrics fetcher, with daemon support for cmus and mocp.
Home Page: https://trizenx.blogspot.com/2013/02/mocp-lyrics.html
License: GNU General Public License v3.0
An extensible lyrics fetcher, with daemon support for cmus and mocp.
Home Page: https://trizenx.blogspot.com/2013/02/mocp-lyrics.html
License: GNU General Public License v3.0
Hey,
I've recently been getting this error:
There is no form named "f" at /usr/share/perl5/vendor_perl/WWW/Mechanize.pm line 1011.
Fact is, I cloned the code, and replaced form_name => 'f'
by form_id = 'tsf'
and it works. Not sure why though, google.com does indeed have a form named f
($('[name="f"]')
returns the correct form).
Any idea about this?
P.S. I checked the older issue which was related to perl-lwp-protocol-https
, I have that installed.
AFAIK there is no way to output the title of the song when not started as a daemon. Would it be possible to add an option for that?
I could (maybe) send a patch if you think you would like that feature too.
Hi, I just visited this repo again. I've used clyrics for some years, Thanks, It's a great software.
I'm a Gentoo user and see a link in the README for arch installation. I wrote an ebuild for Gentoo, it could be useful for other users.
https://github.com/genomorro/genomorro-overlay/tree/master/media-sound/clyrics
I've found the package on AUR. It is cool that it supports cmus
in daemon mode. I'll definitely try it. I've been azlyrics
from python-azlyrics-git
using before discovering clyrics
.
Only thing, how can specify the artist in the search, for instance:
Clouds - Heaven Was Blind to My Grief
to retrieve me lyrics of my favourite metal band :-)
I hope it (would) support(s) non-very-popular genres (unlike azlyrics
) fetching lyrics from darklyrics.
Thank you for the attention.
I least I think that's what's happening. Regardless of what query I enter, I always get the following output:
clyrics -dd test
** GET https://www.google.com/ ==> 200 OK
** GET https://www.google.com/search?q=test+site%3Aazlyrics.com+OR+site%3Agenius.com&source=hp&sca_esv=572214004&ie=UTF-8 ==> 302 Found
** GET https://consent.google.com/ml?continue=https://www.google.com/search%3Fq%3Dtest%2Bsite%253Aazlyrics.com%2BOR%2Bsite%253Agenius.com%26source%3Dhp%26sca_esv%3D572214004%26ie%3DUTF-8&gl=DE&m=0&pc=srp&uxe=eomcrt&cm=4&hl=de&src=1 ==> 200 OK
Hey, I changed the search engine to DuckDuckGo in a quick personal fork and I find it performs much better (more chance to actually find the correct song lyrics) as it plays nicer with AZLyrics. Maybe it could be interesting to make it an option?
I mean, maybe it's only for my musical taste, so I don't know if it would make sense to simply change it to DDG at once.
(btw, I can't really code >.<)
Nice work on clyrics, I really like it!
Currently only 4 of the plugins call decode_entities
on the text they return, so I've noticed encoded HTML entities in some fetched lyrics.
Tell me if I'm wrong, but I think it would probably make the most sense to do the decoding in get_lyrics()
instead, so that it gets applied to all the plugins automatically.
With latest git commit, it crashes on every query with
There is no form named "f" at /usr/share/perl5/vendor_perl/WWW/Mechanize.pm line 1938.
Mechanize.pm is version 1.73.
currently if you run clyrics in tmux the new lyrics gets kinda merged with the old lyrics when a new song starts/changes to a new song meaning it gets quickly confusing to find where the lyrics start and where it ends for songs
Is it possible to save lyrics once viewed.
hi,
it seems that google allows 100 searches per day for free.
after it, i just get error messages, no lyrics. (see below)
could you please find an other way to fetch lyrics?
thanks,
cs
$ ./cylrics -d metallica nothing else matters
** GET https://www.google.com/ ==> 200 OK
** GET https://www.google.com/search?source=hp&ei=c3gIWsClIPKS6QTQ_J-ADA&q=metallica+nothing+else+matters+site%3Aazlyrics.com+OR+site%3Asonglyrics.com+OR+site%3Agenius.com+OR+site%3Arapgenius.com+OR+site%3Alyricskong.com+OR+site%3Aversuri.ro+OR+site%3Alyricsmania.com+OR+site%3Ayololyrics.com+OR+site%3Alyricstime.com+OR+site%3Ametrolyrics.com+OR+site%3Areleaselyrics.com+OR+site%3Auulyrics.com+OR+site%3Aval.fm+OR+site%3Alyrics.wikia.com+OR+site%3Aalbumcancionyletra.com+OR+site%3Aelyrics.net+OR+site%3Aletras.com+OR+site%3Aartists.letssingit.com&ie=UTF-8 ==> 302 Found (1s)
** GET https://ipv6.google.com/sorry/index?continue=https://www.google.com/search%3Fsource%3Dhp%26ei%3Dc3gIWsClIPKS6QTQ_J-ADA%26q%3Dmetallica%2Bnothing%2Belse%2Bmatters%2Bsite%253Aazlyrics.com%2BOR%2Bsite%253Asonglyrics.com%2BOR%2Bsite%253Agenius.com%2BOR%2Bsite%253Arapgenius.com%2BOR%2Bsite%253Alyricskong.com%2BOR%2Bsite%253Aversuri.ro%2BOR%2Bsite%253Alyricsmania.com%2BOR%2Bsite%253Ayololyrics.com%2BOR%2Bsite%253Alyricstime.com%2BOR%2Bsite%253Ametrolyrics.com%2BOR%2Bsite%253Areleaselyrics.com%2BOR%2Bsite%253Auulyrics.com%2BOR%2Bsite%253Aval.fm%2BOR%2Bsite%253Alyrics.wikia.com%2BOR%2Bsite%253Aalbumcancionyletra.com%2BOR%2Bsite%253Aelyrics.net%2BOR%2Bsite%253Aletras.com%2BOR%2Bsite%253Aartists.letssingit.com%26ie%3DUTF-8&q=EhAgAQRwHxoDCAAAAADerb7vGPPwodAFIhkA8aeDS1qU1zq4XytHDPoJ8GuVG2OtYmtVMgFy ==> 503 Service Unavailable
$
hey @trizen ! First things first: thanks alot for ur contributions and followups. Ive been a clyrics user for years now; however, on my ArchLinux_i686 machine I started getting this new error message after upgrading from the archlinuxi686(defunct) repos to the archlinux32 repos:
No clickable input with name btnG at $HOME/perl5/lib/perl5/WWW/Mechanize.pm line 913.
I have the following required deps installed:
If i turn on the debbugging options I get this before errmsg:
** Title: <Red Hot Chili Peppers - Dani California Greatest Hits Album Out in L.A 1994> ** GET https://www.google.com/ ==> 200 OK (2s)
Any help would be greatly appreciated, if I figure it out on my end ill let u know.
clyrics quits when playback is paused.
Maybe add a switch that makes clyrics stay open no matter what
Hi!
Just to let you know that I've packaged clyrics for Guix.
Feel free to add it to the READE.
Cheers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.