Giter VIP home page Giter VIP logo

ytdl-index's Introduction

ytdl-index

Generates index.html's for your downloaded videos.

Installing

Clone repository and install requirements

git clone https://github.com/FelixKohlhas/ytdl-index
cd ytdl-index
pip3 install -r requirements.txt

Example

Download video with metadata and thumbnail

yt-dlp --write-info-json --no-clean-info-json --write-thumbnail https://www.youtube.com/watch?v=PkPSDOjhxwM

Generate index.html

./run.py .

More examples

Sort videos by date (descending)

./run.py --sort date .

Sort videos by title (ascending, natsort)

./run.py --sort +title --natsort .

Sort videos by playlist position (ascending)

./run.py --sort +index .

Show all videos, generate thumbnails, sort by mtime, show mtime and size

./run.py --show-all --gen-thumb --sort mtime --info mtime,size

Usage

usage: run.py [-h] [-s SORT] [-n] [-t TITLE] [-i INFO] [-p PAGE_INFO] [-d DATE_FORMAT] [-a] [-g] [-v] [directory ...]

Generate directory listing for files downloaded using youtube-dl / yt-dlp.

positional arguments:
  directory

optional arguments:
  -h, --help            show this help message and exit
  -s SORT, --sort SORT  comma separated list of fields to sort videos by (prefix with + to sort ascending)
  -n, --natsort         sort videos using natsort (useful for titles)
  -t TITLE, --title TITLE
                        page title
  -i INFO, --info INFO  comma separated list of fields to show below video title
  -p PAGE_INFO, --page-info PAGE_INFO
                        comma separated list of fields to show below main title (available: (v)ideos, (s)ize, (d)ate)
  -d DATE_FORMAT, --date-format DATE_FORMAT
                        date format to use
  -a, --show-all        show all videos (including ones without info json)
  -g, --gen-thumb       generate thumbnails for videos
  -v, --verbose

available fields: t = title, u = uploader, v = views, d = date, m = mtime, s = size, l = length, i = index, e = extension

yt-dlp flags

--write-info-json
--no-clean-info-json
--write-thumbnail

ytdl-index's People

Contributors

felixkohlhas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.