Dtube community support - a bot that persist dtube video on ipfs node

in #utopian-io7 years ago (edited)


image.png

What is the project about?

Dtube is a video plateform based on the steem blockchain that store videos on IPFS. Because most of users doesn't use ipfs. Dtube is a central point that will store content on IPFS node.

Dtube community support is a bot that will "listen" for new dtube content for a specific steem tag and store the video on a local IPFS node. Plus it stores metadata about dtube content like tittle (steem post) / video size / permlink / author. The main goad is to persist dtube content of your favorite community on IPFS.

DCS will retrieve 480p videos. if not availble, it will retrieve the source file.

############# QmdbQfcu2u53XAsM8Rsea3srLjmZ31gzF7QJRhPVHR1MYj detected

QmdbQfcu2u53XAsM8Rsea3srLjmZ31gzF7QJRhPVHR1MYj not already stored

############# QmdbQfcu2u53XAsM8Rsea3srLjmZ31gzF7QJRhPVHR1MYj added to node

Author : itharagaian

Title : Robocraft : Mode bagarre

Permlink : un5zv7p4

Link : /busy/@itharagaian/un5zv7p4

Size : 209846889

Date : Sat Mar 10 2018 14:20:36 GMT+0100 (CET)

############# QmdbQfcu2u53XAsM8Rsea3srLjmZ31gzF7QJRhPVHR1MYj metadata stored

technology stack

The bot itself is a nodeJS app. it uses the following modules :

  • steemjs (to get IPFS hash / metadata)
  • ipfs-api (to connect on ipfs node and pin content)

IPFS must be installed manualy on the same host.

Installation / Configuration / Start

Install

Clone the repo

cd ./dtube-community-support

npm install

Configure

In default configuration, DCS will check for francophone videos. You can change that by modifying "tags" in config.js file. "tags" is an array, you can add many tags in order to support multiple communities.

Run

npm start

Roadmap

Some Metadata are stored on a DB. In future version, I would like to add the following features :

  • list all videos that have been added to the node
  • manually add videos
  • delete specific videos

Link

https://github.com/evildido/dtube-community-support



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You may want to use .gitignore to hide your log files and not commit them to the repo.

Can you please explain more why you choose 480 videos?

You can contact us on Discord.
[utopian-moderator]

Thx !

My mistake.

I choose 480p because my bot is running on my vps and storing source file take to many memory on my HDD and 720p is not always available.

Hey @helo, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

How to study about utopia-io @evildido ...?

Dois-je faire quoi que ce soit ?
A part voter :-) ce qui est déjà fait mdr :-)

Hey @evildido I am @utopian-io. I have just upvoted you!

Achievements

  • WOW WOW WOW People loved what you did here. GREAT JOB!
  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

@youtake pulls you up ! This vote was sent to you by @evildido !

@evildido How to limit disc usage? I've a VPS server but with very limited free space ~50G. I'd like to assign about 40G to this bot.

Is this possible?

Yep. Ipfs had a config file.
By default 10 GB is configured.
You can see the usage with ipfs repo stat