Arrange downloaded youtube videos
This program sorts the already downloaded youtube videos present in a folder by renaming them and adding serial number before their names.
Youtube Data API v3 is required. Get it from here
Recommended (To install pipx click here)
pipx install ytsort
pip install ytsort
Or upgrade by:
pipx upgrade ytsort
pip install --upgrade ytsort
Set Youtube API Key to the environment variable 'YOUTUBE_DATA_API_KEY' (for ease of use, but not required).
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.
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'
b) edit the
'api_key': <Your Youtube API key>,
In the source folder containing pyproject.toml
then cd into the folder containing youtube videos and execute:
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.