Skip to content

Retrieves the german charts from mtv, downloads the corresponding videos from youtube and if wanted, extracts the audio with mplayer and lame (flv to mp3).

Dav1dde/chartdl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chartdl

Retrieves the german charts from mtv, downloads the corresponding videos from youtube (with youtube-dl) and if wanted, extracts the audio with mplayer and lame (flv to mp3).

Installation

Getting chartdl from Github:

git clone git://github.com/Dav1dde/chartdl.git
git submodule init
git submodule update

Starting chartdl:

python chartdl.py

Usage

usage: chartdl.py [-h] [--config FILE] [-c {hitlist}] [--database DATABASE]
                  [--music-dir MUSIC_DIR] [-a] [-n] [-q] [--username USERNAME]
                  [--password PASSWORD] [--youtube-dl YOUTUBE_DL]
                  [--mplayer MPLAYER] [--lame LAME] [--debug]

Retrieves the german charts from mtv downloads the corresponding videos from
youtube and if wanted, extracts the audio with mplayer and lame (flv to mp3).

optional arguments:
  -h, --help            show this help message and exit
  --config FILE         specify config file
  -c {hitlist}, --category {hitlist}
                        chart category
  --database DATABASE   path to music database, must be a valid sqlalchemy
                        database uri
  --music-dir MUSIC_DIR
                        path to save the downloaded videos/music
  -a, --audio-only      extracts the audio from the downloaded video and
                        encodes it with lame
  -n, --notify          enable the libnotify integration (requires pynotify)
  -q, --quiet           disable status information
  --username USERNAME   youtube username
  --password PASSWORD   youtube password
  --youtube-dl YOUTUBE_DL
                        path to youtube-dl executable
  --mplayer MPLAYER     path to mplayer executable
  --lame LAME           path to lame executable
  --debug               shows every error

Config

chartdl also supports config files, these are simple ini files with a section called chartdl:

[chartdl]
music_dir=./music/charts
database=sqlite:///music.db
category=hitlist
username=yt_username
password=yt_password
audio_only=true
notify=true

Possible keys for the ini are: database, music_dir, audio_only, notify, quiet, username, password, youtube_dl, mplayer, lame and debug

About

Retrieves the german charts from mtv, downloads the corresponding videos from youtube and if wanted, extracts the audio with mplayer and lame (flv to mp3).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages