[Audio] Show symbolic link folders #3376

Merged
Drapersniper merged 11 commits from 3332 into V3/develop 2020-01-17 23:07:49 +01:00
Drapersniper commented 2020-01-16 13:24:48 +01:00 (Migrated from github.com)

Description of the changes

Fixes #3332

# Description of the changes Fixes #3332
Twentysix26 (Migrated from github.com) reviewed 2020-01-16 13:24:48 +01:00
aikaterna (Migrated from github.com) reviewed 2020-01-16 13:24:48 +01:00
Drapersniper commented 2020-01-16 13:37:22 +01:00 (Migrated from github.com)

Okay so @mikeshardmind Before this is merged we need to disguss the fact that glob.glob is a intensive and action and we should look into wrapping it in an async function, as it is it works and on smaller Trees this is not an issue whatsoever but i was messing in a fairly large tree and it proved fustrating as it could take ~5 seconds to process on a tree with a several thousand files/sub directories.

The link i send on #AC should help mitigate this and seems to be a pretty stable wrapper as its used by Django.

Before merging this one and removing the "In progress" label we should decide if we are okay with this and if not what is the best way to work around it.

Okay so @mikeshardmind Before this is merged we need to disguss the fact that `glob.glob` is a intensive and action and we should look into wrapping it in an async function, as it is it works and on smaller Trees this is not an issue whatsoever but i was messing in a fairly large tree and it proved fustrating as it could take ~5 seconds to process on a tree with a several thousand files/sub directories. The link i send on #AC should help mitigate this and seems to be a pretty stable wrapper as its used by Django. Before merging this one and removing the "In progress" label we should decide if we are okay with this and if not what is the best way to work around it.
Drapersniper (Migrated from github.com) reviewed 2020-01-16 13:57:31 +01:00
Drapersniper (Migrated from github.com) left a comment

for track in self.multirglob([f"{ext}" for ext in self._all_music_ext]):

Change this to f"{ext}" you complete idiot

for track in self.multirglob(*[f"*{ext}" for ext in self._all_music_ext]): Change this to f"{ext}" you complete idiot
Drapersniper commented 2020-01-17 18:42:57 +01:00 (Migrated from github.com)

As discussed with @mikeshardmind changed to use glob.iglob and in turn used an async iterator where we iterate through the result for iglob

As discussed with @mikeshardmind changed to use `glob.iglob` and in turn used an async iterator where we iterate through the result for `iglob`
mikeshardmind (Migrated from github.com) reviewed 2020-01-17 23:01:16 +01:00
mikeshardmind (Migrated from github.com) left a comment
No description provided.
We can probably do some things to improve this in the future... Good enough for now.
Drapersniper commented 2020-01-17 23:03:42 +01:00 (Migrated from github.com)

There no more conflicts

There no more conflicts
mikeshardmind (Migrated from github.com) approved these changes 2020-01-17 23:05:30 +01: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!3376
No description provided.