Commit Graph

267 Commits

Author SHA1 Message Date
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
vveeps ece289b051 add Track.__eq__ 2021-10-06 23:01:22 +03:00
vveeps 8434d65b3c change voice event handlers to support dpy master 2021-10-06 21:04:53 +03:00
cloudwithax 423060f675 Removed redudant search term for searching up partial tracks 2021-10-03 17:04:44 -04:00
Clxud 95d01338eb
Merge pull request #4 from vveeps/main
Style changes and typo fixes
2021-10-03 16:35:53 -04:00
vveeps 1a6cc5a90b fix typo 2021-10-03 23:30:59 +03:00
vveeps 032dc0dc65 style changes 2021-10-03 23:27:26 +03:00
cloudwithax 3e18be528e Update README 2021-10-03 15:48:19 -04:00
vveeps c0b4e1a446 add discord.py 2.0 support 2021-10-03 22:04:07 +03:00
cloudwithax afc3109b27 Updated readme 2021-10-03 13:59:10 -04:00
cloudwithax 19682c4938 Updated readme 2021-10-03 13:58:35 -04:00
cloudwithax ad53028ac7 Fixed bugs related to Spotify track queueing and searching 2021-10-03 12:05:20 -04:00
cloudwithax 1319af5b5b Forgot to add Spotify credential arguments in create_node 2021-10-03 10:59:11 -04:00
cloudwithax f83e9e9cca Added Spotify functionality and added docs to every function and property that needed it 2021-10-03 10:53:49 -04:00
cloudwithax eb7c529c14 Added spotify track queueing support 2021-10-02 20:51:05 -04:00
cloudwithax a8314031b0 Updated player state fetching 2021-09-27 16:07:13 -04:00
cloudwithax 02d0a8bd0d Changed version values in __init__ 2021-09-25 14:02:02 -04:00
cloudwithax 07b158988a Initial commit 2021-09-25 13:40:41 -04:00