diff --git a/src/api/api.js b/src/api/api.js index 383caee..1dfa86b 100644 --- a/src/api/api.js +++ b/src/api/api.js @@ -336,6 +336,10 @@ const getYoutubeVideos = async (channelId) => { }; +const getRadioStations = async () => { + return require('../assets/radiostations.json'); +} + module.exports = { schedule, top, @@ -349,5 +353,6 @@ module.exports = { getAnimeServers, search, getImages, - getYoutubeVideos + getYoutubeVideos, + getRadioStations }; diff --git a/src/api/routes/index.js b/src/api/routes/index.js index f83fba8..c4061d1 100644 --- a/src/api/routes/index.js +++ b/src/api/routes/index.js @@ -2,7 +2,7 @@ const express = require('express'); const router = express.Router(); const api = require('../api'); -const { BASE_KUDASAI, BASE_PALOMITRON, BASE_RAMENPARADOS } = require('../urls'); +const { BASE_KUDASAI, BASE_PALOMITRON, BASE_RAMENPARADOS, BASE_CRUNCHYROLL } = require('../urls'); router.get('/schedule/:day' , (req, res) =>{ @@ -67,7 +67,8 @@ router.get('/news' , (req, res) =>{ let pagesRss = [ { url: BASE_KUDASAI, author: 'Kudasai', content: 'content_encoded' }, { url: BASE_PALOMITRON, author: 'Palomitron', content: 'description' }, - { url: BASE_RAMENPARADOS, author: 'Ramen para dos', content: 'content' } + { url: BASE_RAMENPARADOS, author: 'Ramen para dos', content: 'content' }, + { url: BASE_CRUNCHYROLL, author: 'Crunchyroll', content: 'content_encoded' } ]; api.getNews(pagesRss) @@ -253,4 +254,17 @@ router.get('/videos/:channelId' , (req, res) =>{ }); +router.get('/radio' , (req, res) =>{ + + api.getRadioStations() + .then(stations =>{ + res.status(200).json({ + stations + }); + }).catch((err) =>{ + console.error(err); + }); + +}); + module.exports = router; diff --git a/src/api/urls.js b/src/api/urls.js index a3314ab..3f13bbc 100644 --- a/src/api/urls.js +++ b/src/api/urls.js @@ -7,6 +7,7 @@ module.exports = { BASE_KUDASAI: 'https://somoskudasai.com/feed/', BASE_PALOMITRON: 'https://elpalomitron.com/category/animemanga/feed/', BASE_RAMENPARADOS: 'https://ramenparados.com/category/noticias/anime/feed/', + BASE_CRUNCHYROLL: 'https://www.crunchyroll.com/newsrss?lang=esES', SEARCH_URL: 'https://animeflv.net/browse?q=', BASE_EPISODE_IMG_URL: 'https://cdn.animeflv.net/screenshots/', BASE_QWANT: 'https://api.qwant.com/search/images?' diff --git a/src/assets/radiostations.json b/src/assets/radiostations.json new file mode 100644 index 0000000..223d921 --- /dev/null +++ b/src/assets/radiostations.json @@ -0,0 +1,306 @@ +[ + { + "name": "Ghost Anime Radio", + "url": "http://animeradio.su:8000/" + }, + { + "name": "Vocaloid Radio", + "url": "http://curiosity.shoutca.st:8019/stream" + }, + { + "name": "NyanServer (J-Trance)", + "url": "http://radio.nyan.pw/station/stream" + }, + { + "name": "Listen Radio (J-Pop)", + "url": "https://listen.moe/stream" + }, + { + "name": "Listen Radio (K-Pop)", + "url": "https://listen.moe/kpop/stream" + }, + { + "name": "Anison FM", + "url": "http://pool.anison.fm:9000/AniSonFM(128)" + }, + { + "name": "Radio Nami", + "url": "https://radionami.com/play_radio.m3u" + }, + { + "name": "R/a/dio", + "url": "http://relay0.r-a-d.io/main.mp3" + }, + { + "name": "Chiru.no", + "url": "http://chiru.no:8000/stream.mp3" + }, + { + "name": "Vocaloid Radio VRX", + "url": "http://vrx.piro.moe:8000/stream-192" + }, + { + "name": "Asian Wave Japan", + "url": "https://listen1.myradio24.com/7934" + }, + { + "name": "Radio Vocaloid", + "url": "http://142.4.217.133:9848/stream" + }, + { + "name": "Final Fantasy Radio", + "url": "http://finalfantasystation.com:8000/stream" + }, + { + "name": "Shinsen Radio", + "url": "http://shinsen-radio.org:8000/shinsen-radio.128.mp3" + }, + { + "name": "Anime Nexus", + "url": "http://radio.animenexus.mx:8000/animenexus" + }, + { + "name": "Yggdrasil Radio", + "url": "http://shirayuki.org:9100/" + }, + { + "name": "Eden Radio", + "url": "http://edenofthewest.com:8080/eden.mp3" + }, + { + "name": "Gensokyo Radio", + "url": "http://stream.gensokyoradio.net:8000/" + }, + { + "name": "Radio J-Hero", + "url": "http://stm1.radiojhero.com:8008/;" + }, + { + "name": "Phate Radio", + "url": "http://stream.phate.io/phatecc" + }, + { + "name": "91.8 The fan", + "url": "http://198.27.80.154:8800/live" + }, + { + "name": "Radio AOI", + "url": "http://radioaoi.pl/stream.m3u" + }, + { + "name": "Radio Touhou", + "url": "http://www.touhouradio.com/touhouradio.m3u" + }, + { + "name": "Radio MultiAnime", + "url": "http://67.20.61.70:8301" + }, + { + "name": "Radio Fan World Anime", + "url": "http://stream.miradio.in:2199/tunein/fanworld.pls" + }, + { + "name": "Radio Japan-A", + "url": "http://www.japanaradio.com/free/48kaacp.pls" + }, + { + "name": "Radio JPopsuki", + "url": "http://jpopsuki.fm:2199/tunein/jpopsuki-stream.pls" + }, + { + "name": "Radio Hot Mix", + "url": "http://hotmixradio-japan.ice.infomaniak.ch/hotmixradio-japan-128.mp3" + }, + { + "name": "Dada more Radio", + "url": "http://dadamore2.ddo.jp:8000/listen.pls" + }, + { + "name": "Initial D World", + "url": "http://69.163.186.124:9001/listen.aac" + }, + { + "name": "Radio Blast", + "url": "http://192.99.150.31:8315/" + }, + { + "name": "Kibo FM", + "url": "http://listen.kibo.fm:8000/kibofm" + }, + { + "name": "Power 945", + "url": "http://38.96.148.28:8754/stream" + }, + { + "name": "Japan Fans", + "url": "http://159.253.37.137:9984/listen.pls" + }, + { + "name": "Radio Aniterasu", + "url": "http://aniterasu.com:8000/;?1442956789440.mp3" + }, + { + "name": "Big B Radio's J-Pop", + "url": "http://64.71.79.181:6059/stream" + }, + { + "name": "Radio Blue Heron", + "url": "http://cp3.digistream.info:8170" + }, + { + "name": "Friends Forever", + "url": "http://23.29.71.154:8066/" + }, + { + "name": "Radio Greek Otaku", + "url": "http://192.99.4.210:3684/stream" + }, + { + "name": "Radio UR", + "url": "http://listen.ur-radio.de/anime.mp3" + }, + { + "name": "Radio Anime", + "url": "http://stream.animeradio.de/animeradio.mp3" + }, + { + "name": "PowerPlay J-Pop", + "url": "http://agnes.torontocast.com:8102" + }, + { + "name": "Radio Asia Dream", + "url": "http://bluford.torontocast.com:8526" + }, + { + "name": "J-Pop Kawaii", + "url": "http://bb31.sonixcast.com:20002/stream/1/" + }, + { + "name": "J-Club HipHop", + "url": "http://agnes.torontocast.com:8051" + }, + { + "name": "J-Rock", + "url": "http://cristina.torontocast.com:8057" + }, + { + "name": "J-Pop Sakura", + "url": "http://bb31.sonixcast.com:20278/stream/1/" + }, + { + "name": "J-Pop Haru Sakura", + "url": "http://184.75.223.178:8087/" + }, + { + "name": "Radio Ronin", + "url": "https://s3.radio.co/sff133d65b/listen" + }, + { + "name": "Radio Shinka", + "url": "http://5.9.65.9:8171/live" + }, + { + "name": "Radio Naihatsu", + "url": "http://108.163.223.242:8305/" + }, + { + "name": "J-Pop Project", + "url": "http://agnes.torontocast.com:8083/" + }, + { + "name": "J-idols Project", + "url": "http://agnes.torontocast.com:8011/" + }, + { + "name": "Radio J1", + "url": "https://jenny.torontocast.com:2000/stream/J1HITS" + }, + { + "name": "J1 XTRA", + "url": "https://jenny.torontocast.com:2000/stream/J1XTRA" + }, + { + "name": "J1 GOLD", + "url": "https://jenny.torontocast.com:2000/stream/J1GOLD" + }, + { + "name": "Animu FM", + "url": "http://cast.animu.com.br:9021/stream" + }, + { + "name": "Radio Wave Anime", + "url": "http://s04.radio-tochka.com:5470/mount" + }, + { + "name": "Radio Anime Stream", + "url": "https://radioanime.radioca.st/stream" + }, + { + "name": "Radio Baka", + "url": "http://144.217.203.184:8398/;" + }, + { + "name": "Radio Animecol", + "url": "http://node-15.zeno.fm/6bfysacxc6quv" + }, + { + "name": "JMusic Anime", + "url": "http://ample-zeno-24.radiojar.com/ddetxwuhkpeuv" + }, + { + "name": "Radio Japanese Music", + "url": "http://live.japanesemusicid.com:8000/japanesemusic" + }, + { + "name": "Radio Japannext", + "url": "https://perseus.shoutca.st/tunein/japannex.pls" + }, + { + "name": "Radio Akari", + "url": "http://ample-zeno-22.radiojar.com/0t952vqukfeuv" + }, + { + "name": "Anime Universe", + "url": "http://176.31.241.17:8147/;" + }, + { + "name": "Geek Radio Music", + "url": "http://stream.zenolive.com/8d0xskxsxxquv" + }, + { + "name": "Radio Aniterasu", + "url": "http://aniterasuradio.com:8000/;" + }, + { + "name": "Radio Akiba", + "url": "http://stm24.srvstm.com:9526/;" + }, + { + "name": "Radio Caprice", + "url": "http://79.111.119.111:8002/anime" + }, + { + "name": "Radio Caprice J-Rock", + "url": "http://79.111.119.111:8002/jpop" + }, + { + "name": "Nihonara!", + "url": "http://79.111.119.111:8002/jrock" + }, + { + "name": "Radio Opening", + "url": "http://5.39.86.120:8000/nihonara_128.mp3" + }, + { + "name": "Radio Aewen K-J-Pop", + "url": "http://stream.zeno.fm/tza2ayy47qruv" + }, + { + "name": "Radio Wkend", + "url": "http://209.58.145.135:8031/stream" + }, + { + "name": "Nihongo FM", + "url": "http://199.180.72.2:9004/stream" + } +] \ No newline at end of file