V3 feature audio - clean up #3528

Merged
Drapersniper merged 144 commits from C3-feature-audio-fixes into V3/feature/audio 2020-05-20 22:15:56 +02:00
Drapersniper commented 2020-02-08 16:05:43 +01:00 (Migrated from github.com)

Fixes broken stuff from previous PRs
Fixes #3467, where paths with special characters no longer return an empty list from glob.glob
Attempts to fix #3506 by ensuring that [p]playlist update no longer uses the local cache
When selecting a folder with child folders with [p]localplay the bot will not enqueue all nested tracks

Fixes broken stuff from previous PRs Fixes #3467, where paths with special characters no longer return an empty list from `glob.glob` Attempts to fix #3506 by ensuring that `[p]playlist update` no longer uses the local cache When selecting a folder with child folders with `[p]localplay` the bot will not enqueue all nested tracks
palmtree5 (Migrated from github.com) reviewed 2020-02-08 16:05:43 +01:00
tekulvw (Migrated from github.com) reviewed 2020-02-08 16:05:43 +01:00
Twentysix26 (Migrated from github.com) reviewed 2020-02-08 16:05:43 +01:00
Tobotimus (Migrated from github.com) reviewed 2020-02-08 16:05:43 +01:00
Kowlin (Migrated from github.com) reviewed 2020-02-08 16:05:43 +01:00
PredaaA commented 2020-02-11 21:18:56 +01:00 (Migrated from github.com)

After talks in Discord, I put this as a reminder for you @Drapersniper.
When something is blacklisted in [p]audioset restrictions, like Spotify, it should not do any fetch to Spotify API. Not only when trying to enqueue them, but also with [p]playlist save | append commands.

Another thing is that Loading track xx/xx... message on [p]playlist save | append commands get locked when the job is finished.

After talks in Discord, I put this as a reminder for you @Drapersniper. When something is blacklisted in `[p]audioset restrictions`, like Spotify, it should not do any fetch to Spotify API. Not only when trying to enqueue them, but also with `[p]playlist save | append` commands. Another thing is that `Loading track xx/xx...` message on `[p]playlist save | append` commands get locked when the job is finished.
Drapersniper commented 2020-02-29 18:22:19 +01:00 (Migrated from github.com)

This is not ready to be merged, further work is required, and a full functionality review is required however once this one is proven to be functional
https://github.com/Cog-Creators/Red-DiscordBot/pull/3459 should be ready to be merged into V3/develop.

The "further work required" is ensuring all bugs currently in this branch are resolved.

The way i coded this branch, it contacts all previous work that went into the feature branch so everything can be tested here.

Once this is merged into the feature branch the audio refactor can be considered complete.

This is not ready to be merged, further work is required, and a full functionality review is required however once this one is proven to be functional https://github.com/Cog-Creators/Red-DiscordBot/pull/3459 should be ready to be merged into V3/develop. The "further work required" is ensuring all bugs currently in this branch are resolved. The way i coded this branch, it contacts all previous work that went into the feature branch so everything can be tested here. Once this is merged into the feature branch the audio refactor can be considered complete.
aikaterna (Migrated from github.com) reviewed 2020-03-28 00:29:58 +01:00
aikaterna (Migrated from github.com) left a comment

Not an exhaustive list. This is what I've found so far - I think you may have already addressed the playlist picker as I see from one of your later commits.

[p]queue cleanself
Please title case "Removed tracks from the queue" like the rest of the error title messages.

[p]help Audio says Class joining all Audio subclasses - make this docstring more user friendly

[p]audioset autoplay reset - possibly display default value in message? (message now is Set auto-play playlist to default value.)

[p]audioset countrycode - make the docstring specify Spotify

No matching is present in playlist names across scopes.
Example:
save a playlist as a user scope playlist
play it with [p]playlist start playlistname
playlistname is not matched to any playlist
playlist id is also not matched

Playlist searcher is not seeming to pop up for loading a playlist. Have multiple playlists named the same thing and it's not asking which one to use. Playlist dedupe and playlist remove work appropriately (search popup occurs).

Formatting breaks on https://www.youtube.com/watch?v=ocDlOD1Hw9k in user facing responses because of ** in track name

The following commands and/or command groups should not be available to plebs/users without mod-admin perms in the server:
audioset autoplay command group
audioset dc
audioset notify
audioset restrictions command group

"The path must not contain spaces." can be removed from audioset localpath

Used: [p]playlist copy ENM --from-guild 154659242253484033 --to-guild 133049272517001216
Bot response: You cannot use --to-server <-not embedded, add period at end, format like other "exceptions"

Not an exhaustive list. This is what I've found so far - I think you may have already addressed the playlist picker as I see from one of your later commits. [p]queue cleanself Please title case "Removed tracks from the queue" like the rest of the error title messages. [p]help Audio says `Class joining all Audio subclasses` - make this docstring more user friendly [p]audioset autoplay reset - possibly display default value in message? (message now is `Set auto-play playlist to default value.`) [p]audioset countrycode - make the docstring specify Spotify No matching is present in playlist names across scopes. Example: save a playlist as a user scope playlist play it with [p]playlist start playlistname playlistname is not matched to any playlist playlist id is also not matched Playlist searcher is not seeming to pop up for loading a playlist. Have multiple playlists named the same thing and it's not asking which one to use. Playlist dedupe and playlist remove work appropriately (search popup occurs). Formatting breaks on <https://www.youtube.com/watch?v=ocDlOD1Hw9k> in user facing responses because of ** in track name The following commands and/or command groups should not be available to plebs/users without mod-admin perms in the server: audioset autoplay command group audioset dc audioset notify audioset restrictions command group "The path must not contain spaces." can be removed from audioset localpath Used: [p]playlist copy ENM --from-guild 154659242253484033 --to-guild 133049272517001216 Bot response: You cannot use --to-server <-not embedded, add period at end, format like other "exceptions"
Drapersniper commented 2020-03-28 13:33:53 +01:00 (Migrated from github.com)

Done

  • [p]queue cleanself
  • [p]help Audio
  • [p]audioset autoplay reset
  • [p]audioset countrycode
  • No matching is present in playlist names across scopes.
  • Playlist searcher is not seeming to pop up for loading a playlist
  • "The path must not contain spaces." can be removed from audioset localpath
  • Formatting breaks

Questions

  • You cannot use --to-server <-not embedded, add period at end, format like other "exceptions"
    • This is not handled by Audio, its an early exit in the ArgParser which raises a BadArgument thats handled by the bot Event Handler, should we wish to format this we would need to let Audio handle these which would end up over complicating the core around this area (Errors handled by the Bot Event Handler do not have embed perms like Audio is allowed to enforce).
commands.BadArgument("You cannot use `--guild`")
  • The following commands and/or command groups should not be available to plebs/users without mod-admin perms in the server:
    • This is already locked behind a check
    @checks.mod_or_permissions(manage_messages=True)
# Done - [p]queue cleanself - [p]help Audio - [p]audioset autoplay reset - [p]audioset countrycode - No matching is present in playlist names across scopes. - Playlist searcher is not seeming to pop up for loading a playlist - "The path must not contain spaces." can be removed from audioset localpath - Formatting breaks # Questions - You cannot use --to-server <-not embedded, add period at end, format like other "exceptions" - This is not handled by Audio, its an early exit in the ArgParser which raises a BadArgument thats handled by the bot Event Handler, should we wish to format this we would need to let Audio handle these which would end up over complicating the core around this area (Errors handled by the Bot Event Handler do not have embed perms like Audio is allowed to enforce). ```py commands.BadArgument("You cannot use `--guild`") ``` - The following commands and/or command groups should not be available to plebs/users without mod-admin perms in the server: - This is already locked behind a check ```py @checks.mod_or_permissions(manage_messages=True) ```
Drapersniper (Migrated from github.com) reviewed 2020-03-30 20:44:01 +02:00
@ -59,2 +62,4 @@
start=search_idx_start
):
search_track_num = i + 1
if search_track_num > 5:
Drapersniper (Migrated from github.com) commented 2020-03-30 20:44:00 +02:00
                    " - {} {}".format(str(entry.get('tracks')),  _('tracks'))

```suggestion " - {} {}".format(str(entry.get('tracks')), _('tracks')) ```
aikaterna (Migrated from github.com) reviewed 2020-05-19 04:24:38 +02:00
aikaterna (Migrated from github.com) approved these changes 2020-05-20 21:07:57 +02:00
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!3528
No description provided.