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.
-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.
-
Download the source and install the dependencies by running:
git clone https://github.com/aqdasak/YTSort.git cd YTSort poetry install
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ytsort-1.4.0.tar.gz
.
File metadata
- Download URL: ytsort-1.4.0.tar.gz
- Upload date:
- Size: 13.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.0 CPython/3.10.6 Linux/6.6.6-76060606-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 63e5b54b53f206a38c82c099f6bdf68b6a065e96a11b896009cd668750d6ea8c |
|
MD5 | 6a7c671ffb5e87927f53295e2b9fc4f9 |
|
BLAKE2b-256 | a46ddcdf4f340a22263345c6632ac191338d8134fb42d9dbb6111976e755d357 |
File details
Details for the file ytsort-1.4.0-py3-none-any.whl
.
File metadata
- Download URL: ytsort-1.4.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.0 CPython/3.10.6 Linux/6.6.6-76060606-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec1fa2784f9605995a962c00cda58802aa5fe53111a0d83e5e9407aac91574a9 |
|
MD5 | c08624c6b31292a40f34ca0c40d4845e |
|
BLAKE2b-256 | 7592d5888db7ed4ec558ce3e25c381a7c514ee040045414fd341e7c8fc25319a |