add onwards on fix a bug in website url
This commit is contained in:
parent
fc23626dad
commit
b43761a1e3
|
@ -27,12 +27,16 @@ export const fetchPodcast = url => dispatch => {
|
||||||
parser.parseURL(url, function(err, feed) {
|
parser.parseURL(url, function(err, feed) {
|
||||||
if (feed) {
|
if (feed) {
|
||||||
const title = feed.title
|
const title = feed.title
|
||||||
const website = feed.link
|
let website = feed.link
|
||||||
const author = feed.itunes.author
|
const author = feed.itunes.author
|
||||||
const episodes = feed.items
|
const episodes = feed.items
|
||||||
const description = feed.description
|
const description = feed.description
|
||||||
const img = feed.image
|
const img = feed.image
|
||||||
|
|
||||||
|
if (website.substring(0,3) === 'www') {
|
||||||
|
website = 'https://' + website;
|
||||||
|
}
|
||||||
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: 'FETCH_PODCAST',
|
type: 'FETCH_PODCAST',
|
||||||
loading: false,
|
loading: false,
|
||||||
|
|
|
@ -41,10 +41,10 @@ export const podcasts = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
category: 'featured',
|
category: 'featured',
|
||||||
name: 'Aibeats',
|
name: 'Onwards',
|
||||||
creator: 'Lilsiri.eth Ξ',
|
creator: 'Daniel Weinzveg',
|
||||||
link: 'https://feeds-soundcloud-proxy.status.im/users/soundcloud:users:560409111/sounds.rss',
|
link: 'https://feeds-soundcloud-proxy.status.im/users/soundcloud:users:80553246/sounds.rss',
|
||||||
img:
|
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'
|
||||||
},
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue