8.8.7 • Published 4 days ago

peertube-plugin-hive-tube v8.8.7

Weekly downloads
-
License
GPL
Repository
-
Last release
4 days ago

Hive-Tube

THE FOSS, SELF-HOSTED ALTERNATIVE TO STREAMING PLATFORMS LIKE YOUTUBE AND SPOTIFY The Hive-Tube server plugin monetizes & massively syndicates any streaming media via the Hive and Fediverse networks, plus Certified Open RSS. Stream whatever you want, P2P (even 4K Livestreams). No more worries of shadow-bans, account deletion, demonetization or fees. Reach new audiences and earn more.

Hive-Tube Plugin Installation (for Site Host Administrators)

To install the Hive-Tube plugin, just securely login to your Peertube site as an administrator, such as "root". Then go to Administration -> Plugins/Themes, search for the "Hive" keyword and click "Install".

Hive-Tube plugin Settings

HiveSigner account

You can leave the "tdvsigner" username/value in this field if you want to, or remove the value from that field entirely. If there is a Hive username in that field, then the HiveSigner login choice will appear on your site's login page.

If your site imports a LOT of audios/videos/podcasts from sites such as Youtube, Odysee, Bitchute, Captivate, Podbean, Spotify, etc then those sites may try to limit the content that you scrape from them, or block your server entirely. To get around that, you can use Tor on your server and configure its address/ports/pwd etc in the Hive-Tube settings screen.


Peertube configuration (for System Administrators)

Raise the client_max_body_size on nginx to prevent possible 413 http errors:


Plugin Installation (for Developers)

These instructions are only for Devs that want to evolve and build the Hive-Tube plugin working on source code.

  • Requirements
    System must have git and nodejs installed to install and use the plugin
  • Clone repo
    To install the plugin on your Peertube site, you must first pull the repo
git clone 'repository_url'
  • Use suggested node version (if needed, install nvm)
nvm use
  • Install the node.js dependencies In the plugin directory run
npm install
  • Compile the plugin with webpack In the plugin directory run
npm run build
  • Install peertube client tools:
npm install -g @peertube/peertube-cli
  • Configure peertube client tools (change the Peertube url and credentials):
peertube-cli auth add -u 'http://peertubeurl' -U 'root' --password 'rootpwd'
  • Install the plugin:
peertube-cli plugins install --path /path/to/peertube/plugin
Develop the plugin locally

Copy firstTime-buildAndDeploy.template.sh to firstTime-buildAndDeploy.sh and buildAndDeploy.template.sh to buildAndDeploy.sh.

Edit the plugin code and run the shell files to install first time or update in a clean way.

Install plugin if Peertube is running inside a docker container
  • Build plugin locally
npm run build
  • Copy the entire folder to the server. For example, to:
/opt/peertube/docker-volume/plugins-src/peertube-plugin-hive-tube/
  • Install/update/uninstall plugin (reloading the Peertube docker container):

Uninstall:

docker-compose exec -T --user peertube peertube npm run plugin:uninstall -- --npm-name peertube-plugin-hive-tube

Fresh install:

docker-compose exec -T --user peertube peertube npm run plugin:install -- --plugin-path /plugins-src/peertube-plugin-hive-tube && docker restart peertube_peertube_1

Update:

docker-compose exec -T --user peertube peertube npm run plugin:uninstall -- --npm-name peertube-plugin-hive-tube
docker-compose exec -T --user peertube peertube npm run plugin:install -- --plugin-path /plugins-src/peertube-plugin-hive-tube && docker restart peertube_peertube_1
Forced update and global plugin refresh:

This procedure was needed to upgrade for example the "@hiveio/hive-js" dependency from version 1.x to version 2.x. It was needed because somehow the Peertube plugins cache wasn't correctly cleaning up and updating.

If Peertube is running in dev mode:

  • Uninstall all plugins
  • Remove all contents of folder storage/plugins under Peertube folder (if data folder is not empty, please stop and check)
  • Reinstall all the plugins and the new Hive one with updated libraries

If Peertube is running under docker (and new plugin version install fails):

  • Uninstall all plugins
  • Remove all contents of docker volume folder /data/plugins mapped to the Peertube storage/plugins folder
  • Reinstall all plugins and the new Hive one

Focus on folder storage/plugins:

Peertube upgrade notes:

When upgrading to Peertube 3.4, we encountered an issue with the ui not updating.

We solved it by detaching the docker container from all persistence storage.

Peertube 4.1.1 special install flow:

There is a bug in the Peertube client tools: https://github.com/Chocobozzz/PeerTube/issues/4858

So we have to follow a special flow to install Peertube and build the client tools correctly (pull full repository, switch to 4.1.1 tag, and apply the fix as suggested from mantainer):

git clone  https://github.com/Chocobozzz/PeerTube
git checkout tags/v4.1.1
git cherry-pick 74220db

