|
|
@ -1,5 +1,3 @@ |
|
|
|
import { Items } from './Item' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
interface Props { |
|
|
|
interface Props { |
|
|
|
map(arg0: (rows: any) => string): unknown; |
|
|
|
map(arg0: (rows: any) => string): unknown; |
|
|
|
title: string, |
|
|
|
title: string, |
|
|
@ -14,48 +12,43 @@ interface Props { |
|
|
|
|
|
|
|
|
|
|
|
export const getRssXml = (data: Props) => { |
|
|
|
export const getRssXml = (data: Props) => { |
|
|
|
let item =` |
|
|
|
let item =` |
|
|
|
<rss version="2.0" |
|
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
xmlns:atom="http://www.w3.org/2005/Atom" |
|
|
|
<rss xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
|
|
xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0/play-podcasts.xsd" |
|
|
|
xmlns:content="http://purl.org/rss/1.0/modules/content/"
|
|
|
|
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" |
|
|
|
xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"
|
|
|
|
xmlns:content="http://purl.org/rss/1.0/modules/content/" |
|
|
|
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" > |
|
|
|
xmlns:media="http://search.yahoo.com/mrss/" |
|
|
|
|
|
|
|
xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<channel> |
|
|
|
<channel> |
|
|
|
|
|
|
|
<title><![CDATA[`+data.title+`]]></title> |
|
|
|
|
|
|
|
<description><![CDATA[`+data.description+`]]></description> |
|
|
|
|
|
|
|
<link>`+data.atom_link+`</link> |
|
|
|
|
|
|
|
<image> |
|
|
|
|
|
|
|
<url>`+data.webSite+'/img/'+data.urlImg+`</url> |
|
|
|
<title>`+data.title+`</title> |
|
|
|
<title>`+data.title+`</title> |
|
|
|
<atom:link href="`+data.atom_link+`" rel="self" type="application/rss+xml"/> |
|
|
|
<link>`+data.atom_link+`</link> |
|
|
|
<googleplay:owner>`+data.email+`</googleplay:owner> |
|
|
|
</image> |
|
|
|
<itunes:owner> |
|
|
|
<generator>krasnikov podcasts</generator> |
|
|
|
<itunes:name>`+data.nameCompanies+`</itunes:name> |
|
|
|
<lastBuildDate>`+data.lastBuildDate+`</lastBuildDate> |
|
|
|
<itunes:email>`+data.email+`</itunes:email> |
|
|
|
<pubDate>`+data.lastBuildDate+`</pubDate> |
|
|
|
</itunes:owner> |
|
|
|
<copyright><![CDATA[2023 © `+data.nameCompanies+`. Все права защищены.]]></copyright> |
|
|
|
<googleplay:author>`+data.nameCompanies+`</googleplay:author> |
|
|
|
<language><![CDATA[ru]]></language> |
|
|
|
<itunes:author>`+data.nameCompanies+`</itunes:author> |
|
|
|
<itunes:type>episodic</itunes:type> |
|
|
|
<description>`+data.description+`</description> |
|
|
|
<itunes:explicit>false</itunes:explicit> |
|
|
|
<googleplay:description>`+data.description+`</googleplay:description> |
|
|
|
<itunes:author>`+data.nameCompanies+`</itunes:author> |
|
|
|
<itunes:summary>`+data.description+`</itunes:summary> |
|
|
|
<itunes:summary>`+data.description+`</itunes:summary> |
|
|
|
<image> |
|
|
|
<itunes:owner> |
|
|
|
<link>`+data.webSite+`</link> |
|
|
|
<itunes:name>`+data.nameCompanies+`</itunes:name> |
|
|
|
<title>`+data.title+`</title> |
|
|
|
<itunes:email>julialazar90@gmail.com</itunes:email> |
|
|
|
<url>`+data.webSite+'/img/'+data.urlImg+`</url> |
|
|
|
</itunes:owner> |
|
|
|
</image> |
|
|
|
<itunes:image href="`+data.webSite+'/img/'+data.urlImg+`"/> |
|
|
|
<googleplay:image href="`+data.webSite+'/img/'+data.urlImg+`"/> |
|
|
|
<itunes:category text="Education"> |
|
|
|
<itunes:image href="`+data.webSite+'/img/'+data.urlImg+`"/> |
|
|
|
<itunes:category text="Self-Improvement"/> |
|
|
|
<itunes:category text="Society & Culture"> |
|
|
|
</itunes:category> |
|
|
|
<itunes:category text="Places & Travel"/> |
|
|
|
<itunes:category text="Business"> |
|
|
|
|
|
|
|
<itunes:category text="Careers"/> |
|
|
|
</itunes:category> |
|
|
|
</itunes:category> |
|
|
|
<itunes:category text="Science"> |
|
|
|
<itunes:category text="Science"> |
|
|
|
<itunes:category text="Social Sciences"/> |
|
|
|
<itunes:category text="Social Sciences"/> |
|
|
|
</itunes:category> |
|
|
|
</itunes:category>`; |
|
|
|
<language>ru</language> |
|
|
|
|
|
|
|
<link>`+data.webSite+`</link> |
|
|
|
|
|
|
|
<copyright>© 2022 `+data.nameCompanies+`</copyright> |
|
|
|
|
|
|
|
<itunes:type>episodic</itunes:type> |
|
|
|
|
|
|
|
<googleplay:explicit>no</googleplay:explicit> |
|
|
|
|
|
|
|
<itunes:explicit>no</itunes:explicit> |
|
|
|
|
|
|
|
<lastBuildDate>`+data.lastBuildDate+`</lastBuildDate> |
|
|
|
|
|
|
|
<googleplay:block>yes</googleplay:block>`; |
|
|
|
|
|
|
|
return(item) |
|
|
|
return(item) |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|