Commit Graph

484 Commits

Author SHA1 Message Date
Harry
c8612f8510 Fix bug with parsing tracks
sometimes they don't come with duration.  so parse as string, which can
be null, and then if is not null we try to parse it as a double
2014-10-07 17:13:25 -04:00
Harry
0b48051ce9 Fix what I like to call the Kiesza bug
Last.fm returns an object instead of an array when it will return only
one object.  Had to resolve to some trickery behind the scenes to make
it work...
2014-10-07 17:04:16 -04:00
Harry
f6f027845d Renaming singular to plural
just for the consistency
2014-10-07 16:08:56 -04:00
Harry
5058d370df Add pagination to artist methods
the get top tracks and albums.
2014-10-07 15:58:42 -04:00
Harry
e1ad4f7a10 Add charts api
plus renaming some files
2014-10-07 15:56:30 -04:00
Harry
1bdcafbf9f Small refactoring 2014-10-07 15:41:47 -04:00
Harry
229968eb63 Add getting info by mbid
to artist, album and track
2014-10-07 15:38:08 -04:00
Harry
79fde575f0 Add an easy way to get the largest image 2014-10-07 15:17:34 -04:00
Harry
8f4b84dca1 Add rank attribute to track 2014-10-07 15:09:59 -04:00
Harry
9d93743c2b Hacks to flex objects with the api
what can I say, last.fm is one of the most unreliable apis I have work
with. these changes help with abstracting all that.
2014-10-07 10:30:28 -04:00
Harry
5306c8970c Add search and similar methods for apis 2014-10-07 10:24:27 -04:00
Harry
c8429bd361 Rename track, album and artist objects 2014-10-07 10:12:09 -04:00
Rikki Tooley
878e7c0e63 Rename LastImageCollection -> LastImageSet, add more info to Artist page demo 2014-10-04 22:43:26 +01:00
Rikki Tooley
49139c97fa Messing about with NuGet again :'(
Change targets to .NET 4.5 to remove dependency on Microsoft.Async
Also removing console project
2014-10-03 15:05:58 +01:00
Rikki Tooley
d9153ed34c Changing PCL profile again, hopefully fixing broken packages (really need to figure out a proper process for this) 2014-10-02 13:11:46 +01:00
Rikki Tooley
20a06390dc Removing support for Windows Phone 7.5.
PCL profile 104 -> 259.
2014-10-02 10:27:53 +01:00
Rikki Tooley
c25d132185 Added artist top tracks and artist top albums methods to GetArtistInfo in demo app 2014-10-01 01:31:00 +01:00
Harry
941c38f01c Merge https://github.com/zumicts/lastfm into master
Add get top tracks and albums for artist
See pr #10
2014-10-01 01:29:50 +01:00
Rikki Tooley
5e46cf415d Update AppVeyor badge url
Also, #9 is fixed!
2014-09-30 15:53:25 +01:00
Rikki Tooley
f6c9efd836 Remove binding redirects... and a test...
will AppVeyor work now? (#9)
2014-09-30 14:51:00 +01:00
Rikki Tooley
7c95aaa254 Changing back to PCL104, hopefully fixing NuGet and AppVeyor 2014-09-30 14:35:05 +01:00
Rikki Tooley
3f002ff637 Remove NuGet packages folder from Git 2014-09-29 22:07:46 +01:00
Rikki Tooley
03af15e681 Merge branch 'master' of github.com:inflatablefriends/lastfm 2014-09-29 21:41:26 +01:00
Rikki Tooley
bb2b187da4 Regenerate NuGet files.. 2014-09-29 21:40:51 +01:00
rikkit
22d43d648c Update LICENCE.md 2014-09-16 18:29:54 +01:00
Rikki Tooley
66366ceaf0 Reorganising project, update dependencies, changed PCL profile 2014-09-16 18:28:40 +01:00
rikkit
154d19d735 Update README.md 2014-09-16 17:20:29 +01:00
Rikki Tooley
954da773e9 Nuget and VS 2013 support. 2013-11-06 20:36:37 +00:00
Rikki Tooley
0a4f58d160 Another fix to error detection... 2013-09-13 19:19:16 +01:00
Rikki Tooley
f2b0875503 Changed error detection logic, fixes #7
* removed "json.Contains("error")"  - lol
2013-09-11 03:37:55 +01:00
Rikki Tooley
015362fc81 Fixed exception when HttpClient requests are cancelled and return empty strings 2013-09-11 03:18:51 +01:00
Rikki Tooley
fc42d1b34c GetTrackShoutsCommandTests 2013-09-09 19:55:27 +01:00
Rikki Tooley
85d8edad3b Moved authentication into GetMobileSessionCommand. Resolves #6 2013-09-02 16:14:35 +01:00
Rikki Tooley
b249ea7fa8 Added LastFm.CatchRequestExceptions to catch HttpRequestExceptions
Using this mean clients don't have to wrap every call in try/catches http://stackoverflow.com/questions/18562613/async-method-returning-taskt-with-generic-constraint-in-c-sharp?noredirect=1#comment27311729_18562613
2013-09-01 23:57:54 +01:00
Rikki Tooley
db00dfd8ed Changed command structure to reduce repetition 2013-09-01 20:52:44 +01:00
Rikki Tooley
73e1831986 user.shout, artist.shout.
the api doesn't have album.shout and track.shout but i made commands for
them anyway, not put them in AlbumApi or TrackApi though.
2013-07-30 00:36:55 +01:00
Rikki Tooley
2235ba0753 album.getinfo, album.getshouts, artist.getshouts, user.getinfo, user.getshouts 2013-07-29 03:47:59 +01:00
Rikki Tooley
718710d200 PostCommands don't need encoded parameters 2013-07-27 16:18:33 +01:00
Rikki Tooley
b610e5488d Another fix for #2 2013-07-25 17:48:48 +01:00
Rikki Tooley
59f2654f11 Fixes #3: Escaping parameters on existing commands
Simple as Uri.EscapeDataString()
2013-07-25 00:07:37 +01:00
Rikki Tooley
4b8bb03d3f Fixes #4: nullreferenceexception when parsing track with no tags 2013-07-24 22:39:49 +01:00
Rikki Tooley
ab9f873342 Exposing track.isnowplaying property
Probably more reliable than testing if datetime is null
2013-07-24 22:28:42 +01:00
Rikki Tooley
f342bd0757 artist.getShouts 2013-07-24 07:59:07 +01:00
Rikki Tooley
bf87dd9dba Workaround for HttpClient's caching
See
http://stackoverflow.com/questions/6334788/windows-phone-7-webrequest-caching
2013-07-24 01:48:55 +01:00
Rikki Tooley
83b816b3a2 track.love and track.unlove.
Also tidied the postcommands a bit.
2013-07-24 01:14:22 +01:00
Rikki Tooley
3eb12180a3 Fixes none of the getcommands working...
should really unit test this stuff
2013-07-24 01:09:33 +01:00
Rikki Tooley
4e2b7b0235 Removed methods using mbids. They weren't implemented anyway and last.fm doesn't use them reliably (see http://www.last.fm/group/Last.fm+Web+Services/forum/21604/_/2210879) 2013-07-24 00:11:58 +01:00
Rikki Tooley
92aec324ef Tidied up command framework. 2013-07-24 00:11:57 +01:00
Rikki Tooley
5134b6c2cc user.getRecentStations now uses the new PostAsyncCommand pattern 2013-07-24 00:11:57 +01:00
rikkit
99a61e50f8 Syntax highlighting for the quickstart
```c#
```
2013-07-23 23:11:54 +01:00