[V3 Audio] Unable to create empty playlists #1887

Closed
opened 2018-06-23 04:58:03 +02:00 by Crossedfall · 2 comments
Crossedfall commented 2018-06-23 04:58:03 +02:00 (Migrated from github.com)

Command bugs

Command name

[p]playlist create <name>

What cog is this command from?

Audio

What were you expecting to happen?

A empty playlist called should be created

What actually happened?

Nothing

How can we reproduce this issue?

  1. Create a brand new bot instance
  2. Attempt to add a new playlist
  3. Attempt to list or append tracks to the new playlist

Alt

  1. Remove all existing playlists from a bot
  2. Attempt to add a new playlist
  3. Attempt to list or append tracks to the new playlists

Attempting to append tracks results in,

No playlist with that name.

gif

Added information

Once you're affected by this bug you can seemingly only create playlists that are pre-loaded with music either through an [p]eval command or through [p]playlist queue. Tested this on old bots upgraded to the latest development, and, brand new instances created within entirely new hosting environments running the latest develop version.

image

Console Debug output

Creating empty playlist
DEBUG json_io _save_json 30: Saving file /etc/redbot/<instance>/cogs/Audio/settings.json

Appending music to an empty playlist using [p]playlist append <name>
DEBUG json_io _save_json 30: Saving file /etc/redbot/<instance>/cogs/Audio/settings.json

Resulting settings.json file
image

# Command bugs <!-- Did you find a bug with a command? Fill out the following: --> #### Command name `[p]playlist create <name>` #### What cog is this command from? Audio #### What were you expecting to happen? A empty playlist called <name> should be created #### What actually happened? Nothing #### How can we reproduce this issue? 1. Create a brand new bot instance 2. Attempt to add a new playlist 3. Attempt to list or append tracks to the new playlist Alt 1. Remove all existing playlists from a bot 2. Attempt to add a new playlist 3. Attempt to list or append tracks to the new playlists _Attempting to append tracks results in,_ >No playlist with that name. ![gif](https://user-images.githubusercontent.com/26130695/41805024-d194427c-7666-11e8-9ce2-675bbfee8d57.gif) #### Added information Once you're affected by this bug you can seemingly only create playlists that are pre-loaded with music either through an `[p]eval` command or through `[p]playlist queue`. Tested this on old bots upgraded to the latest development, and, brand new instances created within entirely new hosting environments running the latest develop version. ![image](https://user-images.githubusercontent.com/26130695/41805313-5014bc84-766d-11e8-99b1-eab9845238f0.png) #### Console `Debug` output _**Creating empty playlist**_ `DEBUG json_io _save_json 30: Saving file /etc/redbot/<instance>/cogs/Audio/settings.json` _**Appending music to an empty playlist using `[p]playlist append <name>`**_ `DEBUG json_io _save_json 30: Saving file /etc/redbot/<instance>/cogs/Audio/settings.json` _**Resulting `settings.json` file**_ ![image](https://user-images.githubusercontent.com/26130695/41804892-4277ef0a-7664-11e8-9297-324c21ab3972.png)
Kowlin commented 2018-06-23 22:50:27 +02:00 (Migrated from github.com)

Cannot repro this on my instance.

Cannot repro this on my instance.
Tobotimus commented 2018-06-25 13:20:50 +02:00 (Migrated from github.com)

Resolved by #1889.

Resolved by #1889.
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#1887
No description provided.