Gosh, it'd sure be nice to have a d7 version of this module. :-D

I've got a brand spankin' new video podcast and no feed for it. :-p

Comments

johnalbin’s picture

johnalbin’s picture

Version: 6.x-2.x-dev » 6.x-1.x-dev
Status: Active » Needs work
StatusFileSize
new5.36 KB

Superficial port.

direcs’s picture

StatusFileSize
new10.4 KB

Patch 1124742-2-d7-port.patch works fine (only installation tested). BUT before being able to install it under D7 (7.4 tested), I had to update the ffpc.info
from

version = "6.x-1.x-dev"
core = "6.x"

to

version = "7.x-1.x-dev"
core = "7.x"

Than I was able to install and activate the module (patched getID3 already installed!).

Find attached the updated D7-module. Hope this helps. :-)
Again, I did not test if the module proper works, only the installation! The latter has to be tested...


PS.: For those who do not know, how to apply a patch:
Unzip the original module,
open a terminal window,
change into the unzipped folder
execute "patch <1124742-2-d7-port.patch" (for the patch above)
leave the directory
zip it again
upload the zipped file and install it and activate it as usual under Drupal

Or just use the attached zip-file attached to this posting... :-)

direcs’s picture

Category: task » bug
Priority: Normal » Major

Bad news guys.

Installation was fine. But when creating a view like described here (but with D7) http://mustardseedmedia.com/podcast/episode19
I can not choose the Style (Format) "Podcast Feed". It is displayed in the popup window and can be marked, but when clicking on "Update" it will not be updated in the resulting view. The view still shows the old Style/Format "RSS Feed".

Any help much appreciated, since I do not have any idea how to publish my upcoming podcast to iTunes with D7!
Thanks a lot.

Markus

vm’s picture

the views portion of the module likely needs to be updated to work with views 3. Thus the mustardseedmedia tutorial won't work exactly as shown if anything as shown. This assumption is based on the project page stating that it works/ed with views2. My guess it wasn't updated to use views 3 in D6 because views 3 never came out of alpha/beta.

Poieo’s picture

Subscribing.

BeaPower’s picture

sub

kruser’s picture

subscribe

JamesSharpe’s picture

Status: Needs work » Needs review
StatusFileSize
new9.53 KB

Find attached a working drupal 7 version of the module.
The only issue is setting the http headers correctly; I can't set it to rss if we want to be able to have the live preview in the views edit page..

steven jones’s picture

I've created a sandbox for this over here:

http://drupal.org/sandbox/darthsteven/1268648

If you want write access, let me know and I'll add you.

steven jones’s picture

Category: bug » task
Status: Needs review » Needs work

So it seems that the getid3 module is going to try to provide all the information from files onto the file entity for us, see: #780848: Merge getID3 with FileField Meta in Drupal 7. I think that this means that this module can drop the dependency, and just become a very simple itunes podcast generator for views.

The direction I'm going to take my sandbox is having a views plugin that allows you to choose which views field should be used as the enclosure, the title, the duration, the artist etc. Then when the above issue is solved, if you install that module you can add the duration field from the normal list of view fields.

Poieo’s picture

+1 for the direction you're taking Steven. The iTunes module had some limited mapping ability, but full control of what fields map to what tags will be great.

I have one request, can we make a date field map to the release date? Previous versions of iTunes module and FFPC used the authoring date, I believe, which made it much more difficult to control.

Look forward to testing.

steven jones’s picture

I've made some progress on this, it's still a little rough around the edges, but it does create valid podcast feeds now at least.

It needs a little more tidying up and some validation here and there, and then it should be good to test properly!

steven jones’s picture

Status: Needs work » Needs review

Right, so for people who are brave you should be able to test the sandbox version if you want. It's a little bit of a departure from the way it used to work, so instead of just adding a file field and some magic happening to build the feed, you can add normal views fields for all the fields you want and then match them up to the podcast fields in the row settings field.

It needs documentation.

There is no upgrade path either.

It also doesn't do any id3 integration as I've stated before, but when that data is exposed to views, then you just add a views field and select that as the source for 'Artist' for example.

steven jones’s picture

@Poieo you can use any date field from views that's either a date module field, or a views date field, like the node created/updated time.

Poieo’s picture

@Steven Jones - Can you post a direct link to your version for testing? For those of us who are not developers, but willing to test, it would be helpful.

steven jones’s picture

Hmm...if you don't have git there's not much I can do on Drupal.org, I'll have a look at mirroring on github so I can make use of their packaging stuff.

steven jones’s picture

Try this download link if don't want to use git:
https://github.com/darthsteven/ffpc/zipball/7.x-2.x-alpha1

