Commit Graph

267 Commits

Author SHA1 Message Date
Clxud 9f30e90da2 revert _update_state to use time.time 2023-03-10 00:25:36 +00:00
Clxud 4c3cd7e81a make websocket version dynamic 2023-03-09 23:08:32 +00:00
Clxud f0726cddde create session class on connect call 2023-03-09 22:50:59 +00:00
Clxud fa8a444bf6 make type optional 2023-03-09 22:42:13 +00:00
Clxud 5c6ae99e80
Update exceptions.py 2023-03-09 17:21:37 -05:00
Clxud 739e926d09 added __all__ to appliciable classes 2023-03-09 17:10:52 +00:00
Clxud c9a331b278 start typehinting and correcting the library 2023-03-09 15:40:50 +00:00
cloudwithax de7385d8ff fix a couple of outstanding bugs 2023-03-09 08:24:26 -05:00
cloudwithax e0ff5f13a4 bump version to remove debug print from stable 2023-02-21 08:24:09 -05:00
cloudwithax b3799214e6 remove debug print 2023-02-21 08:23:35 -05:00
cloudwithax d63e1f61c5 2.1 2023-02-20 04:07:10 -05:00
cloudwithax 12cbccc2a9 add queue jump 2023-02-17 23:54:14 -05:00
cloudwithax f104c7a2aa fix 'no apple music client' error 2023-02-09 22:38:43 -05:00
cloudwithax 3714656f0e add version comparison 2023-02-05 23:16:48 -05:00
cloudwithax 15d0f316a1 cleam up code 2023-02-05 22:56:58 -05:00
cloudwithax 14c82c1b56 wrap up apple music, v2 is done 2023-02-05 22:51:56 -05:00
cloudwithax c1a9d7603f manually sync out of date changes into v2 2023-02-05 13:27:43 -05:00
cloudwithax d08f07ffdc get objects in place for apple music client 2023-02-05 13:08:49 -05:00
cloudwithax 809bb4aa3f get basic code for the apple music client in place and working 2023-02-03 19:22:49 -05:00
cloudwithax 25c6d399e8 fix some issues + add auth to send() 2023-02-01 23:00:55 -05:00
cloudwithax 73dbc35401 correct get url 2023-02-01 22:13:44 -05:00
cloudwithax 0089caea09 whoopsie forgot to make that a rest uri 2023-02-01 22:12:21 -05:00
cloudwithax fc2b12af4e finally done translating all methods over to REST 2023-02-01 22:06:54 -05:00
cloudwithax 6b513d1e67 getting ready for pomice v2 2023-01-24 13:58:51 -05:00
cloudwithax cab2f2d3a1 remove debug print 2022-10-25 21:33:01 -04:00
cloudwithax c50930bc11 whoops forgot if statement 2022-10-25 21:21:13 -04:00
cloudwithax b6516f2d09 change where filters are set to preload 2022-10-25 21:20:35 -04:00
cloudwithax 4013bf94f3 change filter check 2022-10-25 21:13:47 -04:00
cloudwithax 0e9399af3f Add Filters.has_global 2022-10-25 21:08:16 -04:00
cloudwithax 0ef5db476b Make global filters take precedence over track filter 2022-10-25 21:00:20 -04:00
cloudwithax 8a9425c662 Removed unused enums/params 2022-10-12 18:13:45 -04:00
cloudwithax e504088da1 add function to clear filters on all tracks 2022-10-12 18:12:10 -04:00
cloudwithax 1e12d79d68 add per-track filter applying 2022-10-10 23:25:53 -04:00
cloudwithax c9bba65f48 fix version number 2022-10-06 19:32:58 -04:00
cloudwithax 3687f9b33a Revert "Remove all Spotify client code in preparation for 1.1.8"
This reverts commit ab708a1cfb.
2022-10-06 19:31:38 -04:00
cloudwithax 827ab0a1ef Revert "remove .original from code"
This reverts commit 216c9d8bf5.
2022-10-06 19:31:15 -04:00
ilkergzlkkr c58ce76ac8 DiscordPyOutdated for v2 or below, not above 2022-09-04 02:06:11 +03:00
cloudwithax 216c9d8bf5 remove .original from code 2022-09-03 12:27:35 -04:00
cloudwithax ab708a1cfb Remove all Spotify client code in preparation for 1.1.8 2022-09-03 10:36:25 -04:00
cloudwithax 0c8485971b edit DiscordPyOutdated exception 2022-08-29 19:59:51 -04:00
Clxud e04aa9ba30
Merge pull request #30 from ilkergzlkkr/main
Never search for spotify track that searched before
2022-08-29 19:37:01 -04:00
cloudwithax fd0a2c5c26 Add queue system and fix a few issues 2022-08-09 20:03:37 -04:00
ilkergzlkkr e0e5d4b776 fix: lavalink track_id parser error 2022-07-28 20:03:35 +03:00
ilkergzlkkr 6967b6467f fix: never search for track that searched before 2022-07-21 11:49:37 +03:00
cloudwithax 6a0765d712 Fixed discord py outdated exception 2022-07-05 05:19:58 -04:00
cloudwithax 8928b7b6f2 Added versioning based off of discord.py versioning 2022-07-05 05:17:48 -04:00
cloudwithax 535c3bfe79 Fix issues with Spotify tracks not having ISRCs + others 2022-07-05 05:12:34 -04:00
cloudwithax 2c4c07a349 forgot to add voiceprotocol change 2022-06-15 16:21:37 -04:00
cloudwithax 9c702876f8 1.7 update part 1 2022-06-15 16:18:40 -04:00
cloudwithax 822fa1e3c4 Fix reset_filter function and some minor fixes before PRs 2022-03-28 13:18:45 -04:00
VP a228ed4ac1 revert previous commit - redundant 2021-12-28 13:49:10 +02:00
VP 8972a1c913 set _guild on voice state update just to be safe 2021-12-28 13:47:47 +02:00
VP d8388456f2 hopefully fix player.guild bs (+ cleanup) 2021-12-27 10:34:01 +02:00
VP 5acc3625a0 cleanup 2021-12-27 10:33:42 +02:00
VP ab9acdb033 change mentions of _guild to guild 2021-12-22 15:45:10 +02:00
VP 84ebca1c12 remove player._guild 2021-12-22 15:42:19 +02:00
cloudwithax 42dde4ce44 Add new node algo, NodeAlgorithm.by_players 2021-12-21 20:34:06 -05:00
cloudwithax 14c4a68af8 Set optional args to None by default 2021-12-11 12:21:44 -05:00
RPS a61220401c
New description 2021-12-08 21:05:42 +08:00
RPS 22be91bb09
Fix 2021-12-08 03:15:19 -08:00
RPS 0a78a8f5c7
Make ``__init__`` better 2021-12-08 02:14:53 -08:00
cloudwithax 50429277ea Fix __init__ to support discord.py forks 2021-12-06 17:58:21 -05:00
cloudwithax d1d2463680 Added new reset_filter() helper function, fixed bug with Spotify tracks not retaining thumbnails and some other QoL features 2021-12-05 16:29:01 -05:00
vveeps fcbca4e8e1 fix invalid equalizer payload 2021-11-26 17:39:52 +02:00
vveeps 148dcf2414 fix self._factory call in Equalizer init 2021-11-26 16:53:04 +02:00
cloudwithax 70d4f5a63d bump versioing for minor bug fix 2021-11-25 11:22:26 -05:00
cloudwithax 18f6f906fe why did i use a generator expression lmao 2021-11-25 11:11:25 -05:00
cloudwithax d249d84f9f added node algos, cleaned up events.py, add node arg to Player() 2021-11-23 13:59:20 -05:00
cloudwithax c3135b7798 Decrease heartbeat interval so that people can stop complaining about it not working on heroku 2021-11-22 15:00:03 -05:00
cloudwithax 106d151157 Finally fixed thumbnails 2021-11-19 11:11:51 -05:00
cloudwithax 063d2d08af why was the node.stats property async 2021-11-13 13:13:04 -05:00
cloudwithax fc71bdda1f woops forgot to add https to rest uri if the node is securre 2021-11-13 13:10:27 -05:00
cloudwithax 2e77a7d7df Added secure kwarg to create_node() and fixed some bugs 2021-11-12 21:07:50 -05:00
vveeps 3115989f42 fix Track.original and make some Playlist attrs consistent 2021-11-12 18:01:40 +02:00
cloudwithax 360889e048 Fixed attribute semantics 2021-11-11 17:31:44 -05:00
cloudwithax 11e4a34a96 Added original spotify track to pomice.Track as an attribute 2021-11-11 17:13:34 -05:00
vveeps 267fd32898 ignore playlist items with track: null 2021-11-11 16:52:31 +02:00
vveeps c13181beae don't set _current to None if track was replaced 2021-11-07 14:46:43 +02:00
vveeps d396ac44f1 use current.original in internal logic 2021-11-07 14:34:09 +02:00
vveeps 81bf0b9756 fix spotify url issue and handle local tracks properly 2021-11-06 23:07:11 +02:00
vveeps ec02cbe146 make spotify tracks seekable and change Playlist.selected_track 2021-11-06 23:05:51 +02:00
cloudwithax 3d20c8cf5e Fixed some bugs and cleaned up some code 2021-11-04 21:06:29 -04:00
cloudwithax 43edfacda1 Revert property changes and fix bugs 2021-11-04 08:07:27 -04:00
vveeps 3e09556e11 return -> raise 2021-10-31 19:57:43 +02:00
cloudwithax c83e59e91f Merge branch 'main' of https://github.com/cloudwithax/pomice 2021-10-30 12:03:08 -04:00
cloudwithax 36bddc1de6 Added 100% coverage of all filters and exception field for TrackExceptionEvent for Lavalink 3.4 release 2021-10-30 12:02:45 -04:00
vveeps 0cac9594e4 add player.is_dead 2021-10-29 16:14:01 +03:00
cloudwithax 10506a1fbe Some code cleanup before release 2021-10-28 17:55:48 -04:00
vveeps 2e0daa4840 T 2021-10-28 18:10:01 +03:00
vveeps 8c9e1114da bump version to 1.1.0 because changes are majorish 2021-10-28 18:04:45 +03:00
vveeps b72258cb60 make player.destroy useful 2021-10-28 17:58:59 +03:00
vveeps f4ffbcd5b8 make player.destroy work even when already disconnected 2021-10-28 17:38:32 +03:00
vveeps 7fda302a31 code cleanup 2021-10-28 17:23:48 +03:00
vveeps df9ae54e6c spotify code cleanup 2021-10-28 16:48:25 +03:00
vveeps 5bc27bad58 don't stop playback on disconnect (+ change some docstrings) 2021-10-28 16:13:36 +03:00
cloudwithax 89b18e7a2a Changed versioning for PyPI release 2021-10-27 17:56:24 -04:00
vveeps d344f82325 player.current should be None after a track ends 2021-10-26 21:22:06 +03:00
vveeps fd2d5645fe improve disconnect logic a bit 2021-10-26 18:07:22 +03:00
vveeps 762160e84b dont error on imageless spotify tracks 2021-10-26 17:57:42 +03:00
vveeps 1b54aae3b3 small fix 2021-10-26 15:39:21 +03:00
vveeps 12544691eb improve play command payloads a bit (+ run autoformatting) 2021-10-26 15:32:08 +03:00
cloudwithax 2aca3a8d3a Improved Spotify playlist querying to be a little less janky 2021-10-20 19:54:39 -04:00
VP 38b40b676b cleanup (i hate single quotes) 2021-10-20 22:50:24 +03:00
VP db9f1cfba3 add param for play noReplace 2021-10-20 22:44:39 +03:00
VP 5d6c50f11e remove unused line 2021-10-20 22:31:24 +03:00
VP c782b718cb Merge branch 'main' of https://github.com/cloudwithax/pomice 2021-10-20 21:18:27 +03:00
VP 2afff11a5e handle LOAD_FAILED loadtype without erroring xd 2021-10-20 21:17:30 +03:00
Crussader d7bc7a8958
updated player.py
updated with `__call__` dunder.
2021-10-20 22:12:07 +04:00
VP 7b83a9fc69 cleanup / type stuff 2021-10-20 14:36:12 +03:00
VP 584f6e5286 event rewrite 2 2021-10-20 14:36:01 +03:00
cloudwithax 7d53934697 Major Spotify impl rewrite + some other goodies 2021-10-19 20:29:24 -04:00
cloudwithax ea6c2baf3c Fix examples to better reflect changes in library 2021-10-17 17:21:24 -04:00
cloudwithax be0a1eb699 Updated versioning for PyPI release 2021-10-17 12:18:17 -04:00
vveeps b8c263166f fix websocket event class names
https://github.com/freyacodes/Lavalink/blob/master/IMPLEMENTATION.md#incoming-messages
2021-10-11 11:25:54 +03:00
cloudwithax e4ee754d30 Fixed SearchType parsing + version bump 2021-10-09 18:26:39 -04:00
vveeps a20209d5c8 make search prefix detection a bit stricter for good practice 2021-10-10 01:03:12 +03:00
vveeps e0f38e50f8 dont prepend search type if it's already there 2021-10-10 00:59:12 +03:00
cloudwithax fb07aca29e Version bump 2021-10-09 17:31:45 -04:00
cloudwithax a900f77424 Added better query parsing to get_tracks() to make it easier to search up keywords rather than having the end user implementing it themself 2021-10-09 17:30:16 -04:00
vveeps cb46150ce2 add missing context to Track.original 2021-10-10 00:26:49 +03:00
vveeps 7d2600ed7f cleanup + make some params kw only 2021-10-10 00:13:48 +03:00
vveeps 553bf9ce63 remove unused code 2021-10-09 23:58:24 +03:00
vveeps 5d53b468e3 fix track search_type bs for good 2021-10-09 23:58:15 +03:00
vveeps d9f5f202fd fix search type issue 2021-10-09 23:49:35 +03:00
vveeps 2c5e8b12b0 fix circular import issue 2021-10-09 23:14:02 +03:00
vveeps e66440e9b3 we do a little cleaning up 2021-10-09 23:03:12 +03:00
vveeps a72afa8031 Merge branch 'main' of https://github.com/cloudwithax/pomice 2021-10-09 22:44:12 +03:00
cloudwithax f6a3752298 Added Discord audio attachment URL regex to better parse audio tracks. Take that, Groovy... 2021-10-08 21:12:40 -04:00
cloudwithax e138091fcf are you fucking kidding me 2021-10-08 18:59:11 -04:00
cloudwithax e51e26cbf7 Fixed bug where self.current would not set to none after stop 2021-10-08 18:49:00 -04:00
cloudwithax 7343d14225 Finally fixed SearchType and cleaned up some code 2021-10-08 18:34:27 -04:00
vveeps a4c211dd82 remove unused import 2021-10-08 17:18:48 +03:00
vveeps 543e2d9b86 cleanup + searchtype stuff 2021-10-08 17:15:18 +03:00
cloudwithax c1ff8d77c0 Remove partially implemented queue from utils.py 2021-10-07 20:36:28 -04:00
cloudwithax b53fe52331 Fixed some bugs and added new SearchType enum 2021-10-07 20:34:32 -04:00
vveeps bdf0a75055 remove _ from non-internal attributes for now 2021-10-07 18:37:41 +03:00
vveeps fc9f22e5ff change all Player.node to new Player._node 2021-10-07 18:28:34 +03:00
vveeps 01af4e9417 change all Player.guild to new Player._guild 2021-10-07 18:27:17 +03:00
vveeps 980e9b5085 remove redundant assignment because node._pool is not a thing anymore 2021-10-07 18:24:22 +03:00
vveeps be592f3f2e change self to cls in classmethods 2021-10-07 18:23:58 +03:00
vveeps d753322f05 fix circular import problem 2021-10-07 18:20:43 +03:00
vveeps 77bd640d6a clean imports 2021-10-07 18:03:54 +03:00
vveeps 7588c5d5e9 move NodePool to node.py 2021-10-07 18:01:03 +03:00
vveeps 7c9dec116d bump version 2021-10-07 17:46:41 +03:00
vveeps a85dc41e68 change spotify track youtube query to "artist - title" 2021-10-07 17:46:09 +03:00
cloudwithax ec9e6929b4 Cleaned up some code and added some types 2021-10-06 19:20:46 -04:00
vveeps 4d4e5bfb51 bugfix 2021-10-07 00:06:21 +03:00
vveeps cbaa67d90f add playlist thumbnail and uri 2021-10-06 23:57:34 +03:00
Clxud fe1e49182b
Merge pull request #6 from vveeps/track-eq 2021-10-06 16:08:18 -04:00
Clxud abb22b0316
Merge pull request #5 from vveeps/main 2021-10-06 16:08:10 -04:00