and from now you can follow normal flow:

configure config/production.yaml

yarn
yarn build
yarn setup:cli
Debug flag:

If you append the param fEE with value fEmH to querystring you enable special features in these pages:

  • Library: add buttons to manually bind Hive to a video (admins only)
  • About: show multi precision transfers, to monitor simulation rates

Utils

imageUtil.sh

You can use this small script to update Peertube native images using all the images you put in a source folder, using correct Peertube folders tree.

imageUtil.sh sourceFolder destPeertubeFolder backupFolder

Original images are saved into backupFolder. destPeertubeFolder is into peertube main instance, usually client/dist/assets


Apply Peertube Patches

Into the peertube-patches folder there are some patches needed for specific PeerTube version. To apply:

  • clone the desired PeerTube version
  • apply the patch inside the PeerTube folder with this command:
git apply x.y.z-patch-name.patch
  • build and run PeerTube as usual
Podcast improvements

You can use this patch with version 5.2.0 of Peertube to improve compatibility with PSP and ITunes rss podcast standards

5.2.0_podcast-fixes.patch
Podcast improvements and block Peertube rss for fixed channel id

You can use these patches with version 5.2.0 of Peertube to improve compatibility with PSP and ITunes rss podcast standards and block for a fixed video channel id (written inside patch) the generation of Peertube RSS

5.2.0_podcast-fixes-exclude-channel.patch
5.2.0_podcast-fixes-v2-exclude-channel.patch
5.2.0_podcast-fixes-v3-exclude-channel.patch
Podcast improvements and block Peertube rss with dynamic channel id

You can use this patch with version 5.2.0 of Peertube to improve compatibility with PSP and ITunes rss podcast standards and block rss for video channels with rss generation disabled into channel edit page

5.2.0_podcast-fixes-v4.patch
Podcast improvements and block Peertube rss with dynamic channel id

You can use this patch with version 5.2.0 of Peertube to improve compatibility with PSP and ITunes rss podcast standards and block rss for video channels with rss generation disabled into channel edit page (handle generator and detect if Hive-Tube is installed)

5.2.0_podcast-fixes-v5.patch
Podcast improvements and block Peertube rss with dynamic channel id (rss account fix)

You can use this patch with version 5.2.0 of Peertube to improve compatibility with PSP and ITunes rss podcast standards and block rss for video channels with rss generation disabled into channel edit page (handle generator and detect if Hive-Tube is installed)

5.2.0_podcast-fixes-v6.patch

You can use this patch with version 6.0.3 of Peertube to improve compatibility with PSP and ITunes rss podcast standards and block rss for video channels with rss generation disabled into channel edit page (handle generator and detect if Hive-Tube is installed)

6.0.3_podcast-fixes-v1.patch
Podcast improvements and magnet link, block Peertube rss with dynamic channel id

You can use this patch with version 6.0.3 of Peertube to improve compatibility with PSP and ITunes rss podcast standards and block rss for video channels with rss generation disabled into channel edit page (handle generator and detect if Hive-Tube is installed)

6.0.3_podcast-fixes-v2.patch
Podcast improvements and magnet link, block Peertube rss with dynamic channel id, fix explicit format

You can use this patch with version 6.0.3 of Peertube to improve compatibility with PSP and ITunes rss podcast standards and block rss for video channels with rss generation disabled into channel edit page (handle generator and detect if Hive-Tube is installed)

6.0.3_podcast-fixes-v3.patch
8.8.7

4 days ago

8.8.6

4 days ago

8.8.4

22 days ago

8.8.3

25 days ago

8.8.2

1 month ago

8.8.0

1 month ago

8.7.8

2 months ago

8.7.6

2 months ago

8.7.5

2 months ago

8.7.2

2 months ago

8.6.4

3 months ago

8.6.2

3 months ago

8.6.0

3 months ago

8.5.10

3 months ago

8.5.9

3 months ago

8.5.8

4 months ago

8.5.6

4 months ago

8.5.7

4 months ago

8.5.5

4 months ago

8.5.2

4 months ago

8.5.0

4 months ago

8.4.16

5 months ago

8.4.5

7 months ago

8.4.4

7 months ago

8.4.7

7 months ago

8.4.1

7 months ago

8.4.0

7 months ago

8.4.3

7 months ago

8.4.9

6 months ago

8.4.8

6 months ago

8.4.11

6 months ago

8.4.12

6 months ago

8.4.14

6 months ago

8.4.15

5 months ago

8.3.8

8 months ago

8.3.7

8 months ago

8.3.9

8 months ago

8.3.10

7 months ago

7.25.1

11 months ago

7.25.0

11 months ago

7.25.3

11 months ago

7.25.4

11 months ago

8.1.0

9 months ago

8.1.2

9 months ago

8.3.5

9 months ago

8.3.2

9 months ago

8.3.1

