diff --git a/src/сomponents/podcasts/Item.ts b/src/сomponents/podcasts/Item.ts index a6e6377..c9402b8 100644 --- a/src/сomponents/podcasts/Item.ts +++ b/src/сomponents/podcasts/Item.ts @@ -16,27 +16,21 @@ interface Props { export const Items = (data: Props) => { let item =` - full - `+data.episode+` - 1 - <![CDATA[`+data.title+': '+data.title_items +`]]> + <![CDATA[`+data.title+': '+data.title_items +`]]> - `+data.description+` - `+data.description+` + `+data.webSite+'/podcast/'+data.guid+` `+data.guid+` `+data.pubDate+` + + `+data.title+': '+data.title_items +` + `+data.description+` + `+data.description+` + false `+data.duration+` - `+data.webSite+'/podcast/'+data.guid+` - - no - false - - `+data.title+': '+data.title_items +` - - - © 2022 `+data.nameCompanies+` - https://creativecommons.org/licenses/by/4.0/ + `+data.episode+` + 1 + full `; return(item) }; diff --git a/src/сomponents/podcasts/getRssXml.ts b/src/сomponents/podcasts/getRssXml.ts index dc1291c..753ef92 100644 --- a/src/сomponents/podcasts/getRssXml.ts +++ b/src/сomponents/podcasts/getRssXml.ts @@ -1,5 +1,3 @@ -import { Items } from './Item' - interface Props { map(arg0: (rows: any) => string): unknown; title: string, @@ -14,48 +12,43 @@ interface Props { export const getRssXml = (data: Props) => { let item =` - + + + <![CDATA[`+data.title+`]]> + + `+data.atom_link+` + + `+data.webSite+'/img/'+data.urlImg+` `+data.title+` - - `+data.email+` - - `+data.nameCompanies+` - `+data.email+` - - `+data.nameCompanies+` - `+data.nameCompanies+` - `+data.description+` - `+data.description+` - `+data.description+` - - `+data.webSite+` - `+data.title+` - `+data.webSite+'/img/'+data.urlImg+` - - - - - + `+data.atom_link+` + + krasnikov podcasts + `+data.lastBuildDate+` + `+data.lastBuildDate+` + + + episodic + false + `+data.nameCompanies+` + `+data.description+` + + `+data.nameCompanies+` + julialazar90@gmail.com + + + + + + + - - ru - `+data.webSite+` - © 2022 `+data.nameCompanies+` - episodic - no - no - `+data.lastBuildDate+` - yes`; + `; return(item) };