Selfhosted Youtube player which removes tracking and ads

FrankG c3474eddb5 new CSS 6 лет назад
LICENSE c588a824af Initial commit 6 лет назад
README.md 32189307dd 1.0 6 лет назад
dm.php be7e9fe019 v2.0 6 лет назад
footer.php be7e9fe019 v2.0 6 лет назад
header.php be7e9fe019 v2.0 6 лет назад
holaplayer.js f419ac6671 Added new player with better design and more options 6 лет назад
index.php be7e9fe019 v2.0 6 лет назад
robots.txt 32189307dd 1.0 6 лет назад
videolist.php be7e9fe019 v2.0 6 лет назад
videoplayer.php be7e9fe019 v2.0 6 лет назад
youpster.css c3474eddb5 new CSS 6 лет назад
ytclass.php 32189307dd 1.0 6 лет назад

README.md

Youpster

Youpster is a small Youtube player you can host on your own server. It loads media files directly from Youtube what is often required for copyright reasons but it uses a native HTML5 media object which doesn't track you that much and does not display any ads. Of course it can't prevent Google from getting your IP address and your useragent but they DO NOT get your clicks, mouse moves or other data which is not sent by a basic HTTPS request. It works similar to https://invidio.us but you can only watch videos or listen to music videos here which the owner of the YouPlay site added manually to the database. You'll see in the names of the MySQL columns that it's originally meant for music videos but it will work with every other video, too.

Requirements

  • Any webserver software
  • PHP 7 recommended but 5 should work, too
  • MySQL database
  • PHP cURL extension

Installation

Upload it, add your MySQL connection to the config variables in index.php and run the following SQL commands. This will create the YouPlay table and add some example music videos.

-- Adminer 4.3.1 MySQL dump

SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';

CREATE TABLE `youplay` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `artist` varchar(255) NOT NULL,
  `title` varchar(255) NOT NULL,
  `watchid` varchar(20) NOT NULL,
  `genre` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=5 DEFAULT CHARSET=latin1;

INSERT INTO `youplay` (`id`, `artist`, `title`, `watchid`) VALUES
(1,	'Helene Fischer',	'Atemlos durch die Nacht',	'2czABFw6RnE',	'Pop'),
(2,	'Helene Fischer',	'Hallelujah',	'I234Q56Ra9w',	'Pop'),
(3,	'Helene Fischer',	'The Power Of Love',	'F3lUpJGSnw4',	'Pop'),
(4,	'Helene Fischer',	'I will always love you',	'wjHRqE0FXSE',	'Pop');

-- 2018-12-10 08:00

Credits

harisnaeemofficial/YouTube-Downloader-4-multiformats