Skip to content

Oembed fails on Soundcloud #65

Open
@markfinger

Description

@markfinger

Given a url https://soundcloud.com/vvv/faded-inscription-feat-bvitae, the following error is raised: ValueError: invalid literal for int() with base 10: '100%'.

The underlying issue seems to be that soundcloud's oembed implementation[0] differs from the spec[1], and they return a string which cannot be coerced to an int.

They return 100% for the width field, unfortunately the respective field on the fluent-contents model is an IntegerField and the coercing fails.

[0] https://developers.soundcloud.com/docs/oembed#introduction
[1] http://oembed.com/#section2 2.3.4.4. The rich type

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions