Soundcloud provide media title with metadata which can be used in field mapping.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

dotpex created an issue. See original summary.

dotpex’s picture

Status: Active » Needs review
StatusFileSize
new978 bytes

Here is a patch

Status: Needs review » Needs work

The last submitted patch, 2: title_attribute-3134410-1.patch, failed testing. View results

damienmckenna’s picture

Title: Missing soundcloud title attribute » Additional Soundcloud attributes
Version: 8.x-2.0 » 8.x-2.x-dev
Category: Bug report » Feature request
Priority: Minor » Normal
Status: Needs work » Needs review
StatusFileSize
new2.68 KB
new2.66 KB

Let's expand this to cover all of the values available from Soundcloud's oembed response.

This patch adds 'version', 'type', 'provider_name', 'provider_url', 'height', 'width', 'description', 'author_name', 'author_url', along with 'title' added above.

damienmckenna’s picture

:facepalm:

This should work.

Status: Needs review » Needs work

The last submitted patch, 5: media_entity_soundcloud-n3134410-5.patch, failed testing. View results

damienmckenna’s picture

Status: Needs work » Needs review

This test failure has nothing to do with the change, I suspect the branch tests are failing too.

The failure happens because after saving the media the visitor is taken to the media entity edit page, not the media entity view page.

damienmckenna’s picture

I opened a separate issue for the test failure: #3162442: Fix tests on 8.x-2.x branch

jcisio’s picture

Version: 8.x-2.x-dev » 3.x-dev
mrogers’s picture

Is this patch working for anyone in v3? It seems to apply properly and the additional attribute options appear in the media entity edit screen, but when creating media the 'name' field is populated with 'Compound of source type' regardless of which option I set (I'm trying to use 'Title').

Edit: Actually, the additional attributes work correctly when adding media via the 'Content > Media > Add Media' method, but not when using the Media Library widget from within a content editing context.

rajeshreeputra’s picture

Status: Needs review » Needs work
mrogers’s picture

StatusFileSize
new2.68 KB

#5 rerolled for 3.1.1

rajeshreeputra’s picture

Status: Needs work » Needs review
rajeshreeputra’s picture

Can we add test coverage for the same.

  • rajeshreeputra committed 60dd083a on 3.x
    Issue #3134410 by rajeshreeputra, damienmckenna, dotpex, mrogers:...
rajeshreeputra’s picture

Status: Needs review » Fixed

Merged!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.