Skip to content

Wrong return of Track.get_urls() #298

@exislow

Description

@exislow

So this method https://github.com/tamland/python-tidal/blob/910a7b4b84b313259d3388b19e44818b0c4a414b/tidalapi/media.py#L594-L598

Clearly states, that it returns [str].

But within the else statement we find this code piece return self.urls[0] which only returns a str.

I propose, to match the name get_urls() and the return type [str], that the method should look like this:

    def get_urls(self) -> [str]:
        return self.urls

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