DO NOT MERGE #3698
No reviewers
Labels
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
No due date set.
Dependencies
No dependencies set
Reference
Mrcoolgamer11/Red-DiscordBot!3698
Loading…
Reference in a new issue
No description provided.
Delete branch "C3-feature-audio-fixes"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Simply using this as a simple visualization of conflicts and tests
Pretty much all of this is i18n stuff, there's more to come which I can't put in GitHub suggestions as they're not part of the diffs (I'll handle it later),
@cog_i18ndeco on the cog is also still needed.// yes, I purposefully did the review on this PR - branch is the same but the diffs are bigger so I can put stuff in GH suggestions I wouldn't be able to otherwise.
@ -0,0 +318,4 @@else:breakexcept KeyError:raise SpotifyFetchError(THIS IS PART 4/8 THAT NEED TO BE APPLIED TOGETHER WITH THIS.
@ -0,0 +584,4 @@single_track,ctx.author,)THIS IS PART 2/8 THAT NEED TO BE APPLIED TOGETHER WITH THIS.
@ -0,0 +760,4 @@elif val and not forced and isinstance(val, dict):data = valdata["query"] = query_stringif data.get("loadType") == "V2_COMPACT":THIS IS PART 3/8 THAT NEED TO BE APPLIED TOGETHER WITH THIS.
oof, I can't make a suggestion cause it's not part of the changes, GitHub why...
You need to replace
(with_(line below the one I commented onThis file is not used for anything (other than import of it in
audio/apis/__init__.py)@ -0,0 +1,189 @@import base64THIS IS PART 1/8 THAT NEED TO BE APPLIED TOGETHER WITH THIS.
THIS IS PART 8/8 THAT NEED TO BE APPLIED TOGETHER WITH THIS.
@ -25,50 +27,47 @@ __all__ = ["get_playlist_converter",THIS IS PART 1/3 THAT NEED TO BE APPLIED TOGETHER WITH THIS.
THIS IS PART 3/3 THAT NEED TO BE APPLIED TOGETHER WITH THIS.
THIS IS PART 2/3 THAT NEED TO BE APPLIED TOGETHER WITH THIS.
@ -257,12 +275,12 @@ class ScopeParser(commands.Converter):@ -438,3 +461,4 @@from_user_raw = " ".join(from_author).strip()try:source_user = await global_unique_user_finder(ctx, from_user_raw, guild=target_guild@ -0,0 +1,1307 @@import asyncio@ -0,0 +1,385 @@import asyncio@ -0,0 +1,861 @@import contextlibTHIS IS PART 7/8 THAT NEED TO BE APPLIED TOGETHER WITH THIS.
@ -0,0 +1,1951 @@import asyncio@ -0,0 +38,4 @@)raise RuntimeError("Not running audio command due to invalid machine architecture for Lavalink.")Should this really raise a
RuntimeError? IMO it's causing too much noise and it would be a lot better to just log it and raiseCheckFailureright after to avoid unnecessary traceback in logs.@ -0,0 +1,49 @@import loggingI guess that considering there's no place where asyncio could do a context switch, this is fine, but imo it would be clearer to define the
asyncio.Eventin__init__. All these 3 attributes are defined in ABC so definingsessionin__init__would also make sense. As forcog_init_task, you could assignNoneto it in__init__as you already check if it's not falsy in thecog_unloadanyway.@ -0,0 +1,669 @@import loggingTHIS IS PART 5/8 THAT NEED TO BE APPLIED TOGETHER WITH THIS.
THIS IS PART 6/8 THAT NEED TO BE APPLIED TOGETHER WITH THIS.
@ -0,0 +1,647 @@import asyncio@ -0,0 +1,165 @@import logging@ -241,12 +289,16 @@ DO UPDATEtrack_info = excluded.track_info,LIMITshouldn't be specified in this query.@ -306,12 +386,16 @@ DO UPDATEtrack_info = excluded.track_info,last_updated = excluded.last_updated;LIMITshouldn't be specified in this query.@ -366,12 +478,16 @@ DO UPDATEdata = excluded.data,last_updated = excluded.last_updated;"""LIMITshouldn't be specified in this query.@ -0,0 +70,4 @@)queue_list += f"`{track_idx}.` {track_description}, "queue_list += _("requested by **{user}**\n").format(user=req_user)I did two things wrong in my suggestions :|
omg, I missed a parenthesis
@ -0,0 +1,647 @@import asyncioBlack reformat, my suggestion failed style check :<
@ -77,7 +76,7 @@ async def global_unique_guild_finder(ctx: commands.Context, arg: str) -> discordreturn guildI'm sorry Draper >.>
@ -77,7 +76,7 @@ async def global_unique_guild_finder(ctx: commands.Context, arg: str) -> discordreturn guildDon't worry I'm just pressing buttons
@ -0,0 +1,10 @@from . import (local_tracksneeds to be removed.Also, I have a question - why isn't this file just empty? Python should automatically resolve the
redbot.core.audio.apis.submoduleimports.@ -0,0 +1,10 @@from . import (Pull request closed