[ruby-cvs:67548] kou:r60367 (trunk): rss itunes: fix a bug that <itunes:explicit> value isn't fully supported

kou at ruby-lang.org kou at ruby-lang.org
Mon Oct 23 01:03:57 JST 2017


kou	2017-10-23 01:03:57 +0900 (Mon, 23 Oct 2017)

  New Revision: 60367

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60367

  Log:
    rss itunes: fix a bug that <itunes:explicit> value isn't fully supported
    
    Fix GH-1725
    
    <itunes:explicit> accepts "explicit", "yes", "true", "clean", "no" and
    "false" as valid values.
    
    Here is the <itunes:explicit>'s description in
    https://help.apple.com/itc/podcasts_connect/#/itcb54353390:
    
    > The <itunes:explicit> tag indicates whether your podcast contains
    > explicit material. You can specify the following values:
    >
    >   * Yes | Explicit | True. If you specify yes, explicit, or true,
    >     indicating the presence of explicit content, the iTunes Store
    >     displays an Explicit parental advisory graphic for your podcast.
    >
    >   * Clean | No | False. If you specify clean, no, or false, indicating
    >     that none of your podcast episodes contain explicit language or
    >     adult content, the iTunes Store displays a Clean parental
    >     advisory graphic for your podcast.
    
    I don't know whether <itunes:explicit> value is case sensitive or
    insensitive. But the current implementation is case insensitive.
    
    Reported by Valerie Woolard Srinivasan. Thanks!!!

  Modified files:
    trunk/lib/rss/itunes.rb
    trunk/lib/rss/maker/itunes.rb
    trunk/lib/rss/rss.rb
    trunk/lib/rss/utils.rb
    trunk/test/rss/test_itunes.rb
    trunk/test/rss/test_maker_itunes.rb


More information about the ruby-cvs mailing list