Coder Social home page Coder Social logo

badtoyz / playnext Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ttencate/playnext

1.0 1.0 0.0 136 KB

`playnext` is a small shell script that helps you watch series, listen to podcasts, or basically do anything to a series of files sequentially.

License: BSD 2-Clause "Simplified" License

Shell 100.00%

playnext's Introduction

playnext

playnext is a small shell script that helps you watch series, listen to podcasts, or basically do anything to a series of files sequentially.

The basic operation is as follows: if /some/directory contains media files, type

playnext /some/directory

and it will play the first media file in the directory and its subdirectories, using mplayer. The next time you run it, it plays the second one, and so on.

After you've once typed /some/directory in full, you can afterwards get by with just a substring of the final directory component, e.g. directory, dir or even d:

playnext dir

As long as this uniquely identifies a previously used directory, it will work.

Instead of mplayer, you can of course use any media player or other tool of your choice, using the -c option.

Caveats:

  • All files in the directory are assumed to be media files. If you stumble into the occasional unplayable file, just try again to get the next one.
  • Alphabetical ordering, both of files and of directories, is assumed to be the correct one.

playnext's memory lives in ~/.playnextrc, which is a simple plain text file containing, on each line, the file name of the last episode played.

Several options can be specified to ask playnext to do specific things. Run playnext -h for more information.

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.