feedjira 3.2.2 → 3.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -57,6 +57,16 @@ RSpec.describe Feedjira do
57
57
  expect(feed.entries.size).to eq 3
58
58
  end
59
59
 
60
+ it "parses an itunes feedburner feed" do
61
+ feed = described_class.parse(sample_itunes_feedburner_feed)
62
+ expect(feed.title).to eq "Welcome to Night Vale"
63
+ published = Time.parse_safely "2023-09-22 16:30:15 UTC"
64
+ expect(feed.entries.first.published).to eq published
65
+ expect(feed.entries.size).to eq 3
66
+ url = "https://www.podtrac.com/pts/redirect.mp3/dovetail.prxu.org/_/126/e3dafc45-a202-42d0-a55b-216e733a2d7a/2023_09_17_BTS_Episode_EXCERPT_v2.mp3"
67
+ expect(feed.entries.first.enclosure_url).to eq url
68
+ end
69
+
60
70
  it "with nested dc:identifier it does not overwrite entry_id" do
61
71
  feed = described_class.parse(sample_rss_feed_huffpost_ca)
62
72
  expect(feed.title.strip).to eq "HuffPost Canada - Athena2 - All Posts"
@@ -66,7 +76,7 @@ RSpec.describe Feedjira do
66
76
  end
67
77
 
68
78
  it "does not fail if multiple published dates exist and some are unparseable" do
69
- expect(described_class.logger).to receive(:warn).twice
79
+ expect(described_class.logger).to receive(:debug).twice
70
80
 
71
81
  feed = described_class.parse(sample_invalid_date_format_feed)
72
82
  expect(feed.title).to eq "Invalid date format feed"
