Code Monkey home page Code Monkey logo

y2t's Introduction

release

Y2T - Youtube to Torrents

Description

Youtube to Torrent est un outil python fonctionnant sous Linux permettant de créer un ou plusieurs fichiers torrents à partir d'une playlist youtube. L'objectif est de simplifier la création des fichiers nécessaires au partage de contenu musical et video.

Y2T permet de :

  • Analyser, filtrer et télécharger les vidéos d'une playlist
  • Ajouter les tags mp3 si le format le permet
  • Créer la présentation du torrent
  • Créer le fichier .nfo
  • Créer le fichier .torrent

Formats audio :

  • aac
  • flac
  • mp3
  • m4a
  • opus
  • vorbis
  • wav

Formats video :

  • avi
  • flv
  • mkv
  • mp4
  • ogg
  • webm

Prérequis

sudo apt-get install python-pip ffmpeg

Optionnel

Les paquets suivant peuvent ne pas être installé. Dans ce cas là, les fichiers correspondant ne seront pas générés.

  • mediainfo permet de créer les fichiers .nfo
  • transmission-cli permet de créer les fichiers .torrent

Il est recommandé de les installer avec la commande suivante :

sudo apt install mediainfo transmission-cli

Installation

Vous pouvez installer Y2T directement depuis le dépôt PyPi :

sudo pip install Y2T

Mise à jour

sudo pip install Y2T -U

Désinstallation

Pour désinstaller Y2T :

sudo pip uninstall Y2T

Utilisation

Le code ci-dessous permet de générer tous les fichiers nécessaires pour uploader la discographie de Ediv Music. Chaque album représente une année.

import Y2T
Discographie = Y2T.Upload("https://www.youtube.com/channel/UCBVwKRYmERFiIbheXEATDqw/videos",
		"Ediv Music",
		"https://www.pixenli.com/image/dE2gZ6EV",
		"Ediv Music try to bring you the best music out there, so they don't have to search SoundCloud, YouTube and Spotify channels 24/7. We seperate the men from the boys and the rubbish from the diamonds. ",
		"___TRACKER___")

Discographie.presentation.addVideo("https://www.youtube.com/watch?v=bNppHOYIgRE", "Every day should feel like valentinesday right? That's why this channel brings you all the new Tropical, Summer and Deep House every day.")
	
Discographie.upload("Collection 2015", "Collection 2015.jpg",2015)
Discographie.upload("Collection 2016", "Collection 2016.jpg",2016)
Discographie.upload("Collection 2017", "Collection 2017.jpg",2017)
Discographie.upload("Collection 2018", "Collection 2018.jpg",2018)

Vous pouvez aussi consulter les exemples fournis.

Contribution

Pour contribuer au projet, vous devez réaliser un fork du projet vers votre espace personnel. Vous pourrez alors faire un pull request en temps voulu. Merci de contacter @LucBerge pour plus d'informations sur les tâches à réaliser.

y2t's People

Contributors

lucberge avatar mrdomoo avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.