GithubHelp home page GithubHelp logo

gzuri / animesorter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ntomic/animesorter

0.0 1.0 0.0 22 KB

Group anime files to folders based on a pattern: [GroupName] SeriesName - episodeNumber

Shell 0.87% Batchfile 0.87% Java 98.25%

animesorter's Introduction

AnimeSorter

Description

AnimeSorter script moves files that match a provided text pattern from a provided source directory to a provided target directory. It creates a new folder in the target directory for the groups of files moved based on their name (provided such folders don't already exist). For all the files moved and folders created, alongside with possible error messages, there will be a log entry written to a log file AnimeSorter.log

For example, if a source folder contains files:

[HorribleSubs] Hunter x Hunter - 130 [720p].mkv
[HorribleSubs] Hunter x Hunter - 131 [720p].mkv
[HorribleSubs] One Piece - 130 [720p].mkv
[HorribleSubs] Gintama - 100 [720p].mkv

All files will be moved to target directory. First two to the same folder named "Hunter x Hunter", and last two each to their own folder, "One Piece" and "Gintama". This assumes the given pattern *[HorribleSubs]*.mkv which matches all files that contain the [HorribleSubs] expression and are ending with .mkv

For more information on pattern matching, see the What Is a Glob lesson.

To specify the source directory, target directory, log file directory and a pattern to be matched, the config.properties file must be edited.

The file: config.properties initially contains the following four statements:

sourceProperty=C:/testing/source/
targetProperty=C:/testing/target/
logProperty=C:/testing/log/
patternProperty=*[HorribleSubs]*.mkv

Where sourceProperty contains the source directory path of the files, targetProperty contains target directory path, logProperty contains directory path where the log file will be created, and patternProperty contains the glob pattern to match against files in the source directory.

Change these properties by replacing the text after the '=' operator.

###Instructions

  1. Download and extract the .zip file from Release link

  2. Change the config.properties file

  3. Run .bat file for Windows or .sh file for Linux

animesorter's People

Contributors

ntomic avatar

Watchers

Goran Žuri 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.