Poieo’s picture

Setup your module on a D7 site and it appears to be working quite well, thanks!

The only issue I have so far is that it doesn't seem to be encoding special characters correctly. For example, I have a podcast episode with the title "I'm All In!". However, itunes is displaying the title as "I'm All In!". I have another apostrophe in another title that's doing the same thing.

steven jones’s picture

Can you write "I'm All In!" in code tags please, because there's no difference in the two you posted.

Poieo’s picture

Sorry...

I&#039;m All In!

Also noticed there is no method to choose the category(s) of the podcast.

Poieo’s picture

@Steven Jones - Module is working great so far. As I mentioned earlier, it would be great if you could add category options at the feed level. Additionally, iTunes accepts artwork at the feed and episode level. The ability to map an image field to the episode graphic (row level) would be great. According to iTunes, they recommend including episode artwork in the <itunes:image> tag (episode level) as well as embedded in the mp3 itself.

Thanks again!

jerdavis’s picture

How's this coming along? I'm looking at the sandbox project now and it's looking good - what do you consider rough or where could you use some help? And how about that image handling or row-level mapping?

Thanks!

Jeremiah

designerbrent’s picture

would love to see this updated...

steven jones’s picture

I've added category support to the sandbox version.

oriol_e9g’s picture

I'm testing this module, if someone wants to download the module with git use this commands (I put this to save time for the potential testers):

git clone http://git.drupal.org/sandbox/darthsteven/1268648.git filefield_podcaster
git checkout -b experimental remotes/origin/7.x-1.x
oriol_e9g’s picture

StatusFileSize
new1.79 KB

I have tested the module with Views 7.x-3.0 and works fine but, when I create the first podcast appear this error:

Notice: Undefined index: itunes-keywords a ffpc_plugin_style_podcast->options_form() (línia 98 de ...\sites\all\modules\filefield_podcaster\ffpc_plugin_style_podcast.inc).
Notice: Undefined index: itunes-keywords a ffpc_plugin_style_podcast->options_form() (línia 98 de ...\sites\all\modules\filefield_podcaster\ffpc_plugin_style_podcast.inc).
Notice: Undefined index: itunes-keywords a ffpc_plugin_style_podcast->options_form() (línia 98 de ...\sites\all\modules\filefield_podcaster\ffpc_plugin_style_podcast.inc).
Notice: Undefined index: itunes-keywords a ffpc_plugin_style_podcast->options_form() (línia 98 de ...\sites\all\modules\filefield_podcaster\ffpc_plugin_style_podcast.inc).

Then, when I save the "admin/structure/views/nojs/display/podcasting/feed/style_options" options the notice disappear. The problem is for $options['itunes-keywords'] that don't have a default value.

With the attached patch I have fixed the notices and some spaces.

oriol_e9g’s picture

StatusFileSize
new2.09 KB

Plus, added version in info file. I think that this is RTBC and the module can be released in a alpha or beta version.

bjlewis2’s picture

Thanks everyone!
I'll be testing this soon, and will report back any issues.

(I agree that it would be nice to have an alpha/beta release to post updates and issues to) :)

bjlewis2’s picture

Well, I wasn't able to download this to test it. Here's what I get in terminal:

Brians-MacBook-Air:Sites Brian$ git clone http://git.drupal.org/sandbox/darthsteven/1268648.git filefield_podcaster
Cloning into filefield_podcaster...
remote: Counting objects: 167, done.
remote: Compressing objects: 100% (166/166), done.
remote: Total 167 (delta 97), reused 0 (delta 0)
Receiving objects: 100% (167/167), 37.42 KiB, done.
Resolving deltas: 100% (97/97), done.
warning: remote HEAD refers to nonexistent ref, unable to checkout.

It just creates an empty folder.
I downloaded the version from #18, but neither of the patches applied to that. Any ideas?

I just found #1074584: warning: remote HEAD refers to nonexistent ref, unable to checkout. which looks like a similar issue. Maybe a similar fix is possible?

steven jones’s picture

This is a d.o issue with git, just use the command line from the Version control tab, i.e.

git clone --branch 7.x-1.x darthsteven@git.drupal.org:sandbox/darthsteven/1268648.git filefield_podcaster___d7_port
bjlewis2’s picture

Thank you! Got it, and it seems to work just fine in the 10 minutes I've been playing with it.

Any way to use external files? (ie. mp3s hosted on libsyn.com) or is it not possible to use a direct link to an externally hosted mp3?

steven jones’s picture

@oriol_e9g Thanks for the patches, I've added the one from #27 to the sandbox, but not the one from #28 as I'm fairly sure that you aren't supposed to commit version information, unless that's changed recently?