@@ -0,0 +1,117 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:media="http://search.yahoo.com/mrss/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:podcast="https://podcastindex.org/namespace/1.0" version="2.0">
3
+ <channel>
4
+ <title>Welcome to Night Vale</title>
5
+ <link>http://welcometonightvale.com</link>
6
+ <pubDate>Fri, 22 Sep 2023 16:30:15 -0000</pubDate>
7
+ <lastBuildDate>Fri, 29 Sep 2023 15:05:26 -0000</lastBuildDate>
8
+ <ttl>60</ttl>
9
+ <language>en</language>
10
+ <copyright>2016, Night Vale Presents</copyright>
11
+ <webMaster>help@prx.org (PRX)</webMaster>
12
+ <description>
13
+ <![CDATA[<p>Twice-monthly community updates for the small desert town of Night Vale...</p>]]>
14
+ </description>
15
+ <managingEditor>info@welcometonightvale.com (info@welcometonightvale.com)</managingEditor>
16
+ <generator>PRX Feeder v1.0.0</generator>
17
+ <docs>http://blogs.law.harvard.edu/tech/rss</docs>
18
+ <image>
19
+ <url>https://f.prxu.org/126/images/bc7d203a-c0dd-46ec-956b-03bad13ba85e/nightvalelogo-web4.jpg</url>
20
+ <title>Welcome to Night Vale</title>
21
+ <link>http://welcometonightvale.com</link>
22
+ <width>1400</width>
23
+ <height>1400</height>
24
+ <description>Twice-monthly community updates for the small desert town of Night Vale, where every conspiracy theory is true.</description>
25
+ </image>
26
+ <atom:link href="https://feeds.feedburner.com/welcometonightvalepodcast" rel="self" type="application/rss+xml"/>
27
+ <itunes:author>Night Vale Presents</itunes:author>
28
+ <itunes:type>episodic</itunes:type>
29
+ <itunes:category text="Fiction">
30
+ <itunes:category text="Science Fiction"/>
31
+ </itunes:category>
32
+ <itunes:image href="https://f.prxu.org/126/images/1f749c5d-c83a-4db9-8112-a3245da49c54/nightvalelogo-web4.jpg"/>
33
+ <itunes:explicit>false</itunes:explicit>
34
+ <itunes:owner>
35
+ <itunes:email>info@welcometonightvale.com</itunes:email>
36
+ <itunes:name>Welcome to Night Vale</itunes:name>
37
+ </itunes:owner>
38
+ <itunes:subtitle>Twice-monthly community updates for the small desert town of Night Vale, where every conspiracy theory is true.</itunes:subtitle>
39
+ <itunes:summary>
40
+ <![CDATA[Twice-monthly community updates for the small desert town of Night Vale...]]>
41
+ </itunes:summary>
42
+ <itunes:keywords>cecil,commonplace,cranor,fink,lovecraft,neofuturists,night,nightvale,nightvaleradio,radio,vale,welcome</itunes:keywords>
43
+ <media:copyright>2016, Night Vale Presents</media:copyright>
44
+ <media:thumbnail url="https://f.prxu.org/126/images/bc7d203a-c0dd-46ec-956b-03bad13ba85e/nightvalelogo-web4.jpg"/>
45
+ <media:keywords>cecil,commonplace,cranor,fink,lovecraft,neofuturists,night,nightvale,nightvaleradio,radio,vale,welcome</media:keywords>
46
+ <media:category scheme="http://www.itunes.com/dtds/podcast-1.0.dtd">Fiction</media:category>
47
+ <item>
48
+ <guid isPermaLink="false">prx_126_e3dafc45-a202-42d0-a55b-216e733a2d7a</guid>
49
+ <title>Patreon Preview: Behind the Scenes (September 2023)</title>
50
+ <pubDate>Fri, 22 Sep 2023 16:30:15 -0000</pubDate>
51
+ <link>https://play.prx.org/listen?ge=prx_126_e3dafc45-a202-42d0-a55b-216e733a2d7a&amp;uf=https%3A%2F%2Ffeeds.feedburner.com%2Fwelcometonightvalepodcast</link>
52
+ <description>
53
+ <![CDATA[<p>An excerpt from our most recent patreon Behind the Scenes episode...</p>]]>
54
+ </description>
55
+ <enclosure url="https://www.podtrac.com/pts/redirect.mp3/dovetail.prxu.org/_/126/e3dafc45-a202-42d0-a55b-216e733a2d7a/2023_09_17_BTS_Episode_EXCERPT_v2.mp3" type="audio/mpeg" length="7133938"/>
56
+ <itunes:subtitle>An excerpt from our most recent patreon Behind the Scenes episode</itunes:subtitle>
57
+ <itunes:episodeType>full</itunes:episodeType>
58
+ <itunes:duration>04:57</itunes:duration>
59
+ <category>
60
+ <![CDATA[adfree]]>
61
+ </category>
62
+ <itunes:author>Night Vale Presents</itunes:author>
63
+ <itunes:summary>
64
+ <![CDATA[An excerpt from our most recent patreon Behind the Scenes episode...]]>
65
+ </itunes:summary>
66
+ <itunes:image href="https://f.prxu.org/126/e3dafc45-a202-42d0-a55b-216e733a2d7a/images/6e990c53-0f6d-4806-8716-18cba0fedc8a/nightvalelogo_web4.jpg"/>
67
+ <media:content fileSize="7133938" type="audio/mpeg" url="https://www.podtrac.com/pts/redirect.mp3/dovetail.prxu.org/_/126/e3dafc45-a202-42d0-a55b-216e733a2d7a/2023_09_17_BTS_Episode_EXCERPT_v2.mp3"/>
68
+ <content:encoded>
69
+ <![CDATA[<p>An excerpt from our most recent patreon Behind the Scenes episode...]]>
70
+ </content:encoded>
71
+ </item>
72
+ <item>
73
+ <guid isPermaLink="false">prx_126_e650b67a-a572-4302-81f4-6223331fa429</guid>
74
+ <title>234 - The Boy</title>
75
+ <pubDate>Fri, 15 Sep 2023 04:00:00 -0000</pubDate>
76
+ <link>https://play.prx.org/listen?ge=prx_126_e650b67a-a572-4302-81f4-6223331fa429&amp;uf=https%3A%2F%2Ffeeds.feedburner.com%2Fwelcometonightvalepodcast</link>
77
+ <description>
78
+ <![CDATA[<p>This morning we found a boy. He has no name, and no one knows who he is...</p>]]>
79
+ </description>
80
+ <enclosure url="https://www.podtrac.com/pts/redirect.mp3/dovetail.prxu.org/_/126/e650b67a-a572-4302-81f4-6223331fa429/nv234_intro.mp3" type="audio/mpeg" length="33024824"/>
81
+ <itunes:subtitle>This morning we found a boy. He has no name, and no one knows who he is.</itunes:subtitle>
82
+ <itunes:episodeType>full</itunes:episodeType>
83
+ <itunes:duration>22:55</itunes:duration>
84
+ <itunes:author>Night Vale Presents</itunes:author>
85
+ <itunes:summary>
86
+ <![CDATA[This morning we found a boy. He has no name, and no one knows who he is...]]>
87
+ </itunes:summary>
88
+ <itunes:image href="https://f.prxu.org/126/e650b67a-a572-4302-81f4-6223331fa429/images/9b91ed0e-9e8c-4e4c-93f1-d4fbe8014ad0/episodes60.jpg"/>
89
+ <media:content fileSize="33024824" type="audio/mpeg" url="https://www.podtrac.com/pts/redirect.mp3/dovetail.prxu.org/_/126/e650b67a-a572-4302-81f4-6223331fa429/nv234_intro.mp3"/>
90
+ <content:encoded>
91
+ <![CDATA[<p>This morning we found a boy. He has no name, and no one knows who he is.</p>]]>
92
+ </content:encoded>
93
+ </item>
94
+ <item>
95
+ <guid isPermaLink="false">prx_126_ee85d62d-87cb-4abc-8f08-b66ccdd2c103</guid>
96
+ <title>233 - Citizen Spotlight: The Vampire of Lombardi Street</title>
97
+ <pubDate>Fri, 01 Sep 2023 04:00:00 -0000</pubDate>
98
+ <link>https://play.prx.org/listen?ge=prx_126_ee85d62d-87cb-4abc-8f08-b66ccdd2c103&amp;uf=https%3A%2F%2Ffeeds.feedburner.com%2Fwelcometonightvalepodcast</link>
99
+ <description>
100
+ <![CDATA[<p>Luca Albescu lives at 831 Lombardi Street, in a dilapidated Victorian mansion at the top of the hill.</p>]]>
101
+ </description>
102
+ <enclosure url="https://www.podtrac.com/pts/redirect.mp3/dovetail.prxu.org/_/126/ee85d62d-87cb-4abc-8f08-b66ccdd2c103/nv233_intro.mp3" type="audio/mpeg" length="41761016"/>
103
+ <itunes:subtitle>Luca Albescu lives at 831 Lombardi Street, in a dilapidated Victorian mansion at the top of the hill.</itunes:subtitle>
104
+ <itunes:episodeType>full</itunes:episodeType>
105
+ <itunes:duration>28:59</itunes:duration>
106
+ <itunes:author>Night Vale Presents</itunes:author>
107
+ <itunes:summary>
108
+ <![CDATA[Luca Albescu lives at 831 Lombardi Street, in a dilapidated Victorian mansion at the top of the hill.]]>
109
+ </itunes:summary>
110
+ <itunes:image href="https://f.prxu.org/126/ee85d62d-87cb-4abc-8f08-b66ccdd2c103/images/ad5453f1-3ccc-4384-be03-9a4a7558370b/episodes58.jpg"/>
111
+ <media:content fileSize="41761016" type="audio/mpeg" url="https://www.podtrac.com/pts/redirect.mp3/dovetail.prxu.org/_/126/ee85d62d-87cb-4abc-8f08-b66ccdd2c103/nv233_intro.mp3"/>
112
+ <content:encoded>
113
+ <![CDATA[<p>Luca Albescu lives at 831 Lombardi Street, in a dilapidated Victorian mansion at the top of the hill.</p>]]>
114
+ </content:encoded>
115
+ </item>
116
+ </channel>
117
+ </rss>
@@ -6,6 +6,8 @@
6
6
  "feed_url": "http://inessential.com/feed.json",
7
7
  "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL — http://inessential.com/feed.json — and add it your reader.",
8
8
  "favicon": "http://inessential.com/favicon.ico",
9
+ "icon": "http://inessential.com/icon.png",
10
+ "language": "en-US",
9
11
  "author": {
10
12
  "name": "Brent Simmons",
11
13
  "url": "http://inessential.com/",