9 months ago

7.24.1

12 months ago

7.28.0

11 months ago

7.24.3

12 months ago

7.24.0

12 months ago

7.28.6

10 months ago

7.28.8

10 months ago

7.24.5

12 months ago

7.28.4

10 months ago

8.2.0

9 months ago

7.28.9

10 months ago

7.28.10

10 months ago

8.0.8

10 months ago

8.0.4

10 months ago

8.0.7

10 months ago

8.0.6

10 months ago

7.27.0

11 months ago

7.23.1

12 months ago

8.3.0

9 months ago

8.1.3

9 months ago

8.0.0

10 months ago

8.0.2

10 months ago

7.21.4

1 year ago

7.21.0

1 year ago

7.20.0

1 year ago

7.20.5

1 year ago

7.20.2

1 year ago

7.20.4

1 year ago

7.23.0

12 months ago

7.19.0

1 year ago

7.22.0

12 months ago

7.22.1

12 months ago

7.18.0

1 year ago

7.8.0

1 year ago

7.4.2

1 year ago

7.8.1

1 year ago

7.13.0

1 year ago

7.4.0

1 year ago

7.0.2

1 year ago

7.1.4

1 year ago

7.9.0

1 year ago

7.16.0

1 year ago

7.16.1

1 year ago

7.12.0

1 year ago

7.12.1

1 year ago

7.16.4

1 year ago

7.16.5

1 year ago

7.16.2

1 year ago

7.1.3

1 year ago

7.1.2

1 year ago

7.1.1

1 year ago

7.1.0

1 year ago

7.2.3

1 year ago

7.15.1

1 year ago

7.15.0

1 year ago

7.11.0

1 year ago

7.2.2

1 year ago

7.2.0

1 year ago

7.7.1

1 year ago

7.7.0

1 year ago

7.14.0

1 year ago

7.14.1

1 year ago

6.20.0

1 year ago

6.20.1

1 year ago

7.0.0

1 year ago

7.0.1

1 year ago

6.12.0

1 year ago

6.16.0

1 year ago

6.7.0

2 years ago

6.7.2

2 years ago

6.7.1

2 years ago

6.7.6

2 years ago

6.7.5

2 years ago

6.7.8

2 years ago

6.19.0

1 year ago

6.15.0

1 year ago

6.8.1

2 years ago

6.8.0

2 years ago

6.8.5

1 year ago

6.8.4

1 year ago

6.8.7

1 year ago

6.8.6

1 year ago

6.21.2

1 year ago

6.21.0

1 year ago

6.21.3

1 year ago

6.18.1

1 year ago

6.18.0

1 year ago

6.10.2

1 year ago

6.10.0

1 year ago

6.10.5

1 year ago

6.14.0

1 year ago

6.9.0

1 year ago

6.9.2

1 year ago

6.5.6

2 years ago

6.9.1

1 year ago

6.5.5

2 years ago

6.5.8

2 years ago

6.9.3

1 year ago

6.1.0

2 years ago

6.3.0

2 years ago

6.1.2

2 years ago

6.1.1

2 years ago

6.5.0

2 years ago

6.3.2

2 years ago

5.16.6

2 years ago

5.16.5

2 years ago

5.16.4

2 years ago

5.18.1

2 years ago

5.18.0

2 years ago

5.16.2

2 years ago

5.16.0

2 years ago

5.14.2

2 years ago

6.2.5

2 years ago

6.4.2

2 years ago

6.0.0

2 years ago

6.2.1

2 years ago

6.2.0

2 years ago

6.4.0

2 years ago

5.14.1

2 years ago

5.14.0

2 years ago

5.15.5

2 years ago

5.15.4

2 years ago

5.15.3

2 years ago

5.15.1

2 years ago

6.3.5

2 years ago

5.13.0

2 years ago

5.11.8

2 years ago

5.11.7

2 years ago

5.11.5

2 years ago

5.11.0

2 years ago

5.10.1

2 years ago

5.10.0

2 years ago

5.9.0

2 years ago

5.8.5

2 years ago

5.8.3

2 years ago

5.8.2

2 years ago

5.8.1

2 years ago

5.8.0

2 years ago

5.7.6

2 years ago

5.7.5

2 years ago

5.7.4

2 years ago

5.7.3

2 years ago

5.7.2

2 years ago

5.7.1

2 years ago

5.7.0

2 years ago

5.6.4

2 years ago

5.6.3

2 years ago

5.6.2

2 years ago

5.6.0

2 years ago

5.5.6

2 years ago

5.5.5

2 years ago

5.5.4

2 years ago

5.5.3

2 years ago

5.5.2

2 years ago

5.5.1

2 years ago

5.5.0

2 years ago

5.4.7

2 years ago

5.4.6

2 years ago

5.4.5

2 years ago

5.4.4

2 years ago

5.4.3

2 years ago