[Audio] Suggestions for rewrite #2494

Closed
opened 2019-02-27 03:53:37 +01:00 by aikaterna · 6 comments
aikaterna commented 2019-02-27 03:53:37 +01:00 (Migrated from github.com)

This issue is to gather features to be suggested for or worked on for Audio after 3.1 is released. This supersedes and replaces #623.

Current items in process that are more prominent on my todo list (July 2019):

  • get_tracks -> load_tracks
  • AudioTrack objects: will hold Lavalink Tracks and localtrack items (no more str handling for local tracks/use Path objects)
  • expose FriendlyExceptions for tracks to the users
  • playlist save fix (will overwrite playlists with no confirmation) *
  • playlist txt file (playlist upload/playlist download) rework. Two file options: v2 style (list of urls, only yt and soundcloud urls allowed) and v3 style (Lavalink Track information should be stored and not urls where Lavalink will need to refetch the Track information) *
  • add more comments to explain things that are not clear
  • move playlists to a custom Config group and add code to automatically migrate existing playlists to the new structure *
  • global, guild and user scope on saved playlists *

Background/Feature todo:

  • autojoin/bind (a command to bind the bot to a text channel and a voice channel for the duration of the audio session), also setting a lock on the audio set notify channel via this method *
  • channel check for auto-moving channels with a new command/if the user moved (#2521)
  • toggle for autopause when no one is in the channel (#721)
  • add pagination to audiostats command (in #2533)
  • queue: move songs up and down the list by number of songs (#621)
  • replay queue history by day (#366) *
  • autoplay songs when playlist runs out (musicbot style) (#623) *
  • local: pls, m3u support (#620) (make custom parser or contribute to Lavaplayer/Lavalink)
  • remove multiple songs at once *
  • url or keyword blacklist *
  • audioset setting to join full voice channels (bot needs Move Members to make this happen) (#2525)
  • if a playlist has a playlist url saved (non-custom playlist), check the URL for new songs to import (#1845, #270)
  • support timestamps in urls, like https://youtu.be/8CdcCD5V-d8?t=31
  • playlist improvements (#1544)
  • a thumbsup/thumbsdown on a np message to make a song play more frequently on a playlist in tandem with the playlist checking on 1544, + skip stats (playlist playing stat saving/management)
  • child folders within "album" folders in localtracks (#270)
  • queue doesn't reflect actual order of songs when shuffle is applied because shuffle is random choice out of the queue

Considering:

  • Split off Spotify functions to its own file in the audio folder, i.e. spotify.py *

What about sfx?
sfx can be found (unapproved) at: https://github.com/baiumbg/baiumbg-Cogs . Use at your own risk.

Items with ( * ) are marked for Draper#6666 to consider working on. Anyone else could make these items too... but maybe ask in the Red discord server if he's started on them, or if I have, thanks.

This issue is to gather features to be suggested for or worked on for Audio after 3.1 is released. This supersedes and replaces #623. Current items in process that are more prominent on my todo list (July 2019): - [ ] get_tracks -> load_tracks - [ ] AudioTrack objects: will hold Lavalink Tracks and localtrack items (no more str handling for local tracks/use Path objects) - [ ] expose FriendlyExceptions for tracks to the users - [ ] playlist save fix (will overwrite playlists with no confirmation) * - [ ] playlist txt file (playlist upload/playlist download) rework. Two file options: v2 style (list of urls, only yt and soundcloud urls allowed) and v3 style (Lavalink Track information should be stored and not urls where Lavalink will need to refetch the Track information) * - [ ] add more comments to explain things that are not clear - [ ] move playlists to a custom Config group and add code to automatically migrate existing playlists to the new structure * - [ ] global, guild and user scope on saved playlists * Background/Feature todo: - [ ] autojoin/bind (a command to bind the bot to a text channel and a voice channel for the duration of the audio session), also setting a lock on the audio set notify channel via this method * - [x] ~~channel check for auto-moving channels with a new command/if the user moved~~ (#2521) - [ ] toggle for autopause when no one is in the channel (#721) - [x] ~~add pagination to audiostats command~~ (in #2533) - [ ] queue: move songs up and down the list by number of songs (#621) - [ ] replay queue history by day (#366) * - [ ] autoplay songs when playlist runs out (musicbot style) (#623) * - [ ] local: pls, m3u support (#620) (make custom parser or contribute to Lavaplayer/Lavalink) - [ ] remove multiple songs at once * - [ ] url or keyword blacklist * - [x] ~~audioset setting to join full voice channels (bot needs Move Members to make this happen)~~ (#2525) - [ ] if a playlist has a playlist url saved (non-custom playlist), check the URL for new songs to import (#1845, #270) - [ ] support timestamps in urls, like https://youtu.be/8CdcCD5V-d8?t=31 - [ ] playlist improvements (#1544) - [ ] a thumbsup/thumbsdown on a np message to make a song play more frequently on a playlist in tandem with the playlist checking on 1544, + skip stats (playlist playing stat saving/management) - [ ] child folders within "album" folders in localtracks (#270) - [ ] queue doesn't reflect actual order of songs when shuffle is applied because shuffle is random choice out of the queue Considering: - [ ] Split off Spotify functions to its own file in the audio folder, i.e. spotify.py * What about sfx? sfx can be found (unapproved) at: https://github.com/baiumbg/baiumbg-Cogs . Use at your own risk. Items with ( * ) are marked for Draper#6666 to consider working on. Anyone else could make these items too... but maybe ask in the Red discord server if he's started on them, or if I have, thanks.
Jackenmen commented 2019-03-06 23:19:23 +01:00 (Migrated from github.com)

Could you explain better what you mean by autojoin/bind? I have troubles understanding what you want it to do. :/

Could you explain better what you mean by autojoin/bind? I have troubles understanding what you want it to do. :/
aikaterna commented 2019-03-06 23:22:15 +01:00 (Migrated from github.com)

I mean exactly what I wrote above, a command to lock the bot to a specific voice channel and text channel for audio commands for that current voice session only. There are other audio bots that have this feature and it's been requested occasionally.

I mean exactly what I wrote above, a command to lock the bot to a specific voice channel and text channel for audio commands for that current voice session only. There are other audio bots that have this feature and it's been requested occasionally.
Drapersniper commented 2019-07-19 10:42:14 +02:00 (Migrated from github.com)

We we want to do the following (I assume this is while DJ role is enabled)
image

We we want to do the following (I assume this is while DJ role is enabled) ![image](https://user-images.githubusercontent.com/27962761/61522020-65271b00-aa09-11e9-9d27-6ead8abfdc91.png)
Drapersniper commented 2019-07-20 14:59:27 +02:00 (Migrated from github.com)

Consolidating everything in 1 place...

Done:

  • playlist save fix (will overwrite playlists with no confirmation) (#2861 )
  • playlist txt file (playlist upload/playlist download) rework. Two file options: v2 style (list of urls, only yt and soundcloud urls allowed) and v3 style (Lavalink Track information should be stored and not urls where Lavalink will need to refetch the Track information) (#2861 )
  • move playlists to a custom Config group and add code to automatically migrate existing playlists to the new structure (#2861 )
  • global, guild and user scope on saved playlists (#2861 )
  • Split off Spotify functions to its own file in the audio folder, i.e. spotify.py (#2890 )
  • if a playlist has a playlist url saved (non-custom playlist), check the URL for new songs to import (#2861 )
  • autoplay songs when playlist runs out (musicbot style) (#623) (#2890 )
  • AudioTrack objects: will hold Lavalink Tracks and localtrack items (no more str handling for local tracks/use Path objects)
  • get_tracks -> load_tracks (At the moment it just mirrors get_track, need to discuss with Aika how should audio implement so I can update my PR to use it the appropriate way)
  • child folders within "album" folders in localtracks (#270)
  • url or keyword blacklist
  • support timestamps in urls, like https://youtu.be/8CdcCD5V-d8?t=31 (Partial pending changes to lava lib)
  • queue doesn't reflect actual order of songs when shuffle is applied because shuffle is random choice out of the queue

Work started:

  • add more comments to explain things that are not clear

Considering:

  • autojoin/bind (a command to bind the bot to a text channel and a voice channel for the duration of the audio session), also setting a lock on the audio set notify channel via this method
  • replay queue history by day (#366)
  • remove multiple songs at once
  • queue: move songs up and down the list by number of songs (#621)
  • remove multiple songs at once *
  • Make playlist remember where it was stopped? (#1544)

Others Changes:

  • Playlist now start playing after first song is loaded instead of waiting for the full playlist to load
  • Lavalink response is now cacheable as part of #2890 (Signicantly faster loading, 2.7K songs went from 1 hour to 30 seconds on folow up enqueues )
  • As part of #2890 Users are no longer able to enqueue any tracks while a playlist is enqueuing, this is to ensure queue order persists. But since songs now start being played the moment they are loaded, This doesn't have a major negative impact to users.
Consolidating everything in 1 place... ### Done: - [x] ~~playlist save fix (will overwrite playlists with no confirmation)~~ (#2861 ) - [x] ~~playlist txt file (playlist upload/playlist download) rework. Two file options: v2 style (list of urls, only yt and soundcloud urls allowed) and v3 style (Lavalink Track information should be stored and not urls where Lavalink will need to refetch the Track information)~~ (#2861 ) - [x] ~~move playlists to a custom Config group and add code to automatically migrate existing playlists to the new structure~~ (#2861 ) - [x] ~~global, guild and user scope on saved playlists~~ (#2861 ) - [x] ~~Split off Spotify functions to its own file in the audio folder, i.e. spotify.py~~ (#2890 ) - [x] ~~if a playlist has a playlist url saved (non-custom playlist), check the URL for new songs to import~~ (#2861 ) - [x] ~~autoplay songs when playlist runs out (musicbot style) (#623)~~ (#2890 ) - [x] AudioTrack objects: will hold Lavalink Tracks and localtrack items (no more str handling for local tracks/use Path objects) - [x] get_tracks -> load_tracks (At the moment it just mirrors get_track, need to discuss with Aika how should audio implement so I can update my PR to use it the appropriate way) - [x] child folders within "album" folders in localtracks (#270) - [x] url or keyword blacklist - [x] support timestamps in urls, like https://youtu.be/8CdcCD5V-d8?t=31 (Partial pending changes to lava lib) - [x] queue doesn't reflect actual order of songs when shuffle is applied because shuffle is random choice out of the queue ### Work started: - [ ] add more comments to explain things that are not clear ### Considering: - [ ] autojoin/bind (a command to bind the bot to a text channel and a voice channel for the duration of the audio session), also setting a lock on the audio set notify channel via this method - [ ] replay queue history by day (#366) - [ ] remove multiple songs at once - [ ] queue: move songs up and down the list by number of songs (#621) - [ ] remove multiple songs at once * - [ ] Make playlist remember where it was stopped? (#1544) ### Others Changes: - Playlist now start playing after first song is loaded instead of waiting for the full playlist to load - Lavalink response is now cacheable as part of #2890 (Signicantly faster loading, 2.7K songs went from 1 hour to 30 seconds on folow up enqueues ) - As part of #2890 Users are no longer able to enqueue any tracks while a playlist is enqueuing, this is to ensure queue order persists. But since songs now start being played the moment they are loaded, This doesn't have a major negative impact to users.
Drapersniper commented 2019-08-02 13:44:06 +02:00 (Migrated from github.com)

Full support for these will be available if/when https://github.com/Cog-Creators/Red-Lavalink/pull/61 is Merged

  1. queue doesn't reflect actual order of songs when shuffle is applied because shuffle is random choice out of the queue
  2. support timestamps in urls, like https://youtu.be/8CdcCD5V-d8?t=31
Full support for these will be available if/when https://github.com/Cog-Creators/Red-Lavalink/pull/61 is Merged 1. queue doesn't reflect actual order of songs when shuffle is applied because shuffle is random choice out of the queue 2. support timestamps in urls, like https://youtu.be/8CdcCD5V-d8?t=31
aikaterna commented 2019-08-22 01:44:28 +02:00 (Migrated from github.com)

Closing in favor of Draper's list @ #2940

Closing in favor of Draper's list @ #2940
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#2494
No description provided.