Skip to content

Instantly share code, notes, and snippets.

@ntkog
Last active December 16, 2020 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ntkog/1e4f348c99f4fba559072e005396f95a to your computer and use it in GitHub Desktop.
Save ntkog/1e4f348c99f4fba559072e005396f95a to your computer and use it in GitHub Desktop.
IVOOX RSS feed fixer for Spotify
{
"version": 2,
"builds": [{ "src": "server.js", "use": "@now/node-server" }],
"routes": [
{
"src": "/",
"dest": "/server.js",
"methods": ["GET"]
}
]
}
{
"name": "ivoox-fixer",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"start": "node server.js"
},
"keywords": [],
"author": "Jorge Barrachina",
"license": "MIT",
"dependencies": {
"express": "^4.17.1",
"replacestream": "^4.0.3",
"request": "^2.88.0"
}
}
const express = require("express");
const app = express();
const replaceStream = require('replacestream');
const request = require('request');
const port = 5000;
// Body parser
app.use(express.urlencoded({ extended: false }));
// Home route
app.get("/", (req, res) => {
res.status(200);
request.get(req.query.podcastUrl)
.pipe(replaceStream(`<itunes:author><![CDATA[${req.query.podcastName}]]></itunes:author>`,
`<itunes:author><![CDATA[${req.query.podcastName}]]></itunes:author><itunes:owner><itunes:email>${req.query.podcastEmail}</itunes:email></itunes:owner>`))
.pipe(res);
});
// Listen on port 5000
app.listen(port, () => {
console.log(`Server is booming on port 5000
Visit http://localhost:5000`);
});
@ntkog
Copy link
Author

ntkog commented Feb 7, 2020

Why?

Because when you want to add your IVOOX podcast to Spotify, you will probably find this error

Screen Shot 2020-02-08 at 00 34 09

And at this time, you cannot edit manually your IVOOX RSS feed.

How to solve it?

Requirements

Instructions

  1. Install nodejs dependencies
npm i
  1. Deploy with now.sh (It's free)
now
  1. Copy your now.sh deployed url

  2. Enter the following url, fill in (podcastUrl,podcastName,podcastEmail) values in the queryString properly

https://NOW_SH_URL/?podcastUrl=https://www.ivoox.com/podcast-nosolotech-podcast_fg_f1851397_filtro_1.xml&podcastName=NoSoloTech%20Podcast&podcastEmail=n***t@gmail.com

@ntkog
Copy link
Author

ntkog commented Dec 15, 2020

If you prefer deploy your instance with netlify , here is a repo you can look at :
https://gitlab.com/aguacates.mutantes/ivoox_rss

@ntkog
Copy link
Author

ntkog commented Dec 16, 2020

This solution is no longer needed. It seems now RSS feed from Ivoox, adds "itunes:email" tag properly (But be aware that's is not a mandatory field when you create your Ivoox podcast, so put something there)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment