Skip to content

Automatically download Youtube video and encode it to mp3 for Google Music Manager to upload after you favorite it.

Notifications You must be signed in to change notification settings

hSATAC/youtube-favorite-to-google-music

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Youtube Favorite to Google Music

Introduction

This is a tool to check your youtube favorite list and grab your recent items, turn them into mp3s so your Google Music Manager could upload them.

The script will get your youtube favorite list through gdata api v2, you could set a cronjob by yourself or using whenever to configure crontab easily.

Requirements

The video-grabbing and encoding part is base on youtube-dl. And ffmpeg is required.

parseconfig is required. Install via gem install parseconfig

You'll need to gem install whenever if you want to set a crontab based on config/scheduler/rb

Usage

Run

  • cp config/yt2gm.conf.sample config/y2tgm.conf or other place you like.
  • Modify config file, set your youtube account.
  • run ./yt2gm.rb [config_file]

If you didn't specify the config_file, it will load config/yt2gm.conf

Setup Crontab

  • Modify config/scheduler.rb based on your path.
  • run whenever -i to update your crontab.

And don't forget to configure your Google Music Manager to watch the directory where mp3 stores.

Disclaimer

NOTICE: It's for my own usage now, need more refactoring. But the idea is very simple, you could take a look if you're interested.

About

Automatically download Youtube video and encode it to mp3 for Google Music Manager to upload after you favorite it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published