mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-16 15:41:13 +02:00
2023-05-062023-05-06 Fred Gleason <fredg@paravelsystems.com>
* Refactored the RSS reports in rdadmin(1) to include information on missing items. * Modified the feed report in rdcastmanager to include information on missing items. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Rivendell web service portal -- Podcast services
|
||||
//
|
||||
// (C) Copyright 2010-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
// (C) Copyright 2010-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@@ -369,11 +369,12 @@ bool Xport::PostRssElemental(RDFeed *feed,const QDateTime &now,QString *err_msg)
|
||||
CURLcode curl_err;
|
||||
char errstr[CURL_ERROR_SIZE];
|
||||
bool ret=false;
|
||||
bool ok=false;
|
||||
|
||||
if((curl=curl_easy_init())==NULL) {
|
||||
XmlExit("unable to get CURL handle",500,"podcasts.cpp",LINE_NUMBER);
|
||||
}
|
||||
xport_curl_data=feed->rssXml(err_msg,now).toUtf8();
|
||||
xport_curl_data=feed->rssXml(err_msg,now,&ok).toUtf8();
|
||||
xport_curl_data_ptr=0;
|
||||
|
||||
//
|
||||
|
@@ -2,7 +2,7 @@
|
||||
##
|
||||
## Makefile.am for rivendell/web/stylesheets
|
||||
##
|
||||
## (C) Copyright 2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
## (C) Copyright 2022-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
##
|
||||
## This program is free software; you can redistribute it and/or modify
|
||||
## it under the terms of the GNU General Public License version 2 as
|
||||
@@ -21,12 +21,18 @@
|
||||
|
||||
install-exec-am:
|
||||
mkdir -p $(DESTDIR)/usr/share/rivendell
|
||||
cp rdcastmanager-report.xsl $(DESTDIR)/usr/share/rivendell/
|
||||
cp rss-item-enclosures.xsl $(DESTDIR)/usr/share/rivendell/
|
||||
cp rss-front-item-report.xsl $(DESTDIR)/usr/share/rivendell/
|
||||
cp rss-back-item-report.xsl $(DESTDIR)/usr/share/rivendell/
|
||||
|
||||
uninstall-local:
|
||||
rm -f $(DESTDIR)/usr/share/rivendell/rdcastmanager-report.xsl
|
||||
rm -f $(DESTDIR)/usr/share/rivendell/rss-item-enclosures.xsl
|
||||
rm -f $(DESTDIR)/usr/share/rivendell/rss-front-item-report.xsl
|
||||
rm -f $(DESTDIR)/usr/share/rivendell/rss-back-item-report.xsl
|
||||
|
||||
EXTRA_DIST = rdcastmanager-report.xsl
|
||||
EXTRA_DIST = rss-front-item-report.xsl\
|
||||
rss-back-item-report.xsl\
|
||||
rss-item-enclosures.xsl
|
||||
|
||||
CLEANFILES = *~
|
||||
MAINTAINERCLEANFILES = *~\
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<!-- rdcastmanager-report.xsl
|
||||
<!-- rdadmin-back-item-report.xsl
|
||||
|
||||
Stylesheet for generating the Online Feed Report in rdcastmanager(1).
|
||||
Copyright (C) 2002-2022 Fred Gleason <fredg@paravelsystems.com>
|
||||
Stylesheet for generating the Back Item Report in rdadmin(1)
|
||||
Copyright (C) 2002-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of version 2 of the GNU General Public License as
|
||||
@@ -18,12 +18,14 @@
|
||||
Boston, MA 02111-1307 USA
|
||||
-->
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:rivendell="http://www.rivendellaudio.org/dtds/rivendell-0.1.dtd">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:template match="/">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title><xsl:value-of select="/rss/channel/title"/> RSS Feed</title>
|
||||
<title>
|
||||
<xsl:value-of select="/rss/channel/title"/> Rivendell Back Item Report
|
||||
</title>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no" />
|
||||
@@ -31,7 +33,7 @@
|
||||
body {
|
||||
background-color: darkgray;
|
||||
}
|
||||
.rounded-block {
|
||||
.active-rounded-block {
|
||||
background-color: white;
|
||||
width: 800px;
|
||||
border-style: solid;
|
||||
@@ -39,6 +41,14 @@
|
||||
border-radius: 10px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.missing-rounded-block {
|
||||
background-color: red;
|
||||
width: 800px;
|
||||
border-style: solid;
|
||||
border-width: 2px;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.image {
|
||||
vertical-align: text-top;
|
||||
margin-left: 5px;
|
||||
@@ -70,17 +80,17 @@
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<table class="rounded-block">
|
||||
<table class="active-rounded-block">
|
||||
<tr>
|
||||
<td width="1024" colspan="2">
|
||||
<h1 class="center-aligned">Rivendell Podcast Report</h1>
|
||||
<h1 class="center-aligned">Rivendell Back Item Report</h1>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</header>
|
||||
<main>
|
||||
<!-- Channel Info -->
|
||||
<table class="rounded-block">
|
||||
<table class="active-rounded-block">
|
||||
<tr>
|
||||
<td class="image" width="96">
|
||||
<img class="image" width="96" height="96">
|
||||
@@ -117,7 +127,10 @@
|
||||
|
||||
<!-- Item Info -->
|
||||
<xsl:for-each select="/rss/channel/item">
|
||||
<table class="rounded-block">
|
||||
<table>
|
||||
<xsl:attribute name="class">
|
||||
<xsl:value-of select="@rivendell:style"/>
|
||||
</xsl:attribute>
|
||||
<tr>
|
||||
<td><h3>
|
||||
<a class="left-aligned" target="_blank">
|
163
web/stylesheets/rss-front-item-report.xsl
Normal file
163
web/stylesheets/rss-front-item-report.xsl
Normal file
@@ -0,0 +1,163 @@
|
||||
<!-- rdadmin-front-item-report.xsl
|
||||
|
||||
Stylesheet for generating the Front Item Report in rdadmin(1)
|
||||
Copyright (C) 2002-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of version 2 of the GNU General Public License as
|
||||
published by the Free Software Foundation;
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
-->
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:rivendell="http://www.rivendellaudio.org/dtds/rivendell-0.1.dtd">
|
||||
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:template match="/">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title>
|
||||
<xsl:value-of select="/rss/channel/title"/> Rivendell Front Item Report
|
||||
</title>
|
||||
<meta charset="UTF-8" />
|
||||
<meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1" />
|
||||
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1,shrink-to-fit=no" />
|
||||
<style type="text/css">
|
||||
body {
|
||||
background-color: darkgray;
|
||||
}
|
||||
.active-rounded-block {
|
||||
background-color: white;
|
||||
width: 800px;
|
||||
border-style: solid;
|
||||
border-width: 2px;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.missing-rounded-block {
|
||||
background-color: red;
|
||||
width: 800px;
|
||||
border-style: solid;
|
||||
border-width: 2px;
|
||||
border-radius: 10px;
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
.image {
|
||||
vertical-align: text-top;
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.center-aligned {
|
||||
font-family: Verdana,san serif;
|
||||
text-align: center;
|
||||
margin-top: 5px;
|
||||
margin-bottom: 5px;
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.left-aligned {
|
||||
font-family: Helvetica,serif;
|
||||
text-align: left;
|
||||
margin-top: 5px;
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.datetime {
|
||||
font-family: Helvetica,serif;
|
||||
text-align: right;
|
||||
margin-top: 5px;
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<table class="active-rounded-block">
|
||||
<tr>
|
||||
<td width="1024" colspan="2">
|
||||
<h1 class="center-aligned">Rivendell Front Item Report</h1>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</header>
|
||||
<main>
|
||||
<!-- Channel Info -->
|
||||
<table class="active-rounded-block">
|
||||
<tr>
|
||||
<td class="image" width="96">
|
||||
<img class="image" width="96" height="96">
|
||||
<xsl:attribute name="src">
|
||||
<xsl:value-of select="/rss/channel/image/url" />
|
||||
</xsl:attribute>
|
||||
</img>
|
||||
</td>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<td class="left-aligned">
|
||||
<h2>
|
||||
<a target="_blank">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="/rss/channel/link"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="hreflang">
|
||||
<xsl:value-of select="/rss/channel/language"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="/rss/channel/title"/>
|
||||
</a>
|
||||
</h2>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="left-aligned">
|
||||
<xsl:value-of select="/rss/channel/description"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- Item Info -->
|
||||
<xsl:for-each select="/rss/channel/item">
|
||||
<table>
|
||||
<xsl:attribute name="class">
|
||||
<xsl:value-of select="@rivendell:style"/>
|
||||
</xsl:attribute>
|
||||
<tr>
|
||||
<td><h3>
|
||||
<a class="left-aligned" target="_blank">
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="enclosure/@url"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="hreflang">
|
||||
<xsl:value-of select="/rss/channel/language"/>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="title"/>
|
||||
</a>
|
||||
</h3></td>
|
||||
<td class="datetime"><h4>
|
||||
<time class="datetime">
|
||||
<xsl:value-of select="pubDate" />
|
||||
</time>
|
||||
</h4></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="left-aligned" colspan="2">
|
||||
<xsl:value-of select="description"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</xsl:for-each>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
29
web/stylesheets/rss-item-enclosures.xsl
Normal file
29
web/stylesheets/rss-item-enclosures.xsl
Normal file
@@ -0,0 +1,29 @@
|
||||
<!-- rdcastmanager-item-enclosures.xsl
|
||||
|
||||
Stylesheet for generating a list of RSS feed item enclosures.
|
||||
Copyright (C) 2002-2023 Fred Gleason <fredg@paravelsystems.com>
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of version 2 of the GNU General Public License as
|
||||
published by the Free Software Foundation;
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330,
|
||||
Boston, MA 02111-1307 USA
|
||||
-->
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
|
||||
<xsl:output method="text" version="1.0" encoding="UTF-8" indent="yes"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:for-each select="/rss/channel/item">
|
||||
<xsl:value-of select="enclosure/@url"/>
|
||||
<xsl:text>|</xsl:text>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
Reference in New Issue
Block a user