Go to file
2021-07-30 13:47:07 +02:00
lib Fix some refactiring error. And Add a way to insert admin credentials 2021-07-30 12:40:24 +02:00
scripts Ca marche pas trop mal 2021-07-12 17:02:39 +02:00
src Fix some refactiring error. And Add a way to insert admin credentials 2021-07-30 12:40:24 +02:00
.esltinrc.json Tyescripted the project and correctly made the package.json file 2021-06-26 14:47:35 +02:00
.gitignore first 2021-06-16 13:27:05 +02:00
.npmignore first 2021-06-16 13:27:05 +02:00
.prettierrc.json rename prettierrc 2021-07-06 15:59:40 +02:00
LICENSE first 2021-06-16 13:27:05 +02:00
package-lock.json added expected package in package.json and package-lock.json 2021-07-28 13:25:19 +02:00
package.json update meta-data inside package.json 2021-07-30 13:11:11 +02:00
README.md Fix typo in README 2021-07-30 13:47:07 +02:00
tsconfig.json Ajout peertubeRequester 2021-07-09 14:26:23 +02:00

Auto Import YouTube

Config

To use this plugin, you need to give some valid admins credential inside the plugin's settings.

After this you have to specify some YouTube Channel who need to be bind with a PeerTube Channel. For this you have to use this format inside the plugins's setting. Into URL list of Youtube channel to synchronize's text area. :

[
   {
       "address":"https://www.youtube.com/feeds/videos.xml?channel_id=${MyYouTubeChannelID}",
       "channelId":"MyPeertubeChannelId"
   } ,
   ...
]

This an array of object who's in this format :

type SettingsContent = {
  address: string;
  channelId: string;
  timeloop?: number;
};

address

For exemple, to the Youtube channel : https://www.youtube.com/channel/YouTube, the channel id is UCBR8-60-B28hp2BmDPdntcQ. You can get it when you're clicking in the channel button on the video player. (He's not Highlighted by YouTube. Cheer Up !)
So you need to specify the following address inside your configuration : https://www.youtube.com/feeds/videos.xml?channel_id=UCBR8-60-B28hp2BmDPdntcQ.

channelId

The peertube's channel id is a number associated to a peertube's channel. He's unique per channel inside a same instance.

timeloop

It's represent the time between two update of the videos list.
It's not needful to specify the timeloop. The default value is set to 5 minutes.