[Audio] !playlist add not working for SoundCloud #265

Closed
opened 2016-05-20 04:14:45 +02:00 by d0muu · 6 comments
d0muu commented 2016-05-20 04:14:45 +02:00 (Migrated from github.com)

!playlist add no longer works for SoundCloud playlists.

Error, after calling !playlist add <name> <soundcloud link>:

Ignoring exception in on_message
Traceback (most recent call last):
  ..\Programs\Python\Python35-32\lib\site-packages\discord\client.py", line 244, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "red.py", line 71, in on_message
    await bot.process_commands(message)
  ..\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\bot.py", line 611, in process_commands
    yield from command.invoke(ctx)
  ..\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 619, in invoke
    yield from ctx.invoked_subcommand.invoke(ctx)
  ..\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 384, in invoke
    yield from injected(*ctx.args, **ctx.kwargs)
  ..\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 47, in wrapped
    ret = yield from coro(*args, **kwargs)
  ..\Red-DiscordBot\cogs\audio.py
", line 1166, in playlist_add
    songlist = await self._parse_playlist(url)
  ..\Red-DiscordBot\cogs\audio.py
", line 588, in _parse_playlist
    return await self._parse_sc_playlist(url)
  ..\Red-DiscordBot\cogs\audio.py
", line 607, in _parse_sc_playlist
    playlist.append(entry.url)
AttributeError: 'dict' object has no attribute 'url'
Ignoring exception in on_message
Traceback (most recent call last):
  ..\Programs\Python\Python35-32\lib\site-packages\discord\client.py", line 244, in _run_event
    yield from getattr(self, event)(*args, **kwargs)
  File "red.py", line 71, in on_message
    await bot.process_commands(message)
  ..\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\bot.py", line 611, in process_commands
    yield from command.invoke(ctx)
  ..\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 384, in invoke
    yield from injected(*ctx.args, **ctx.kwargs)
  ..\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 47, in wrapped
    ret = yield from coro(*args, **kwargs)

!song no longer works for SoudCloud songs.

Error, after calling !song while SoundCloud song is playing:

..\Red-DiscordBot\cogs\audio.py
", line 1440, in song
    "**Views:** {}\n\n<{}>".format(song.title, song.creator,
AttributeError: 'Song' object has no attribute 'creator'

Using latest discord.py and Red

`!playlist add` <name> <link> no longer works for SoundCloud playlists. Error, after calling `!playlist add <name> <soundcloud link>`: ``` Ignoring exception in on_message Traceback (most recent call last): ..\Programs\Python\Python35-32\lib\site-packages\discord\client.py", line 244, in _run_event yield from getattr(self, event)(*args, **kwargs) File "red.py", line 71, in on_message await bot.process_commands(message) ..\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\bot.py", line 611, in process_commands yield from command.invoke(ctx) ..\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 619, in invoke yield from ctx.invoked_subcommand.invoke(ctx) ..\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 384, in invoke yield from injected(*ctx.args, **ctx.kwargs) ..\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 47, in wrapped ret = yield from coro(*args, **kwargs) ..\Red-DiscordBot\cogs\audio.py ", line 1166, in playlist_add songlist = await self._parse_playlist(url) ..\Red-DiscordBot\cogs\audio.py ", line 588, in _parse_playlist return await self._parse_sc_playlist(url) ..\Red-DiscordBot\cogs\audio.py ", line 607, in _parse_sc_playlist playlist.append(entry.url) AttributeError: 'dict' object has no attribute 'url' Ignoring exception in on_message Traceback (most recent call last): ..\Programs\Python\Python35-32\lib\site-packages\discord\client.py", line 244, in _run_event yield from getattr(self, event)(*args, **kwargs) File "red.py", line 71, in on_message await bot.process_commands(message) ..\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\bot.py", line 611, in process_commands yield from command.invoke(ctx) ..\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 384, in invoke yield from injected(*ctx.args, **ctx.kwargs) ..\Programs\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 47, in wrapped ret = yield from coro(*args, **kwargs) ``` `!song` no longer works for SoudCloud songs. Error, after calling `!song` while SoundCloud song is playing: ``` ..\Red-DiscordBot\cogs\audio.py ", line 1440, in song "**Views:** {}\n\n<{}>".format(song.title, song.creator, AttributeError: 'Song' object has no attribute 'creator' ``` Using latest discord.py and Red
calebj commented 2016-05-23 00:48:01 +02:00 (Migrated from github.com)

The first error is fixed in my PR #276
I fixed the second issue as well.

~~The first error is fixed in my PR #276~~ I fixed the second issue as well.
d0muu commented 2016-06-27 06:06:01 +02:00 (Migrated from github.com)

!play and !song should be resolved with #308

`!play` and `!song` should be resolved with #308
d0muu commented 2016-07-12 01:49:44 +02:00 (Migrated from github.com)

SoundCloud functionality status
!play - Working (Fixed with 308)
!song - Working (Fixed with 308)

Outstanding SC issues:
!playlist add
Discord Error:

Red: Enumerating song list... This could take a few moments.
Red: Error in command 'playlist add' - AttributeError: 'dict' object has no attribute 'url'

Full Error:

ERROR red on_command_error 86: Exception in command 'playlist add'
Traceback (most recent call last):
  File ".\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 48, in wrapped
    ret = yield from coro(*args, **kwargs)
  File ".\RED\Red-DiscordBot\cogs\audio.py", line 1294, in playlist_add
    songlist = await self._parse_playlist(url)
  File ".\RED\Red-DiscordBot\cogs\audio.py", line 673, in _parse_playlist
    return await self._parse_sc_playlist(url)
  File ".\RED\Red-DiscordBot\cogs\audio.py", line 692, in _parse_sc_playlist
    playlist.append(entry.url)
AttributeError: 'dict' object has no attribute 'url'
**SoundCloud** functionality status `!play` <URL> - Working (Fixed with 308) `!song` - Working (Fixed with 308) Outstanding SC issues: `!playlist add` <name> <URL> Discord Error: ``` Red: Enumerating song list... This could take a few moments. Red: Error in command 'playlist add' - AttributeError: 'dict' object has no attribute 'url' ``` Full Error: ``` ERROR red on_command_error 86: Exception in command 'playlist add' Traceback (most recent call last): File ".\Python\Python35-32\lib\site-packages\discord\ext\commands\core.py", line 48, in wrapped ret = yield from coro(*args, **kwargs) File ".\RED\Red-DiscordBot\cogs\audio.py", line 1294, in playlist_add songlist = await self._parse_playlist(url) File ".\RED\Red-DiscordBot\cogs\audio.py", line 673, in _parse_playlist return await self._parse_sc_playlist(url) File ".\RED\Red-DiscordBot\cogs\audio.py", line 692, in _parse_sc_playlist playlist.append(entry.url) AttributeError: 'dict' object has no attribute 'url' ```
Kowlin commented 2016-07-13 14:56:16 +02:00 (Migrated from github.com)

#308 was never intended to make playlists on Soundcloud work.

#308 was never intended to make playlists on Soundcloud work.
d0muu commented 2016-07-14 02:05:30 +02:00 (Migrated from github.com)

My fault, apologies - I'll clarify the previous posts.

My fault, apologies - I'll clarify the previous posts.
tekulvw commented 2017-02-16 14:51:32 +01:00 (Migrated from github.com)

Moving to #623

Moving to #623
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#265
No description provided.