[Audio] Suggestions for rewrite #623

Closed
opened 2017-02-16 14:44:50 +01:00 by tekulvw · 38 comments
tekulvw commented 2017-02-16 14:44:50 +01:00 (Migrated from github.com)

We're gonna use this as a collection board for any/all current or future audio suggestions.

  • sfx #622
  • better queue control #621
  • local playlist files #620
  • play individual local files
  • jump to time #619
  • web radio stuff (which is the same thing as livestream) #548
  • event system in place to allow for channel based notifications #284
  • configurable limit on max concurrent audio streams #272
  • better soundcloud/yt playlist support #265
  • walk local playlists (sub-folder support) #270
  • auto pause if empty? #721
  • current time in [p]song #644
  • ability to update (automatically?) saved playlists #644
  • allow skipping multiple songs #1845

kill me now

We're gonna use this as a collection board for any/all current or future audio suggestions. - [ ] sfx #622 - [x] better queue control #621 - [x] local playlist files #620 - [x] play individual local files - [x] jump to time #619 - [x] web radio stuff (which is the same thing as livestream) #548 - [x] event system in place to allow for channel based notifications #284 - [ ] configurable limit on max concurrent audio streams #272 - [x] better soundcloud/yt playlist support #265 - [x] walk local playlists (sub-folder support) #270 - [x] auto pause if empty? #721 - [x] current time in [p]song #644 - [x] ability to update (automatically?) saved playlists #644 - [x] allow skipping multiple songs #1845 *kill me now*
tekulvw commented 2017-02-19 18:56:08 +01:00 (Migrated from github.com)
![](https://github.trello.services/images/mini-trello-icon.png) [General Audio rewrite](https://trello.com/c/7G31eLks/1-general-audio-rewrite)
Fr6jDJF commented 2017-02-28 08:33:12 +01:00 (Migrated from github.com)
  • #366
  • Downloading status/response so ppl don't re-queue (large tracks x100MB)
- #366 - Downloading status/response so ppl don't re-queue (large tracks x100MB)
Jonny0181 commented 2017-03-11 08:10:57 +01:00 (Migrated from github.com)

Maybe some sort of progress on the [p]song command out of the duration of the song, and something to be able to scroll through the queue with reactions when It doesn't show the whole queue?

Maybe some sort of progress on the [p]song command out of the duration of the song, and something to be able to scroll through the queue with reactions when It doesn't show the whole queue?
Br0kenMaverick commented 2017-03-25 17:08:28 +01:00 (Migrated from github.com)

An embed control for a music dedicated text channel, with:
Info:
-Now playing
-Next 5 or 10 queued songs
Reaction buttons:
-play, pause, stop, volume.
-help

Something like this, but well put together :'D https://cdn.discordapp.com/attachments/295226583936008192/295227238423461890/Captura.PNG

An embed control for a music dedicated text channel, with: Info: -Now playing -Next 5 or 10 queued songs Reaction buttons: -play, pause, stop, volume. -help Something like this, but well put together :'D https://cdn.discordapp.com/attachments/295226583936008192/295227238423461890/Captura.PNG
PJP2810 commented 2017-03-27 14:54:48 +02:00 (Migrated from github.com)

The ability to ADD a local list to the current queue (at least whilst it's playing from local music) e.g. [p]local start Playlist1 then whilst that is playing [p]local add Playlist2 Also if/when this is added it would make sense to be able to play multiple at once with something like [p]local start Playlist1 Playlist2 etc

The ability to ADD a local list to the current queue (at least whilst it's playing from local music) e.g. [p]local start Playlist1 then whilst that is playing [p]local add Playlist2 Also if/when this is added it would make sense to be able to play multiple at once with something like [p]local start Playlist1 Playlist2 etc
rtil5 commented 2017-03-28 06:03:08 +02:00 (Migrated from github.com)

a couple things if they haven't already been suggested:

  • queue pagination
  • ability for anyone to skip/delete their own queued songs
  • more information on each song (length, who queued it)
  • in general a more verbose bot that lets users know what's playing and when, etc.

nadekobot and erisbot have good examples of these queuing features

a couple things if they haven't already been suggested: - queue pagination - ability for anyone to skip/delete their own queued songs - more information on each song (length, who queued it) - in general a more verbose bot that lets users know what's playing and when, etc. nadekobot and erisbot have good examples of these queuing features
PJP2810 commented 2017-03-28 15:18:23 +02:00 (Migrated from github.com)

Fix emptydisconnect.

Also, have the option for user chosen time for emptydisconnect. e.g. [p]audioset emptydisconnect 2 (after 2 mins dc)

Fix emptydisconnect. Also, have the option for user chosen time for emptydisconnect. e.g. [p]audioset emptydisconnect 2 (after 2 mins dc)
palmtree5 commented 2017-03-29 22:18:31 +02:00 (Migrated from github.com)

I'd also suggest better error handling for errors from youtube-dl (i.e. rather than just dumping out a somewhat cryptic error message, try to figure out the error's meaning and give the user a readable explanation of what went wrong)

I'd also suggest better error handling for errors from youtube-dl (i.e. rather than just dumping out a somewhat cryptic error message, try to figure out the error's meaning and give the user a readable explanation of what went wrong)
skeith commented 2017-03-31 08:29:14 +02:00 (Migrated from github.com)

suggesting

  • save current queue as a playlist
  • list songs from a playlist
suggesting - save current queue as a playlist - list songs from a playlist
palmtree5 commented 2017-04-12 22:05:08 +02:00 (Migrated from github.com)

Suggestion: make audio usable in DM calls

Suggestion: make audio usable in DM calls
Jan200101 commented 2017-04-12 22:10:51 +02:00 (Migrated from github.com)

Only friends can get into DM calls with you and bots cant be your friend

Only friends can get into DM calls with you and bots cant be your friend
palmtree5 commented 2017-04-12 23:02:02 +02:00 (Migrated from github.com)

I forgot that was a thing

I forgot that was a thing
tekulvw commented 2017-04-13 05:37:11 +02:00 (Migrated from github.com)

For those wondering, I'll be getting back into this in mid-late May. My work semester has been keeping life busy and getting back to school should alleviate some of that. If anybody would like to contribute (ha!) shoot me a pm on discord.

For those wondering, I'll be getting back into this in mid-late May. My work semester has been keeping life busy and getting back to school should alleviate some of that. If anybody would like to contribute (ha!) shoot me a pm on discord.
nullp1r commented 2017-04-14 13:15:33 +02:00 (Migrated from github.com)

Autoplay feature would be nice (auto-queue related songs when playlist is empty).

Autoplay feature would be nice (auto-queue related songs when playlist is empty).
Br0kenMaverick commented 2017-04-15 14:11:55 +02:00 (Migrated from github.com)

Support for Youtube Mix links.

Support for Youtube Mix links.
H3xadecimal commented 2017-04-15 14:22:24 +02:00 (Migrated from github.com)

livestream support
option to not cache audio instead stream it directly.

livestream support option to not cache audio instead stream it directly.
EmmaSimon commented 2017-05-25 02:22:44 +02:00 (Migrated from github.com)

Is there a reason why we can't (or is there some hidden way to) play local songs without using local playlists? As in !local play song.mp3, if you just want a specific one? I could probably put together a pull request in the next few days, but I'm not sure if it should be a part of !local play, or if it should be a new subcommand within !local.

Is there a reason why we can't (or is there some hidden way to) play local songs without using local playlists? As in `!local play song.mp3`, if you just want a specific one? I could probably put together a pull request in the next few days, but I'm not sure if it should be a part of `!local play`, or if it should be a new subcommand within !local.
tekulvw commented 2017-06-07 17:24:02 +02:00 (Migrated from github.com)

@EmmaSimon There is no reason why not, just added it to the list

@EmmaSimon There is no reason why not, just added it to the list
tekulvw commented 2017-06-07 17:25:43 +02:00 (Migrated from github.com)

@GitHubMathi that was added to audio in #765

@GitHubMathi that was added to audio in #765
EmmaSimon commented 2017-06-07 17:33:41 +02:00 (Migrated from github.com)

@tekulvw I added it in #783 if you want to take a look, also fixed #270 while I was poking around.

@tekulvw I added it in #783 if you want to take a look, also fixed #270 while I was poking around.
josipledic commented 2017-06-11 22:30:41 +02:00 (Migrated from github.com)

Livestream support would be really nice, especially after so many 24/7 music streams popped up on Youtube in the last weeks/months.

Livestream support would be really nice, especially after so many 24/7 music streams popped up on Youtube in the last weeks/months.
Aioxas commented 2017-06-21 01:39:57 +02:00 (Migrated from github.com)

Here is a way to fix the outstanding issue regarding SC Likes (most likely what causes it) not being added to the saved playlist due to 'dict has no "url" attribute'.

Whether it's fixed in V3 or not, here's the could-be fix for existing v2 users.

Also, if "playlist" or "sets" or "likes" in url_or_search_terms in play command, make it tell the user to add it to a playlist in Red first then try playing that playlist.

Failure to do so will cause the bot to either time out (because the bot sees that it's not playing anything and disconnects due to emptydisconnect) or it will get an 403 Error in the case of SC for downloading too many files. It will also get a KeyError in checking if the server.id is in self.downloaders if it disconnects (because of emptydisconnect) during parsing.


    async def _parse_sc_playlist(self, url):
        playlist = []
        d = Downloader(url)
        d.start()

        while d.is_alive():
            await asyncio.sleep(0.5)

        for entry in d.song.entries:
            if entry["url"][4] != "s":
                song_url = "https{}".format(entry["url"][4:])
                playlist.append(song_url)
            else:
                try: # Tries to do it the normal way
                    playlist.append(entry.url)
                except AttributeError: # Error Type. Tries again using a normal dict attribute
                    playlist.append(entry["url"])

        return playlist
Here is a way to fix the outstanding issue regarding SC Likes (most likely what causes it) not being added to the saved playlist due to 'dict has no "url" attribute'. Whether it's fixed in V3 or not, here's the could-be fix for existing v2 users. Also, if "playlist" or "sets" or "likes" in url_or_search_terms in play command, make it tell the user to add it to a playlist in Red first then try playing that playlist. Failure to do so will cause the bot to either time out (because the bot sees that it's not playing anything and disconnects due to emptydisconnect) or it will get an 403 Error in the case of SC for downloading too many files. It will also get a KeyError in checking if the server.id is in self.downloaders if it disconnects (because of emptydisconnect) during parsing. ```python async def _parse_sc_playlist(self, url): playlist = [] d = Downloader(url) d.start() while d.is_alive(): await asyncio.sleep(0.5) for entry in d.song.entries: if entry["url"][4] != "s": song_url = "https{}".format(entry["url"][4:]) playlist.append(song_url) else: try: # Tries to do it the normal way playlist.append(entry.url) except AttributeError: # Error Type. Tries again using a normal dict attribute playlist.append(entry["url"]) return playlist
Kamiden commented 2017-08-22 22:21:30 +02:00 (Migrated from github.com)

A 'repeat one' function for local files would be great. Maybe just for anything in the queue. Linus Bot had this, but Linus doesn't exist anymore....

A 'repeat one' function for local files would be great. Maybe just for anything in the queue. Linus Bot had this, but Linus doesn't exist anymore....
Just-Insane commented 2017-08-28 04:05:35 +02:00 (Migrated from github.com)

Integration with Google Play Music Desktop Player's API. Documentation can be found here: https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-/blob/master/docs/PlaybackAPI_WebSocket.md

Integration with Google Play Music Desktop Player's API. Documentation can be found here: https://github.com/MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-/blob/master/docs/PlaybackAPI_WebSocket.md
Jan200101 commented 2017-08-28 10:32:06 +02:00 (Migrated from github.com)

for the google play music intergration a wrapper like gmusicapi could be used to control it

*for the google play music intergration a wrapper like [gmusicapi](https://github.com/simon-weber/gmusicapi/tree/master) could be used to control it*
zinefer commented 2017-09-13 21:49:25 +02:00 (Migrated from github.com)

Suggestion: channel specific volume settings?

Suggestion: channel specific volume settings?
laggron42 commented 2017-09-13 22:02:07 +02:00 (Migrated from github.com)

What about a function that will make the bot join a selected channel on cog load? Like a music channel. We could set predetermined settings with that, like play a song or a playlist and loop it, set the volume...

What about a function that will make the bot join a selected channel on cog load? Like a music channel. We could set predetermined settings with that, like play a song or a playlist and loop it, set the volume...
XT3RM1N8R commented 2017-10-06 23:00:16 +02:00 (Migrated from github.com)

I highly recommend expanding standard playlist handling and track search to simultaneously handle both local track and YT/SC tracks. This would go with the queue functionality, as well.

Additionally, having a smart track/album search that can look for substrings in names would be very helpful, as I've found that many users either don't know the full track/album names or they don't know to input the entire name. I have actually solved this part on a local branch and would be willing to share.

I highly recommend expanding standard playlist handling and track search to simultaneously handle both local track and YT/SC tracks. This would go with the queue functionality, as well. Additionally, having a smart track/album search that can look for substrings in names would be very helpful, as I've found that many users either don't know the full track/album names or they don't know to input the entire name. I have actually solved this part on a local branch and would be willing to share.
jonyroda97 commented 2017-11-22 02:04:37 +01:00 (Migrated from github.com)

add suggestions on #644

  • Multi playlists on queue.
    Random playing between the playlists queued (but not like 1 from playlist A other from playlist B and then from playlist A again. Really randomised from all the songs).

  • Add a better queued response.
    This is good when you want to know who queued the sound and have the bot command messages delete enabled. Maybe something like:
    "<user> queued in #<queue_position> <title>
    (<link>)"
    Example:
    jonyroda97 queued in #800 Post Malone - Congratulations ft. Quavo
    (https://www.youtube.com/watch?v=SC4xMk98Pdc)

and on #366

  • Replay queued history by day
    Allows mods to manage/export replays as general playlist.
    General users may start replays.
    Auto cleanup old unused replays
add suggestions on #644 - Multi playlists on queue. Random playing between the playlists queued (but not like 1 from playlist A other from playlist B and then from playlist A again. Really randomised from all the songs). - Add a better queued response. This is good when you want to know who queued the sound and have the bot command messages delete enabled. Maybe something like: "\<user> queued in \#<queue_position> \<title> (\<link>)" Example: jonyroda97 queued in \#800 **_Post Malone - Congratulations ft. Quavo_** (https://www.youtube.com/watch?v=SC4xMk98Pdc) and on #366 - Replay queued history by day Allows mods to manage/export replays as general playlist. General users may start replays. Auto cleanup old unused replays
skeith commented 2017-12-28 02:28:56 +01:00 (Migrated from github.com)

Requesting Absolute Vote toggle

What it do?
When toggled ON, this ignore everyone with instant skip power, so they are counted for skip vote. Of course, bot owner still an exception.

Requesting Absolute Vote toggle What it do? When toggled ON, this ignore everyone with instant skip power, so they are counted for skip vote. Of course, bot owner still an exception.
Curvol commented 2018-01-28 16:19:21 +01:00 (Migrated from github.com)

So, I have a text file with hundreds of pPlay Links/Artist - Song Name from songs my group has collected to play in the background of our adventures and hijinks.

The first thought could be to make a text playlist to save all these for instant play! Wrong. Can't do that cause we need to add another song that isn't on the list! Doing that would make it to the very top because it won't shuffle with the playlist!

Alright then let's just paste them all with the play command- one by one?

okay uh, lets get a bot to say the comma- bots don't listen to bots huh?

alright, fuck it. I'll type out all the songs we want into a format I can copy and paste them one by one into discord. SO I CAN ADD SONGS, AND SHUFFLE ALL OF THEM.

So these days I'm using a macro to highlight the line and copy, alt tab to discord, enter paste, alt tab times infinite. This honestly wouldn't be the worst aside from the temporary lockdown of my computer, but if a song ends and a command is entered while the bots downloading ITS FULL QUEUE WIPE. You downloading a patch and changing songs at the same ti-QUEUE WIPE WEBSOCKET CRASH GAME OVER MAN.

I just wanted to be a nice lobby leader with a nice base queue of songs everyone could join in on.

So if there were a more, open queue kind of playlist option I could save links in while allowing people to queue songs up then shuffle, I wouldn't think twice about doing anything you want with me. I love you guys and keep up the hard work.

So, I have a text file with hundreds of _**pPlay Links/Artist - Song Name**_ from songs my group has collected to play in the background of our adventures and hijinks. The first thought could be to make a text playlist to save all these for instant play! Wrong. Can't do that cause we need to add another song that isn't on the list! Doing that would make it to the very top because it won't shuffle with the playlist! Alright then let's just paste them all with the play command- one by one? okay uh, lets get a bot to say the comma- bots don't listen to bots huh? alright, fuck it. I'll type out all the songs we want into a format I can copy and paste them one by one into discord. SO I CAN ADD SONGS, AND SHUFFLE ALL OF THEM. So these days I'm using a macro to highlight the line and copy, alt tab to discord, enter paste, alt tab times infinite. This honestly wouldn't be the worst aside from the temporary lockdown of my computer, but if a song ends and a command is entered while the bots downloading ITS FULL QUEUE WIPE. You downloading a patch and changing songs at the same ti-QUEUE WIPE WEBSOCKET CRASH GAME OVER MAN. I just wanted to be a nice lobby leader with a nice base queue of songs everyone could join in on. So if there were a more, open queue kind of playlist option I could save links in while allowing people to queue songs up then shuffle, I wouldn't think twice about doing anything you want with me. I love you guys and keep up the hard work.
endms3231 commented 2018-03-10 12:45:16 +01:00 (Migrated from github.com)

How about using the real-time streaming URL as a parameter to listen to the broadcast with audio?

How about using the real-time streaming URL as a parameter to listen to the broadcast with audio?
skeith commented 2018-03-10 12:47:16 +01:00 (Migrated from github.com)

@Second-Epsilon that's planned IIRC

@Second-Epsilon that's planned IIRC
endms3231 commented 2018-03-10 12:54:32 +01:00 (Migrated from github.com)

@skeith I see! that's great!

@skeith I see! that's great!
Ray-MRQ commented 2018-05-27 00:12:16 +02:00 (Migrated from github.com)

have audio locked to a channel so it isn't used else where.

have audio locked to a channel so it isn't used else where.
palmtree5 commented 2018-05-27 00:14:30 +02:00 (Migrated from github.com)

That should be possible with the permissions cog that's coming (see #1548 for more info on that)

That should be possible with the permissions cog that's coming (see #1548 for more info on that)
Ray-MRQ commented 2018-05-27 00:23:14 +02:00 (Migrated from github.com)

I understand that. but shouldn't music lock channel be core already? like a lot of other bits has that feature to prevent spam across channels without using something else.

I understand that. but shouldn't music lock channel be core already? like a lot of other bits has that feature to prevent spam across channels without using something else.
Tobotimus commented 2019-02-27 03:54:08 +01:00 (Migrated from github.com)

Superseded by #2494

Superseded by #2494
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot#623
No description provided.