Hugo van Kemenade
7f1de76f6e
Fix test_track_get_duration
2022-09-26 11:30:50 +03:00
Hugo van Kemenade
afbafe1e76
Fix test
2022-05-02 15:06:07 +03:00
Hugo van Kemenade
eb4af40d64
autotyping: --scalar-return: add a return annotation to functions that only return literal bool, str, bytes, int, or float objects
2022-04-03 12:45:23 +03:00
Hugo van Kemenade
6c3f3afb3a
autotyping: --none-return: add a -> None return type to functions without any return, yield, or raise in their body
2022-04-03 12:45:02 +03:00
Hugo van Kemenade
b0f2f5fe13
For some reason the earlier track is returning duration=0
2022-04-03 12:35:28 +03:00
Hugo van Kemenade
fe7484b3ca
If album has no MBID, album.get_getmbid() returns None
2022-02-27 16:46:29 +02:00
Hugo van Kemenade
1a45c3b919
Allow setting multiple proxies + some cleanup
2022-02-27 16:18:41 +02:00
Hugo van Kemenade
44ade40579
Replace http.client with HTTPX
2022-02-27 16:18:41 +02:00
Hugo van Kemenade
bb05699252
Remove deprecated is_streamable and is_fulltrack_available
2022-02-27 16:13:04 +02:00
Hugo van Kemenade
3ffe7cf65a
test_get_userplaycount now passes
2022-01-24 22:26:16 +02:00
Hugo van Kemenade
1841fb66dc
This test now passes, although some other MBID searches are still broken
2022-01-24 22:07:03 +02:00
Hugo van Kemenade
3b7cb9c8c7
Deprecate is_streamable and is_fulltrack_available
2022-01-24 19:05:06 +02:00
Hugo van Kemenade
9676714dcf
Strip invalid XML characters from response
2022-01-12 13:04:34 +02:00
Hugo van Kemenade
3a7c83998f
Replace MBID for missing test album with a real one
2021-11-10 11:44:10 +02:00
Hugo van Kemenade
05b4ad8c62
Disable the flaky write tests
2021-10-19 13:57:47 +03:00
Hugo van Kemenade
c41f831d82
Fix test
2021-10-19 13:17:20 +03:00
Hugo van Kemenade
a850f093f0
track.getInfo with mbid is broken at Last.fm: https://support.last.fm/t/track-getinfo-with-mbid-returns-6-track-not-found/47905
2021-08-02 21:09:28 +03:00
Hugo van Kemenade
ddb1b1e501
Fix test
2021-08-02 20:50:21 +03:00
Hugo van Kemenade
c8a64dbee9
Test image is now gif
2021-08-02 20:42:20 +03:00
Hugo van Kemenade
3fcf45062d
Blacken docs
2020-12-30 13:09:06 +02:00
Hugo van Kemenade
10107a04e4
Merge remote-tracking branch 'upstream/master' into streaming
2020-12-29 21:38:44 +02:00
Hugo van Kemenade
8be8c4efb6
No need to set param with default
2020-12-29 21:32:29 +02:00
Hugo van Kemenade
7327b30337
Refactor to avoid shadowing built-in
2020-12-27 14:22:41 +02:00
Hugo van Kemenade
a5034c43c0
Refactor with pytest.mark.parametrize
2020-12-27 14:05:52 +02:00
Hugo van Kemenade
08274028eb
Set limit to 50 by default, not 1
2020-12-27 14:01:12 +02:00
Hugo van Kemenade
5413d636ce
Fix test
2020-11-16 23:45:25 +02:00
Hugo van Kemenade
85f58472a3
Remove deprecated Artist.get_cover_image, User.get_artist_tracks and STATUS_TOKEN_ERROR
2020-09-12 00:21:12 +03:00
Hugo van Kemenade
0f96fe58b1
Format with Black and isort
2020-09-11 23:47:42 +03:00
Hugo
3129d6052d
Run xfail tests only once: no point re-running
2020-08-23 12:11:07 +03:00
Hugo
48f4be0bcf
Rewrite and add pragmas to improve coverage of non-runnable test code
2020-08-22 11:45:33 +03:00
kvanzuijlen
52abbba2bd
tox lint changes
2020-07-12 13:32:32 +02:00
kvanzuijlen
92004058ba
Added option to stream from resources to reduce memory usage
2020-07-12 13:31:48 +02:00
Hugo
32461c089d
Only test write operations on a single Python version to avoid collision failures
2020-06-24 22:58:25 +03:00
Hugo
158273e0ae
Deprecate Artist.get_cover_image, they're no longer available from Last.fm
2020-06-22 22:20:45 +03:00
Hugo
6f62857164
Add test for get_album() changes
2020-06-02 16:02:26 +03:00
Hugo
aae4bb3693
Replace unittest with pytest
2020-06-01 15:50:27 +03:00
Hugo
7689a1e95a
User.get_now_playing: Add album and cover image to info
2020-06-01 14:52:29 +03:00
Hugo
925cae2031
Add test for artist with no bio content
2020-05-08 12:42:36 +03:00
Hugo
f806a1f36a
Fix DeprecationWarning: Please use assertRegex instead
2020-03-04 22:37:05 +02:00
Hugo van Kemenade
d367d913c2
Merge pull request #320 from pylast/313-limit-none
...
Fix regression calling get_recent_tracks with limit=None
2020-03-04 21:57:46 +02:00
Hugo
af036ec5d5
pre-commit autoupdate
2020-02-27 22:29:32 +02:00
Hugo
21f127f88b
Fix regression calling get_recent_tracks with limit=None
2020-02-15 18:19:59 +02:00
Hugo
6b04456c55
Mock is part of stdlib in Python 3
2019-12-17 22:32:53 +02:00
Hugo
d28c0ec167
Xfail those two to allow the rest to pass
2019-12-17 22:19:57 +02:00
Hugo
109315d93d
Remove Python 2 warnings, apply lint updates
2019-09-26 11:10:52 +03:00
Hugo
d589c5ef8a
Add pre-commit and fix isort
2019-09-26 10:31:49 +03:00
Paddez
7694de346e
Store Album Art URLs when you call GetTopAlbums.
...
GetTopAlbums returns AlbumArt information alongside the TopAlbums.
We should store this in the Album() info variable, so we don't have to follow up with an additional GetInfo() call if we want the Album Art.
Signed-off-by: Paddez <dave@paddez.com>
2019-06-22 22:36:41 +01:00
Hugo
c7b927d94c
user.getArtistTracks has been removed from Last.fm
2019-06-03 16:45:54 +03:00
Hugo
44d0c2c966
user.getArtistTracks has now been removed from Last.fm and returns an error
2019-06-02 22:54:03 +03:00
Hugo
f439f205dc
Xfail user.getArtistTracks, looks like Last.fm are now removing it from the API
2019-05-13 11:08:18 +03:00