const bool tiredOfLearning = false;
๐ Iโm currently learning
- Web-Development(front/back-end)
- Android Development (Android Studio - Java)
Contact me:
Download song lyrics and metadata from Genius.com
License: MIT License
const bool tiredOfLearning = false;
๐ Iโm currently learning
Contact me:
Since the Genius token is being set in the code, it's easy to unintentionally commit it when contribute to this project, for instance:
example/main.dart
and test/genius_lyrics_test.dart
git add .
, git commit -m "message"
and git push
without thinking ๐ณInstead, we could use:
Genius genius = Genius(
accessToken: const String.fromEnvironment('GENIUS_TOKEN'),
);
and, for instance, run tests with dart --define=GENIUS_TOKEN=<token> test -c vm:source
or flutter test --dart-define=GENIUS_TOKEN=<token>
It looks like there's a very minor typo in lib/api/routes.dart:
const String albunsRoute = '$_apiRoute/albums';
Super cool package, by the way!
When getting the info for a song, I sometimes get the error Error: Connection closed while receiving data
.
I have no idea why it happens, as it looks random to me. Sometimes it happends, sometimes it works well.
I am simply using the following line (with the genius variable correctely initialized) :
final song = await genius.searchSong(artist: artist, title: title);
Artist? artist = await genius.searchArtist(
artistName: "Nobuo Uematsu", maxSongs: 1);
The only verbose output is: flutter: Searching for songs by Nobuo Uematsu
Causes the following error: _TypeError (type '_Map<String, dynamic>' is not a subtype of type 'String')
. So it seems if no data is returned, that raises this error. Searching for"Nobuo Uematsu" on genius.com finds the artist as the top result: https://genius.com/artists/Nobuo-uematsu
Incidentally, I only intend to use the library to get the artists image url artist?.imageUrl
- I'm not interested in the songs or any other non-artist related data.
I noticed two issues in the lyrics:
X Contributors
or X ContributorsTranslationsEspanolEtcEtc
at the very beginning. Try with this song.You might also like
in the middle of the lyrics. I saw that you already have some code to remove it, but mine doesn't seem to have the [0-9]+Embed
at the end. Try with this song and look right before the outro.when we pass query as Map<String,int>
the replace queryParamns returns error
according the document , query should be Map<String , String>
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.