Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/feedvalidator/itunes.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ def do_itunes_author(self):
def do_itunes_block(self):
return yesnoclean(), noduplicates()

def do_itunes_complete(self):
return yesnoclean(), noduplicates()

def do_itunes_explicit(self):
return truefalse(), noduplicates()

Expand Down
24 changes: 24 additions & 0 deletions testcases/ext/itunes/invalid_complete_value.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Author: Sam Ruby <rubys@intertwingly.net>
-->

<!--
Description: Invalid Complete Value
Expect: InvalidYesNoClean{element:itunes:complete}
-->

<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
<channel>
<title>All About Everything</title>
<link> http://www.itunes.com/podcasts/everything/index.html</link>
<description>All About Everything is a show about everything. Each week we dive into every subject known to man and talk about everything as much as we can.</description>

<item>
<title>Shake Shake Shake Your Spices</title>
<description>This week we talk about salt and pepper shakers, comparing and contrasting pour rates, construction materials, and overall aesthetics.</description>
<enclosure url="http://www.itunes.com/podcasts/everything/AllAboutEverythingEpisode3.mp3" length="8727310" type="x-audio/mp3" />
<itunes:complete>Absolutely</itunes:complete>
</item>
</channel>
</rss>