Skip to content

get_queue assumes the presence of attributes on queue items. #74

@c-nixon

Description

@c-nixon

get_queue in core.py often fails with an Attribute error when a track from soundcloud is on the playlist.

Replacing

track.creator,
track.title,
track.album,

with

getattr(track, "creator", ""),
getattr(track, "title", ""),
getattr(track, "album", ""),

on lines 436:438

fixes the problem, but this is a bit messy.

I'm happy to put in a PR for this, but would like suggestions as what people think is the best to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions