podcast_feed.ex 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. defmodule PodcastFeed do
  2. @moduledoc """
  3. PodcastFeed keeps the contexts that define your domain
  4. and business logic.
  5. Contexts are also responsible for managing your data, regardless
  6. if it comes from the database, an external API or others.
  7. """
  8. alias PodcastFeed.Provider.Archive
  9. def archive(identifier) do
  10. Archive.Parser.by_identifier(identifier)
  11. end
  12. end
  13. # <item>
  14. # <title>Episode Name 2</title>
  15. # <link>
  16. # http://podcast.example.com/episode2.mp4
  17. # </link>
  18. # <pubDate>Sat, 02 Jan 2016 16:00:00 PDT</pubDate>
  19. # <description>
  20. # The full length episode 2 description
  21. # </description>
  22. # <enclosure url="http://podcasts.example.com/episode.mp4" length="36715125" type="audio/mpeg"/>
  23. # <guid>
  24. # http://podcast.example.com/episode2.mp4
  25. # </guid>
  26. # <itunes:duration>19:07</itunes:duration>
  27. # <itunes:summary>
  28. # The full length episode 2 description
  29. # </itunes:summary>
  30. # <itunes:image href="http://www.example.com/image3000x3000.png"/>
  31. # <itunes:keywords>
  32. # comma,separated,key,words
  33. # </itunes:keywords>
  34. # <itunes:explicit>no</itunes:explicit>
  35. # </item>
  36. # <?xml version="1.0" encoding="utf-8"?>
  37. # <rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:itunesu="http://www.itunesu.com/feed" version="2.0">
  38. # <channel>
  39. # <link>http://www.YourSite.com</link>
  40. # <language>en-us</language>
  41. # <copyright>&#xA9;2013</copyright>
  42. # <webMaster>your@email.com (Your Name)</webMaster>
  43. # <managingEditor>your@email.com (Your Name)</managingEditor>
  44. # <image>
  45. # <url>http://www.YourSite.com/ImageSize300X300.jpg</url>
  46. # <title>Title or description of your logo</title>
  47. # <link>http://www.YourSite.com</link>
  48. # </image>
  49. # <itunes:owner>
  50. # <itunes:name>Your Name</itunes:name>
  51. # <itunes:email>your@email.com</itunes:email>
  52. # </itunes:owner>
  53. # <itunes:category text="Education">
  54. # <itunes:category text="Higher Education" />
  55. # </itunes:category>
  56. # <itunes:keywords>separate, by, comma, and, space</itunes:keywords>
  57. # <itunes:explicit>no</itunes:explicit>
  58. # <itunes:image href="http://www.YourSite.com/ImageSize300X300.jpg" />
  59. # <atom:link href="http://www.YourSite.com/feed.xml" rel="self" type="application/rss+xml" />
  60. # <pubDate>Sun, 01 Jan 2012 00:00:00 EST</pubDate>
  61. # <title>Verbose title of the podcast</title>
  62. # <itunes:author>College, school, or department owning the podcast</itunes:author>
  63. # <description>Verbose description of the podcast.</description>
  64. # <itunes:summary>Duplicate of above verbose description.</itunes:summary>
  65. # <itunes:subtitle>Short description of the podcast - 255 character max.</itunes:subtitle>
  66. # <lastBuildDate>Thu, 02 Feb 2012 00:00:00 EST</lastBuildDate>
  67. # <item>
  68. # <title>Verbose title of the episode</title>
  69. # <description>Verbose description of the episode.</description>
  70. # <itunes:summary>Duplicate of above verbose description.</itunes:summary>
  71. # <itunes:subtitle>Short description of the episode - 255 character max.</itunes:subtitle>
  72. # <itunesu:category itunesu:code="112" />
  73. # <enclosure url="http://www.YourSite.com/FILE.EXT" type="audio/mpeg" length="1" />
  74. # <guid>http://www.YourSite.com/FILE.EXT</guid>
  75. # <itunes:duration>H:MM:SS</itunes:duration>
  76. # <pubDate>Thu, 02 Feb 2012 00:00:00 EST</pubDate>
  77. # </item>
  78. # </channel>
  79. # </rss>