Commit Graph

26 Commits

Author SHA1 Message Date
Alessandro Attard Barbini
dd77be8a8a Added support for proxy configuration (#224)
* Create ProxyConfig class + Unit tests

* Use ProxyConfig in SpotifyLocalAPI

* Refactor WebProxy creation in ProxyConfig

* Use ProxyConfig in SpotifyWebAPI

* Add ProxyConfig parameter in GetAlbumArt methods

* Add ProxyConfig to WebAPIFactory

* Add proxy settings to Example app

* Fix ArgumentNullException in GetAlbumArtUrl when not using proxy

* Performed requested changes

- Removed redundant "this".
- Added necessary null checks.
- Added a ProxyConfig property to SpotifyLocalAPIConfig and removed constructor overloads with it in SpotifyLocalAPI and RemoteHandler.

* Updated Example app
2018-03-25 19:39:19 +02:00
Jonas Dellinger
023520d3de Small code cleanup 2018-03-25 18:32:46 +02:00
Alessandro Attard Barbini
5ccef6fd14 Raise OnTrackChange event for "other" tracks as well (#204)
* Raise OnTrackChange event for "other" tracks as well

* Add null checks in Example project
2018-01-10 14:56:58 +01:00
Philipp Drebes
a70bc5fc09 Refactored SpotifyUri Parsing (#194)
* refactored SpotifyUri parsing

* unit tests for SpotifyUri class

* added missing file reference in SpotifyAPI.csproj

* updated NuGet packages in SpotifyAPI.Tests and reverted inline TryParse variable declarations in SpotifyUri.cs
2017-11-09 15:36:53 +01:00
Alessandro AB
429f5e50b0 Fixed GetAlbumArtUrl always returning empty string (#156)
* Fixed GetAlbumArtUrl always returning empty string

* Simplified the regex pattern
2017-06-20 21:31:41 +02:00
Jonas Dellinger
629a09a980 Removed Proxy = null 2017-05-31 18:24:22 +02:00
Petr Houška
1ae1f2380a Fixed missed await. 2016-09-08 12:24:16 +02:00
Petr Houška
80f58df929 Fixed rest of awaits. 2016-09-08 12:06:24 +02:00
Jonas Dellinger
dd2b39292a Added OpenGraphState, got removed somehow?! 2016-09-03 00:44:51 +02:00
Jonas Dellinger
ec32ba8c06 Fixed small misspelling 'shuffle' 2016-09-03 00:40:31 +02:00
Erin O'Connell
e3700394f3 GetAlbumArtUrl() fix
Fixed GetAlbumArtUrl
2016-04-02 16:11:57 +02:00
Johnny @PC
adeac7b409 Simplified String -> string 2016-03-31 12:08:23 +02:00
Johnny @PC
8d274164c4 Tweaked SpotifyURI, moved parsing to a static method 2016-03-21 15:48:50 +01:00
eltoncezar
c1dc2313cb Error Handling 2016-03-21 08:56:06 -03:00
eltoncezar
1c5f6899eb First Implementation of SpotifyUri
Following JohnnyCrazy's directives.
2016-03-20 01:02:15 -03:00
eltoncezar
a13aadc986 New method GetId
Just a simple way to get the track id to use in the Web API.
2016-03-17 19:03:01 -03:00
mrnikbobjeff
49441bba95 Formatted and beautified code via codemaid
Organised using statements alphabetically
2015-10-17 00:44:35 +02:00
mrnikbobjeff
10c8944e05 Replaced all occurances of checking whether a string is empty via str == "" with String.IsNullOrEmpty(str)
sealed StringAttribute because it is only contains text as attribute
sealed SpotifyWebAPI class as it implements IDisposable
Changed Exception catching where the Exception is not used to ignore the Exception object
Removed Console.WriteLine("Exception: " + e.Message) int HttpProcessor.Process as it is a library function which might not be used in a console application
2015-10-17 00:31:01 +02:00
Jimmy Appelt
200648676f Added two methods issue #47 2015-10-10 20:51:21 +02:00
Jimmy Appelt
14b94aebb5 Fix crash when playing form related artist tab 2015-10-03 16:16:07 +02:00
Jimmy Appelt
69d2d708c5 Removed - blank lines 2015-10-02 21:10:44 +02:00
Jimmy Appelt
be4ae2baaf Track Length check to confirm video ad is playing 2015-10-02 21:02:52 +02:00
Johnny Dellinger @PC
d1f1923738 Fixed crash on adverts, Closes #34 2015-10-01 17:28:40 +02:00
Jimmy Appelt
7f8f085f42 Added AlbumResource Check 2015-09-18 02:55:41 +02:00
cory_shivers
9158518994 Fixed null Uri issue when playing adds
Checks for null Uri before attempting to read it
2015-07-14 00:05:16 -05:00
Johnny Dellinger @PC
45c71544f9 Full Rewrite & Cleanup (New documentation follows) 2015-07-07 18:11:11 +02:00