Skip to main content

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.
  -d, --defaults          Change the default configurations and exit.
  -r, --remove-serial     Remove the serial numbers from the local files upto
                          the given character
  --help                  Show this message and exit.

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

Release files for ytsort 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ytsort 1.4.0
File Size Uploaded
ytsort-1.4.0.tar.gz 13.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ytsort 1.4.0
File Interpreter ABI Platform
ytsort-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.9 kB

Release files / ytsort-1.4.0.tar.gz

Download URL ytsort-1.4.0.tar.gz
Size 13.7 kB
Tags Source
SHA-256 checksum
How to use checksums
63e5b54b53f206a38c82c099f6bdf68b6a065e96a11b896009cd668750d6ea8c
BLAKE2b-256 checksum
How to use checksums
a46ddcdf4f340a22263345c6632ac191338d8134fb42d9dbb6111976e755d357
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.0 CPython/3.10.6 Linux/6.6.6-76060606-generic

Release files / ytsort-1.4.0-py3-none-any.whl

Download URL ytsort-1.4.0-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec1fa2784f9605995a962c00cda58802aa5fe53111a0d83e5e9407aac91574a9
BLAKE2b-256 checksum
How to use checksums
7592d5888db7ed4ec558ce3e25c381a7c514ee040045414fd341e7c8fc25319a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.0 CPython/3.10.6 Linux/6.6.6-76060606-generic

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page