create the class YoutubeListenerRss + make some basic test + implement nock lib

This commit is contained in:
2021-03-21 16:06:21 +01:00
parent ccf22f4595
commit 0093fdd2ff
12 changed files with 3820 additions and 0 deletions

View File

@ -0,0 +1,14 @@
import { ListenerRss } from "listener-rss/src/listener-rss";
export class YoutubeListenerRss extends ListenerRss {
constructor(idChaine, timeloop) {
super({
name: "",
timeloop: timeloop,
address: "https://www.youtube.com/feeds/videos.xml?channel_id=".concat(idChaine),
customfields: {
description: ["media:group", "media:description"],
icon: ["media:group", "media:thumbnail"],
},
});
}
}