Giter Club home page Giter Club logo

renaming-youtube-dl-videos's Introduction

rename-youtube-dl-videos.sh

Script used to organize your video library downloaded with youtube-dl and make it parseable by media centers.
It parses the metadata file (video_name.info.json) to rename the video as SxxEyy - video_name:

  • xx the year index (01 for the year this first channel's video was uploaded)
  • yy the video index (01 for the first video uploaded this year on the channel)

Each season is thus composed of all the videos released per year.

Prerequisites

  • jq
  • bash v4.0 minimum

Installation

  • Clone the repo
  • chmod +x rename_videos.sh
  • Execute the script in your Videos folder

Usage

When downloading videos with youtube-dl, the flag write-info-json is necessary.
The script rename_videos.sh then has to be executed in the video library folder. It will check each subdirectories for *.info.json files. When it finds some, it will extract all uploading dates with jq and rename the files given this information.

Contributing

Do not hesitate to create an issue to spark discussion or submit a PR if you see an improvement that needs to be made!

License

License: GPL v3

renaming-youtube-dl-videos's People

Contributors

mexx62 avatar

Watchers

James Cloos 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.