oweno will be creating a mapper for emaudio some time over the next week or so (right after he finishes the port of emaudio from 5.x to 6.x).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alex_b’s picture

Title: Embebded audio field (emaudio) field mapper » Embedded audio field (emaudio) field mapper

Is this still planned? Fixing typo for better searchability.

Alex UA’s picture

Sorry, kind of fell off of the radar with the file sprint and work on the iPhone app. It is definitely planned, and I'll have one of our devs work on it on Monday.

Alex UA’s picture

OK- I guess this was a lot simpler than I expected. Attached is an emaudio mapper. HOWEVER, while this does "work" I think that it is a great example of the shortcomings of the current way that emaudio works (which may have to do more with the ways that the providers handle podcasts). ATM emaudio posts entire podcasts within each node, instead of an individual audio file, meaning that if you post two episodes from the same show you basically get the same media, with only a different starting point to mark the difference.

Anyway, this seems to work for now. I'm going to open an emfield issue to think through how to rework emaudio.

Alex UA’s picture

Status: Active » Needs review
alex_b’s picture

Nice work. This is looking good to me - users of emfield audio: can I get a review from somebody?

Alex UA’s picture

I'll ping moonray and jaochim as they seem to be two of the only users of this (mostly experimental) sub-module.

sjf’s picture

Status: Needs review » Needs work

warning: Missing argument 3 for emaudio_feedapi_mapper() in ***/sites/all/modules/feedapi_mapper/mappers/feedapi_mapper_emaudio.inc on line 14.

I tried replacing $field_name with $field_name = '' (cribbed from the emvideo mapper) and this cleared the error but emaudio was still not available as one of the mapping elements.

webslinger’s picture

Same problem as #7, unfortunately.

alex_b’s picture

Title: Embedded audio field (emaudio) field mapper » Mapper for Embedded audio field (emaudio) field
lyricnz’s picture

Status: Needs work » Needs review
FileSize
2.2 KB

The format of the mapper function has changed. Here's a new version, which is literally just feedapi_mapper_emvideo.inc with "audio" substituted for "video" wherever it occurs. Works for me.

sjf’s picture

Status: Needs review » Reviewed & tested by the community

Would you believe I tried that before my initial post but couldn't get it to work. Your file works perfectly - many thanks.

tandersonmd’s picture

Using this I was able to get the emaudio option to show up in mapper. However, the url is not saved in the cck field on any of the created nodes. I checked with emvideo and this works perfectly. Any help would be appreciated.

alex_b’s picture

Great. Need to review. We should write a test for this mapper.

sjf’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Reviewed & tested by the community » Needs work

The mapper no longer works with 6.x-2.x-dev. I've tried taking the latest feedapi_mapper_emvideo.inc that ships with 2.x and substituting video for audio but all I got was a white screen. Given that I couldn't manage this simple task before, perhaps someone else could try.

alex_b’s picture

#15: there is a slight api change. compare feedapi_mapper.api.php between 1.x and 2.x. Expect one more change before 2.x goes beta #541814: Breaks when enabling multiple processors

sjf’s picture

Status: Needs work » Reviewed & tested by the community

I've taken the latest feedapi_mapper_emvideo.inc that ships with 2.x, substituted video for audio, and this now works again. Many thanks.