bjlewis2’s picture

Status: Needs review » Reviewed & tested by the community

This module is working great! I'm not a coder, but from an end user's perspective, it's flawless.
I'm marking as RTBC because IMHO it's ready for at least a beta release, if not a full 1.0.

If I'm doing so prematurely, please change it back, but also leave some info on how we can help!

bjlewis2’s picture

Deleted... Somehow double posted.

kruser’s picture

There is a problem with podcast titles containing special characters, like quotes and apostrophes.
In the Feed and on itunes the title displays like this:

<title>&amp;quot;God&amp;#039;s Certain Compassion&amp;quot; Isaiah 40:1-11 and Mark 1:1-8</title>

but should be like this:

<title>"God's Certain Compassion" Isaiah 40:1-11 and Mark 1:1-8</title>

Is there an easy way to fix that?

DeNelo’s picture

StatusFileSize
new31.51 KB

Seems to work nicely. However, I can't choose a field for Publication Date Field in the row style selection. See screenshot. I want to choose the date on which the sermon was delivered rather than the upload date. I have a field for that in the content type, and it is included by the view. The field can be selected for the iTunes Order field, so I don't know why I can use it as pubDate as well.
Furthermore, I'm not sure how to format the date correctly in US format. The field is formatted using date('r') as it should, but it does not say "Sun" for Sunday, but "søn" which is the Danish abbreviation. Not sure iTunes knows how to interpret that!
Any help appreciated.

steven jones’s picture

@DeNelo as it stands the dates need to be actual date fields, rather than integer or text or some other type of field, it should format the dates correctly for you then.

DeNelo’s picture

But it is a Date field from the Date module (7.x-2.0-rc1).
From the field list:
field_date Date (module: Date) Dato
Which is why I don't really understand it...

nitrospectide’s picture

I have been following this thread for a while. Why isn't this at least listed on the project page releases as a dev release? I also notice that neither of the listed maintainers have commented on this thread. Are they still the active maintainers?

robin monks’s picture

I'm all for adding another maintain if the original maintainers have moved on; and someone else is willing to step up to maintain it.

Fr0s7’s picture

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

Repository from #31 is no longer pubic. oriol_e9g, can you please give us access to this repository, or post a tarball of your module?

steven jones’s picture

@Fr0s7 nu uh: It's public here: http://drupal.org/sandbox/darthsteven/1268648

Fr0s7’s picture

Thanks, Steven!

Maintainers, can we get this committed as the 7.x-1.x-dev branch?

ericduran’s picture

Status: Needs review » Reviewed & tested by the community

I'm going to go ahead and mark this RTBC even though it doesn't have a patch on the queue.

I'm running Steven Jones sandbox and haven't run into any issues yet.

+1 Steven Jones sandbox

drewhutchinson’s picture

Steven, Like to test this as well but I'm only getting a txt file that reads "Real code is not kept on the master branch, see one of the other versioned branches instead" Not seeing the other branches. Thanks in advance........Drew

steven jones’s picture

@drewhutchinson Either run:

git checkout 7.x-1.x

In your clone of the sandbox, or run this to get the clone with the correct branch already checked out:

git clone --branch 7.x-1.x darthsteven@git.drupal.org:sandbox/darthsteven/1268648.git filefield_podcaster___d7_port

As per: http://drupal.org/project/1268648/git-instructions

bjlewis2’s picture

@Steven Jones: Any word from mfer or suydam about why this isn't on the FFPC project page? I've been using it for a couple of months now for the Modules Unraveled Podcast, and it's been flawless as far as I can tell.

I'm anxiously awaiting its "official" debut!

timofey’s picture

Can someone please publish this to FFPC?

hongpong’s picture

Title: Port to Drupal 7 » FFPC Port to Drupal 7

+1 lets RTBC at least for dev branch everyone!! Can't wait to try this, FFPC is a fine fine module.

tars16’s picture

StatusFileSize
new656 bytes

According to http://validator.w3.org/feed/ the itunes:image tag should have an href attribute. Attached is a patch against Steven's sandbox to convert this:

<itunes:image>http://www.example.org/podcast/logo.png</itunes:image>

to

<itunes:image href="http://www.example.org/podcast/logo.png" />
timofey’s picture

StatusFileSize
new8.09 KB

I've included the latest d7 module, with #51 patch applied.

-- Drupal 7 FileFfield Podcaster install instructions --
1) Install & enable the module
2) Go to /admin/structure/views/add to create a view. Enter "View name" and Uncheck "Create a page". Click to "Continue & edit".
3) Once on the view edit page, click "+ Add" -> "Feed". This will change your view into a Feed.
4) Change "RSS Feed", under FORMAT, to "Podcast Feed".
5) You may wish to add the necessary fields and change "Content", under FORMAT, to "Podcast Episode".

