Verified Commit 2b06bd2f authored by Melroy van den Berg's avatar Melroy van den Berg
Browse files

Fix html

parent bdf434e6
Pipeline #4405 passed with stage
in 11 seconds
......@@ -19,10 +19,18 @@ const express = require('express')
const app = express()
app.get('/', (req, res) => {
res.send('<h1>Welcome to the LBRY RSS Feed service</h1><a href="/">Go back to Homepage</a>\n<h2>LBRY Channels</h2>\nProvide a <b>channel name</b> (and optionally the protocol). For the default lbry:// links use for example: <a href="/channel/eevblog">/channel/eevblog</a>. For links to Odysee.com use: <a href="/channel/odysee/eevblog">/channel/odysee/eevblog</a>.\n\n<br/><br/><br/>Also try out with postfix /atom or /json (eg. <a href="/channel/odysee/eevblog/atom">/channel/odysee/eevblog/atom</a>) to gether respectively Atom & JSON RSS feeds')
res.send('<!DOCTYPE html>\n<html>\n<head>\n<title>LBRY RSS Feed service: Channels</title>\n</head>\n<body>\n' +
'<h1>Welcome to the LBRY RSS Feed service</h1><a href="/">Go back to Homepage</a>\n<h2>LBRY Channels</h2>\n' +
'Provide a <b>channel name</b> (and optionally the protocol). For the default lbry:// links use for example: <a href="/channel/eevblog">/channel/eevblog</a>. For links to Odysee.com use: <a href="/channel/odysee/eevblog">/channel/odysee/eevblog</a>.\n<br><br><br>\n\n' +
'Also try out with postfix /atom or /json (eg. <a href="/channel/odysee/eevblog/atom">/channel/odysee/eevblog/atom</a>) to gether respectively Atom & JSON RSS feeds' +
'\n</body>\n</html>')
})
app.get('/odysee', (req, res) => {
res.send('<h1>Welcome to the LBRY RSS Feed service</h1><a href="/">Go back to Homepage</a>\n<h2>LBRY Channels - Odysee links</h2>\nGood. Now provide a <b>channel name</b>. Example: <a href="/channel/odysee/eevblog">/channel/odysee/eevblog</a>.\n\n<br/><br/>Also try out with postfix /atom or /json (eg. <a href="/channel/odysee/eevblog/atom">/channel/odysee/eevblog/atom</a>) to gether respectively Atom & JSON RSS feeds')
res.send('<!DOCTYPE html>\n<html>\n<head>\n<title>LBRY RSS Feed service: Channels - Odysee</title>\n</head>\n<body>\n' +
'<h1>Welcome to the LBRY RSS Feed service</h1><a href="/">Go back to Homepage</a>\n<h2>LBRY Channels - Odysee links</h2>\n' +
'Good. Now provide a <b>channel name</b>. Example: <a href="/channel/odysee/eevblog">/channel/odysee/eevblog</a>.\n<br><br><br>\n\n' +
'Also try out with postfix /atom or /json (eg. <a href="/channel/odysee/eevblog/atom">/channel/odysee/eevblog/atom</a>) to gether respectively Atom & JSON RSS feeds' +
'\n</body>\n</html>')
})
app.get('/:channel', (req, res) => {
......
......@@ -22,11 +22,13 @@ const playlistRoute = require('./playlist')
const statusRoute = require('./status')
app.get('/', (req, res) => {
res.send('<h1>Welcome to LBRY RSS Feed service</h1>\n' +
'<h2>LBRY Channels</h2>Use: <a href="/channel">/channel</a> (for lbry:// protocol links) <b>OR</b> <a href="/channel/odysee">/channel/odysee</a> (for <u>Odysee.com</u> links).<br/><br/>\n\nFollow any channel on LBRY you love!\n' +
res.send('<!DOCTYPE html>\n<html>\n<head>\n<title>LBRY RSS Feed service</title>\n</head>\n<body>\n' +
'<h1>Welcome to LBRY RSS Feed service</h1>\n' +
'<h2>LBRY Channels</h2>Use: <a href="/channel">/channel</a> (for lbry:// protocol links) <b>OR</b> <a href="/channel/odysee">/channel/odysee</a> (for <u>Odysee.com</u> links).<br><br>\n\nFollow any channel on LBRY you love!\n' +
'<h2>LBRY Playlists</h2>Use: <a href="/playlist">/playlist</a> <b>or</b> <a href="/playlist/odysee">/playlist/odysee</a>' +
'<br/><br/><hr><br/>' +
'Go to the: <a target="_blank" href="https://gitlab.melroy.org/melroy/lbry-channel-feed">GitLab Project source-code</a>'
'<br><br><hr><br>' +
'Go to the: <a target="_blank" href="https://gitlab.melroy.org/melroy/lbry-channel-feed">GitLab Project source-code</a>' +
'\n</body>\n</html>'
)
})
.use(express.static('public'))
......
......@@ -19,10 +19,19 @@ const express = require('express')
const app = express()
app.get('/', (req, res) => {
res.send('<h1>Welcome to the LBRY RSS Feed service</h1><a href="/">Go back to Homepage</a>\n<h2>LBRY Playlists</h2>\nProvide a <b>playlist claim ID</b> (and optionally the protocol). For the default lbry:// links use for example: <a href="/playlist/linux-distro-videos:f">/playlist/linux-distro-videos:f</a>. For links to Odysee.com use: <a href="/playlist/odysee/linux-distro-videos:f">/playlist/odysee/linux-distro-videos:f</a>.\n\n<br/><br/><br/>Also try out with postfix /atom or /json (eg. <a href="/playlist/odysee/linux-distro-videos:f/atom">/playlist/odysee/linux-distro-videos:f/atom</a>) to gether respectively Atom & JSON RSS feeds')
res.send('<!DOCTYPE html>\n<html>\n<head>\n<title>LBRY RSS Feed service: Playlists</title>\n</head>\n<body>\n' +
'<h1>Welcome to the LBRY RSS Feed service</h1><a href="/">Go back to Homepage</a>\n<h2>LBRY Playlists</h2>\n' +
'Provide a <b>playlist claim ID</b> (and optionally the protocol). For the default lbry:// links use for example: <a href="/playlist/linux-distro-videos:f">/playlist/linux-distro-videos:f</a>. ' +
'For links to Odysee.com use: <a href="/playlist/odysee/linux-distro-videos:f">/playlist/odysee/linux-distro-videos:f</a>.\n<br><br><br>\n\n' +
'Also try out with postfix /atom or /json (eg. <a href="/playlist/odysee/linux-distro-videos:f/atom">/playlist/odysee/linux-distro-videos:f/atom</a>) to gether respectively Atom & JSON RSS feeds' +
'\n</body>\n</html>')
})
app.get('/odysee', (req, res) => {
res.send('<h1>Welcome to the LBRY RSS Feed service</h1><a href="/">Go back to Homepage</a>\n<h2>LBRY Playlists - Odysee links</h2>\nGood. Now provide a <b>playlist claim ID</b>. Example: <a href="/playlist/odysee/linux-distro-videos:f">/playlist/odysee/linux-distro-videos:f</a>.\n\n<br/><br/>Also try out with postfix /atom or /json (eg. <a href="/playlist/odysee/linux-distro-videos:f/atom">/playlist/odysee/linux-distro-videos:f/atom</a>) to gether respectively Atom & JSON RSS feeds')
res.send('<!DOCTYPE html>\n<html>\n<head>\n<title>LBRY RSS Feed service: Playlists - Odysee</title>\n</head>\n<body>\n' +
'<h1>Welcome to the LBRY RSS Feed service</h1><a href="/">Go back to Homepage</a>\n<h2>LBRY Playlists - Odysee links</h2>\n' +
'Good. Now provide a <b>playlist claim ID</b>. Example: <a href="/playlist/odysee/linux-distro-videos:f">/playlist/odysee/linux-distro-videos:f</a>.\n<br><br><br>\n\n' +
'Also try out with postfix /atom or /json (eg. <a href="/playlist/odysee/linux-distro-videos:f/atom">/playlist/odysee/linux-distro-videos:f/atom</a>) to gether respectively Atom & JSON RSS feeds' +
'\n</body>\n</html>')
})
// Playlist
app.get('/:playlistClaimId', (req, res) => {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment