Add CodeNewbie podcast to seeds (#6527)
This commit is contained in:
parent
1f81d1f225
commit
d73d0c34ab
1 changed files with 15 additions and 15 deletions
30
db/seeds.rb
30
db/seeds.rb
|
|
@ -139,6 +139,19 @@ Rails.logger.info "6. Creating Podcasts"
|
|||
image_file = Rails.root.join("spec/support/fixtures/images/image1.jpeg")
|
||||
|
||||
podcast_objects = [
|
||||
{
|
||||
title: "CodeNewbie",
|
||||
description: "",
|
||||
feed_url: "http://feeds.codenewbie.org/cnpodcast.xml",
|
||||
itunes_url: "https://itunes.apple.com/us/podcast/codenewbie/id919219256",
|
||||
slug: "codenewbie",
|
||||
twitter_username: "CodeNewbies",
|
||||
website_url: "https://www.codenewbie.org/podcast",
|
||||
main_color_hex: "2faa4a",
|
||||
overcast_url: "https://overcast.fm/itunes919219256/codenewbie",
|
||||
android_url: "https://subscribeonandroid.com/feeds.podtrac.com/q8s8ba9YtM6r",
|
||||
image: Rack::Test::UploadedFile.new(image_file, "image/jpeg")
|
||||
},
|
||||
{
|
||||
title: "CodingBlocks",
|
||||
description: "",
|
||||
|
|
@ -147,7 +160,7 @@ podcast_objects = [
|
|||
twitter_username: "CodingBlocks",
|
||||
website_url: "http://codingblocks.net",
|
||||
main_color_hex: "111111",
|
||||
overcast_url: "https://overcast.fm/itunes769189585/coding-blocks-software-and-web-programming-security-best-practices-microsoft-net",
|
||||
overcast_url: "https://overcast.fm/itunes769189585/coding-blocks",
|
||||
android_url: "http://subscribeonandroid.com/feeds.podtrac.com/c8yBGHRafqhz",
|
||||
image: Rack::Test::UploadedFile.new(image_file, "image/jpeg")
|
||||
},
|
||||
|
|
@ -159,7 +172,7 @@ podcast_objects = [
|
|||
twitter_username: "TalkPython",
|
||||
website_url: "https://talkpython.fm",
|
||||
main_color_hex: "181a1c",
|
||||
overcast_url: "https://overcast.fm/itunes979020229/talk-python-to-me-python-conversations-for-passionate-developers",
|
||||
overcast_url: "https://overcast.fm/itunes979020229/talk-python-to-me",
|
||||
android_url: "https://subscribeonandroid.com/talkpython.fm/episodes/rss",
|
||||
image: Rack::Test::UploadedFile.new(image_file, "image/jpeg")
|
||||
},
|
||||
|
|
@ -176,19 +189,6 @@ podcast_objects = [
|
|||
android_url: "http://subscribeonandroid.com/developeronfire.com/rss.xml",
|
||||
image: Rack::Test::UploadedFile.new(image_file, "image/jpeg")
|
||||
},
|
||||
{
|
||||
title: "Building Programmers",
|
||||
description: "",
|
||||
feed_url: "https://building.fireside.fm/rss",
|
||||
itunes_url: "https://itunes.apple.com/us/podcast/building-programmers/id1149043456",
|
||||
slug: "buildingprogrammers",
|
||||
twitter_username: "run_kmc",
|
||||
website_url: "https://building.fireside.fm",
|
||||
main_color_hex: "140837",
|
||||
overcast_url: "https://overcast.fm/itunes1149043456/building-programmers",
|
||||
android_url: "https://subscribeonandroid.com/building.fireside.fm/rss",
|
||||
image: Rack::Test::UploadedFile.new(image_file, "image/jpeg")
|
||||
},
|
||||
]
|
||||
|
||||
podcast_objects.each do |attributes|
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue