Git Product home page Git Product logo

mpv-separator's Introduction

mpv-separator

Interactively copy of move the videos you wanna keep from a given playlist

Description

This script helps you organize your playlists by giving you the hability to copy or move the current video being played to a default or user defined folder.

Usage

There are two shortcut keys to this script, which follow below.

Ctrl + D (Duplicate file)

In the video screen, press Ctrl + D to duplicate the video and put it inside the separator folder.

Ctrl + M (Move file)

In the video screen, press Ctrl + M to move the video to the separator folder.

Configuration

By default, when a video is copyied or moved, the script will create a folder which is located where the mpv was ran. The folder will be called separator and will be followed by a period and six random ASCII characters which range between [a-zA-Z0-9]. Therefore, the folder's name will follow the pattern given by separator.XXXXXX.

Example

cd /home/user
mpv ./videos/my_videos/cartoons/funny_cartoon.mp4

<< Ctrl + D >>

In the scenario above, the separator folder will be created in /home/user, which is the current working directory, and the file funny_cartoon.mp4 will be duplicated inside of it.

Defining a custom location

In order to define a custom location, the ambient variable MPV_SEPARATOR_OUTPUT must be changed to reflect the place you want the separator folder to be created.

Example

export MPV_SEPARATOR_OUTPUT="/home/user/.videos"

cd /home/user
mpv great_video.mp4

<< Ctrl + D >>

In this case, the separator folder will be created inside the directory /home/user/.videos, as it was defined by the ambient variable.

mpv-separator's People

Contributors

pvpscript 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.