Improved the podcasts seeds (#6565)

This commit is contained in:
Anna Buianova 2020-03-10 21:23:48 +03:00 committed by GitHub
parent 923afed4e4
commit e9f0891577
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 5 deletions

3
.gitignore vendored
View file

@ -67,6 +67,9 @@ docs/.static/api/
# rvm
.ruby-gemset
# rbenv
.rbenv-vars
# asdf
.tool-versions

View file

@ -150,7 +150,8 @@ podcast_objects = [
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")
image: Rack::Test::UploadedFile.new(image_file, "image/jpeg"),
published: true
},
{
title: "CodingBlocks",
@ -162,7 +163,8 @@ podcast_objects = [
main_color_hex: "111111",
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")
image: Rack::Test::UploadedFile.new(image_file, "image/jpeg"),
published: true
},
{
title: "Talk Python",
@ -174,7 +176,8 @@ podcast_objects = [
main_color_hex: "181a1c",
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")
image: Rack::Test::UploadedFile.new(image_file, "image/jpeg"),
published: true
},
{
title: "Developer on Fire",
@ -187,12 +190,14 @@ podcast_objects = [
main_color_hex: "343d46",
overcast_url: "https://overcast.fm/itunes1006105326/developer-on-fire",
android_url: "http://subscribeonandroid.com/developeronfire.com/rss.xml",
image: Rack::Test::UploadedFile.new(image_file, "image/jpeg")
image: Rack::Test::UploadedFile.new(image_file, "image/jpeg"),
published: true
},
]
podcast_objects.each do |attributes|
Podcast.create!(attributes)
podcast = Podcast.create!(attributes)
Podcasts::GetEpisodesWorker.perform_async(podcast_id: podcast.id)
end
##############################################################################