Skip to main content

Arrange downloaded youtube videos

Project description

YTSort

This program sorts the already downloaded youtube videos present in a folder by renaming them and adding serial number before their names.

Requirements

Youtube Data API v3 is required. Get it from here

Install

Recommended (To install pipx click here)
pipx install ytsort
or
pip install ytsort

Or upgrade by:

pipx upgrade ytsort
or
pip install --upgrade ytsort

Usage

Set Youtube API Key to the environment variable 'YOUTUBE_DATA_API_KEY' (for ease of use, but not required).

Execute:

ytsort
Usage: ytsort [OPTIONS]

Options:

  -c, --character TEXT    Character after serial.
  -z, --zero              Add zero before serial numbers to make them all of
                          equal length.
  -x, --nozero            Don't add zero before serial numbers.
  --help                  Show this message and exit.

If -z & -x both are passed simultaneously then default from config.py will be used.

Install from source

Poetry is required. For installation click here.

  1. Download the source and install the dependencies by running:

    git clone https://github.com/aqdasak/YTSort.git
    cd YTSort
    poetry install
    
  2. Not required but for ease of use

    a) Set Youtube API Key to the environment variable 'YOUTUBE_DATA_API_KEY'

    or

    b) edit the config.py:

    'api_key': os.environ.get('YOUTUBE_DATA_API_KEY'), to 'api_key': <Your Youtube API key>,

Run

In the source folder containing pyproject.toml

poetry shell

then cd into the folder containing youtube videos and execute:

ytsort

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

ytsort-1.3.0.tar.gz (13.1 kB view details)

Uploaded Source

Built Distribution

ytsort-1.3.0-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

Details for the file ytsort-1.3.0.tar.gz.

File metadata

  • Download URL: ytsort-1.3.0.tar.gz
  • Upload date:
  • Size: 13.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.0 CPython/3.10.6 Linux/6.0.6-76060006-generic

File hashes

Hashes for ytsort-1.3.0.tar.gz
Algorithm Hash digest
SHA256 c02af28e0434c674aa85cb4c0073790d64b2210593a7871d7f8dac9dbe79a2a1
MD5 d209dae5aadcd8336cd02424f1fe5df6
BLAKE2b-256 9ec0bb7aaf84a10693628bceb5a3a75882f109cd033b2ab27906985045ff158b

See more details on using hashes here.

File details

Details for the file ytsort-1.3.0-py3-none-any.whl.

File metadata

  • Download URL: ytsort-1.3.0-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.0 CPython/3.10.6 Linux/6.0.6-76060006-generic

File hashes

Hashes for ytsort-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9c4bc2dea25f3f0739e6349212a19498dc22e8ca14f8de3fdd8b916a88283496
MD5 d1dcebf250675aed6afe9dc7d98268b6
BLAKE2b-256 984071bd07eaa453bc1fc0e14d0f15d521d9ae73252ad23f7351103c1d4752ab

See more details on using hashes here.

Supported by

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