add onwards on fix a bug in website url

This commit is contained in:
jinhojang6 2020-02-28 01:49:21 +09:00
parent fc23626dad
commit b43761a1e3
No known key found for this signature in database
GPG Key ID: 0E7AA62CB0D9E6F3
2 changed files with 10 additions and 6 deletions

View File

@ -27,12 +27,16 @@ export const fetchPodcast = url => dispatch => {
parser.parseURL(url, function(err, feed) {
if (feed) {
const title = feed.title
const website = feed.link
let website = feed.link
const author = feed.itunes.author
const episodes = feed.items
const description = feed.description
const img = feed.image
if (website.substring(0,3) === 'www') {
website = 'https://' + website;
}
dispatch({
type: 'FETCH_PODCAST',
loading: false,

View File

@ -41,10 +41,10 @@ export const podcasts = [
},
{
category: 'featured',
name: 'Aibeats',
creator: 'Lilsiri.eth Ξ',
link: 'https://feeds-soundcloud-proxy.status.im/users/soundcloud:users:560409111/sounds.rss',
name: 'Onwards',
creator: 'Daniel Weinzveg',
link: 'https://feeds-soundcloud-proxy.status.im/users/soundcloud:users:80553246/sounds.rss',
img:
'https://lh3.googleusercontent.com/NJ_OW1D8tM5Ivm87Vci9WX7hCfdKgoHMQKlq8Zr-g-ZHfwQ5O_O6S7iHV-qHVWuEBNyotU63nvxF32agEK10dgpzePeXsRI4IIdYvt2SiRABwsUZVw35delHGckGXVIbjGQ--7tTqA=w2400'
},
'https://s3-us-west-2.amazonaws.com/anchor-generated-image-bank/production/podcast_uploaded400/639445/639445-1528081749835-3cb9a831dc539.jpg'
}
]