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.2.2.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

ytsort-1.2.2-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ytsort-1.2.2.tar.gz
  • Upload date:
  • Size: 12.5 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.2.2.tar.gz
Algorithm Hash digest
SHA256 9e2062996618d3150c651540af4000ded6eb017c5ca25b59b6ce2f6f43b05a84
MD5 ee80fb64da0bf68748838959a8ce5c6a
BLAKE2b-256 480d819d95f2eec35f9f895162eb36b74c255a2cc584d9e0be1e268c0425d2dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ytsort-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 13.9 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.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a1ec6b7e24ec77d940634f9fd8718e0039e49c85a7d24738d1f377c00cdeef2e
MD5 e0fc66957592d16ab7bc9ca5e53152c0
BLAKE2b-256 771a7df926374d11ccf9709282935fddb754ec9f326e71b2e1a60ac418a8b2a2

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