The 'episode' and 'season' fields are supposed to be an integer, not CDATA

Created on 12 September 2023, 10 months ago
Updated 16 September 2023, 10 months ago

Problem/Motivation

I added an episode number field to my podcast_episode node type, and tried to add it to an existing feed view. No matter how much I tried to strip any possible HTML in Views, the resulting tag in my feed appeared as:

<itunes:episode><![CDATA[7]]></itunes:episode>

According to https://help.apple.com/itc/podcasts_connect/#/itcb54353390

An episode number.
...
Where episode is a non-zero integer (1, 2, 3, etc.) representing your episode number.

This field should always be output as an integer, not HTML wrapped in CDATA tags. The same is true of <itunes:season>

Steps to reproduce

  1. Create a node type with a serial β†’ or integer field for episode number.
  2. Create a podcast view.
  3. Add 'field_episode_number' to your feed.
  4. Save the View.
  5. Fetch the feed's XML output.
  6. Search for <itunes:episode>

Proposed resolution

Remove the CDATA special casing for these two fields.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States dww

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024