Skip to main content

A commandline utility that enables the creation of albums from Youtube playlists.

Project description

ytam - YouTube Album Maker

A commandline utility that enables the creation of albums from Youtube playlists.

Getting Started

Prerequisites

To be able to use the mp4 to mp3 conversion feature, ffmpeg must be installed.

Debian:

sudo apt-get install ffmpeg

Windows:

  • Download ffmpeg binaries from here
  • Add the bin\ directory to Windows PATH

Installing

pip install ytam

Usage:

usage: ytam [-h] [-t TITLES] [-d DIRECTORY] [-s START] [-e END] [-A ALBUM]
            [-a ARTIST] [-i IMAGE] [-p PROXY] [-3 [MP3]] [-k [CHECK]]
            URL

positional arguments:
  URL                   the target URL of the playlist to download

optional arguments:
  -h, --help            show this help message and exit
  -t TITLES, --titles TITLES
                        a plain text file containing the desired titles and
                        artists of the songs in the playlist, each on a new
                        line. Format: title<@>artist
  -d DIRECTORY, --directory DIRECTORY
                        the download directory (defaults to 'music' - a
                        subdirectory of the current directory)
  -s START, --start START
                        from which position in the playlist to start
                        downloading (defaults to 1)
  -e END, --end END     position in the playlist of the last song to be
                        downloaded (defaults to last position in the playlist)
  -A ALBUM, --album ALBUM
                        the name of the album that the songs in the playlist
                        belongs to (defaults to playlist title)
  -a ARTIST, --artist ARTIST
                        the name of the artist that performed the songs in the
                        playlist (defaults to Unknown)
  -i IMAGE, --image IMAGE
                        the path to the image to be used as the album cover.
                        Only works when -A flag is set
  -p PROXY, --proxy PROXY
                        list of proxies to use. Must be enclosed in string
                        quotes with a space separating each proxy. Proxy
                        format: <protocol>-<proxy>
  -3 [MP3], --mp3 [MP3]
                        converts downloaded files to mp3 format and deletes
                        original mp4 file. Requires ffmpeg to be installed on
                        your machine
  -k [CHECK], --check [CHECK]
                        checks whether ytam is working as it should by trying
                        to download a pre-defined playlist and setting pre-
                        defined metadata. Setting this argument causes ytam to
                        ignore ALL others

Tests

TODO

Built With

  • pytube - Lightweight Python library for downloading videos
  • mutagen - For MP4 metadata tagging
  • argparse - For parsing commandline arguments
  • ffmpeg - For mp4 to mp3 conversion

Authors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ytam-0.4.5.tar.gz (47.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ytam-0.4.5-py3-none-any.whl (46.0 kB view details)

Uploaded Python 3

File details

Details for the file ytam-0.4.5.tar.gz.

File metadata

  • Download URL: ytam-0.4.5.tar.gz
  • Upload date:
  • Size: 47.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ytam-0.4.5.tar.gz
Algorithm Hash digest
SHA256 f77a999b172808a642c4364402a89e4c6def973ef9bb738d9ed465de2a91ef64
MD5 1b721373370e3a50fd1dff8c2638b3ed
BLAKE2b-256 5863e9f537310dac581819a7b010b8f8b9ff988fe5d7f4897354622be74ffebf

See more details on using hashes here.

File details

Details for the file ytam-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: ytam-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 46.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for ytam-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 83c5cf46cbd5843c9aafb2d9448cba5f9911d7205870302fefb513b8467d0e57
MD5 55d19ea4eecc07177559ddd633c5bf07
BLAKE2b-256 7b9ff6af1ad4d4ec9215925f32b9d0d1bf3b788c4eba162c2459f4b56046e41f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page