NOTE: rename the attached module to *.tar.gz

steven jones’s picture

I've opened this issue to try and get commit access: #1560238: Offering to maintain FileField Podcaster

hongpong’s picture

Thanks, Steven Jones, timofey & all. I am trying to set up the Enclosure field which in our case needs to be a URL field / MP3 source path, not a filefield (I think filefields are what it wants?). Is it currently possible to use this type of field for Enclosure? If i can get this working I will try to pass along the code. [EDIT: ok it's called Filefield Podcaster right lol? That would sort of imply using filefields... anyhow going to try to get it working]

hongpong’s picture

With some excellent quick work from the maintainer, we were able to get the 7.x Views RSS module patched to successfully handle non-filefield references to media files. This lets text or link fields provide the address and return with correct enclosure tag, length and content-type attributes. Something similar could be implemented in FFPC I think. Here's the commit:
http://drupalcode.org/project/views_rss.git/commit/69321d0

mfer’s picture

Status: Reviewed & tested by the community » Needs work

This code needs work. Since February there has been a 7.x-1.x branch in git on d.o and on the releases page there was a download of the snapshot. I just promoted that to the project page. The work on a Drupal 7 version should be based on that. The code in #52 has some issues that need to be resolved such as:

  • Views API version 2 (we are now on to version 3)
  • Could rely on the Views 3 RSS work

There are some good elements (like the extra properties for on the podcast feed itself). Can we get these in a patch to the existing work or on a branch from a different repo I can take a look at and maybe merge in? I like where this could go.

nigelw’s picture

Is it necessary to address the views integration, if there is already the Views RSS: iTunes Elements module that builds on Views RSS module?

mfer’s picture

@nigelwaters It might not be. Some things for some situations are not supported last I checked. I would be interested in hearing about using that module and FFPC (the current d7 version) together.

drupalninja99’s picture

Seems to work for me!

direcs’s picture

Works quite fine.

But: I am not a Drupal-Module-Expert, but I think here are some copy-paste-typos in the code in ffpc_plugin_row_podcast.inc from line 95 (marked bold):

$options['itunes_duration_field'] = array(
'default' => '',
'ffpc' => array(
'xml_element' => 'itunes:duration',
'title' => t('iTunes duration field'),
'description' => t('The content of this tag is shown in the Time column in iTunes. The tag can be formatted HH:MM:SS, H:MM:SS, MM:SS, or M:SS (H = hours, M = minutes, S = seconds). If an integer is provided (no colon present), the value is assumed to be in seconds. If one colon is present, the number to the left is assumed to be minutes, and the number to the right is assumed to be seconds. If more than two colons are present, the numbers furthest to the right are ignored.'),
),
);
$options['itunes_explicit_field'] = array(
'default' => '',
'ffpc' => array(
'xml_element' => 'itunes:explicit',
'title' => t('iTunes duration field'),
'description' => t('This tag should be used to indicate whether or not your podcast contains explicit material. The three values for this tag are "yes", "no", and "clean".'),
),
);
$options['itunes_explicit_field'] = array(
'default' => '',
'ffpc' => array(
'xml_element' => 'itunes:isClosedCaptioned',
'title' => t('iTunes Closed Captioned field'),
'description' => t('This tag should be used if your episode includes a video with embedded closed captioning support. The two values for this tag are "yes" and "no".'),
),

Chris Charlton’s picture

Issue summary: View changes

Dead? Not dead?

direcs’s picture

Seems dead.

Meanwhile I moved to Wordpress with the perfect and excellent Podcaster module Podlove Podcast Publisher.

Never regretted that one second!!

direcs’s picture

Status: Needs work » Closed (won't fix)
tripper54’s picture

Status: Closed (won't fix) » Active

Hi @direcs,

It's great you found a solution that works for you, so did I via views and some custom templating.

Although this module seems like it's abandoned, it's really up to the module maintainers to mark this as 'won't fix'.

tripper54’s picture

Status: Active » Needs work
Poieo’s picture

Chris Charlton’s picture

@Poieo, you are correct on the current Views addons that help get an RSS feed but there's a little bit more that FFPC included. Those features would need to be ironed out by additional bits to the recipe. It doesn't seem like much at this point.

Plus, let's not forget there's some code up top and a 7.x-dev branch that hasn't gotten commented on for a long time, so this conversation helps even if it starts the final nail in the coffin on this module for 7.x (or not).