Giter Site home page Giter Site logo

ver's Introduction

What is ver

This tool is headed to those like me that keep a large number of video downloads on one folder. As time passes, you get everyday harder and harder to find the file you want to play. This is one of such tasks than are more difficult with a GUI program. So this script is to be run from your terminal.

Before running it, take a look to the code. You have to modify DIR environment variable to the path where your files are deposited in. Then go to the last lines and change the player to your favourite. I use vlc, but you can easily change to whatever you see fit.

The scripts accepts as parameter the title, complete or partial, of the file you are looking for. If there is just one matching file, ver.sh will play it straight. If there are several files that match, the script will show you a text menu which is easily understandable. Once entered the number you want, it will go playing the selected file.

Since I created this script I save a lot of time. I hope it works for you too.

Options

  • -v : By default, ver hides files you've already watched. If you want ver to list all the files related to your search string, including this option will make all visible again.

  • -n : Say you want to list all files you haven't watched yet. This is your option. This option wont take into account any other arguments.

  • -r, --reset : Once you have seen all episodes of your favourite series, yoy might want to start watching it again from the begining. This option will remove your series from the database so you can see it all over again.

  • --reset-by n : Like previous option, but you can specify the number of episodes you want to go back resetting.

  • -m, --mreset : --reset and --reset-by can only be performed once for every time you launch ver. If you want to reset two or three series at a time, this is for you. After every --mreset write the title of series you want. if the title contains several words, use quotation marks.

  • -b, --back : It is a synonym of --reset-by 1.

  • -f, --forth : Marks as watched the following episode of the series.

  • --forth-by n : Marks as watched the following n episodes of the series.

  • -a, --forth-all : Marks all episodes of the series as watched.

  • ^[search string] : Since ver knows which episodes you've already seen from the series you are quering, this option (just adding an '^' before your search string) will make ver go straight forward to play the next episode for you, without pauses.

Examples

Note: all the examples are made with the query string "abc xyz". You can change if for the title you want.

Remember that all commands work like: ver [options] [query string]

ver abc xyz

Lists all files that match with "abc xyz". You will be able to choose the one you want "ver" to play for you. By default, already seen files won't show.

ver -v abc xyz

Lists all files that match "abc xyz", including the ones you already have played before.

ver -nv

Show all files that haven't been played so far.

ver --reset abc xyz

Reset "abc xyz" series to begin watching it from the begining all over again.

ver ^abc xyz

Play the next episode of series "abc xyz" (works with films too).

ver --mreset "abc xyz" -m "def tuv" --mreset abc

Reset the three series with just one command.

ver --forth abc xyz

Advances the pointer to the next chapter of "abc xyz".

ver --back abc xyz

Moves the pointer up to the previous chapter of the series "abc xyz"

Prerequisites

* sqlite
* Any video player

The future

I'm looking for a way to query imdb. It would be nice to search for actors, directors, etc. And it would be nice to add some options to see video details.

If you have problems using it or have ideas that could improve it, feel free to write me to mhysterio at gmail dot com How knows, you could even want to help me!

ver's People

Contributors

mhyst avatar

Watchers

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