Giter Site home page Giter Site logo

genius.net's Introduction

Here you can see what projects I am currently working on. To know more about me use the links below:

genius.net's People

Contributors

gitter-badger avatar omarpani93 avatar opani-avanade avatar prajjwaldimri avatar stevenwdv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

genius.net's Issues

Error on SongClient.GetSong(songId)

Hi!
The new update is working well but I seem to be getting exceptions on the following method:

var response = await geniusClient.SongClient.GetSong(songId);

This only seems to happen for some songs. One of which is 5524080

I don't think it's anything to do with API limits as it's consistent for some songs. It looks like an error parsing some user data from the info below...perhaps expecting a string value for the avatar:tiny:url when the API provides null?

Exception:

Expected: ", null

Stack Trace:

  at Jil.JSON.Deserialize[T](TextReader reader, Options options)
   at Genius.Clients.SongClient.<GetSong>d__2.MoveNext()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()

SnippetAfterError:
"api_path":"/users/93685","avatar":{"tiny":{"url":

Cant get an album

After Search.DoSearch(); in album property always see null. How to get this information?

Jil.DeserializationException: Expected: ", null

Calling GetSong with songid 6267625

geniusClient.SongClient.GetSong(6267625);

throws this exception:

Jil.DeserializationException: Expected: ", null

Seems like there is something wrong with the deserialization but I can't find the error since I'm not familiar with the Jil library. I can't find a way to handle deserialization errors with this library in order to get a more "talking error".
Have you considered using the more popular Newtonsoft.Json?

Broken links

Hi!

The DOCS link here:

Usage

Please read the DOCS for complete instructions.

and the project link is also broken.

Can't seem to search

Hi,
I've just installed the package and I'm trying to carry out my first search.
I've registered my app on Genius and generated a token on there I want to use in the background of my website to grab lyrics and annotations.

I try the following code below:

var geniusClient = new GeniusClient("MY_TOKEN_FROM_THE_GENIUS_PORTAL");
var lyricResult = await geniusClient.SearchClient.Search(Genius.Models.TextFormat.Dom, "1979 The Smashing Pumpkins");

and get the error:

Object reference not set to an instance of an object.

stack trace:

   at Genius.Http.ApiConnection.<Get>d__6`1.MoveNext()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Genius.Clients.SearchClient.<Search>d__2.MoveNext()
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at MyApp.Controllers.MyController.<TestAction>d__17.MoveNext() in ...

Can you help?

Nuget Out of Date

@prajjwaldimri it looks like the version of this on nuget is out of date even though it’s labelled up as 2.0. For example the AppleMusicId in Models.Song doesn’t exist on the nuget version.
Could you release the latest code to Nuget please?

Jil.DeserializationException: 'Expected digit'

Getting the above error message while looping around the artist songs;

artistsSongs = await client.ArtistClient.GetArtistsSongs(Convert.ToUInt64(key), sort: "title", page: nextpage.ToString());

Lyrics

How can I obtain the lyrics of a song with this library? Thanks

Question: retrieving lyrics

Hello, how would I go about getting lyrics for a song using Genius.NET?

So far, I've got the following:

 
             var searchResult = await genius_client.SearchClient.Search(searchterm);
            await ReplyAsync($"first rs: {searchResult.Response.Hits[0].Result.Id}"); // Printing the ID for debugging 

            var searchSong = await genius_client.SongClient.GetSong(searchResult.Response.Hits[0].Result.Id);
            // I now need to find the Lyrics from the songSearch

        

Yet I can't seem to find a lyrics object (other than objects for when the lyrics were marked as completed/accurate etc...)

I would appreciate your help,
Many thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.