Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/profan/kodi-regexulon
Utility made to move/link and rename data so that kodi's TVDB parser can interpret it properly.
https://github.com/profan/kodi-regexulon
Last synced: 29 days ago
JSON representation
Utility made to move/link and rename data so that kodi's TVDB parser can interpret it properly.
- Host: GitHub
- URL: https://github.com/profan/kodi-regexulon
- Owner: profan
- License: mit
- Created: 2014-12-29T20:06:07.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-01-13T03:20:39.000Z (almost 10 years ago)
- Last Synced: 2024-04-24T04:43:16.422Z (8 months ago)
- Language: MoonScript
- Homepage:
- Size: 374 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
regexulon
=================================Utility made to reorganize media library of disorganized files into a collection which XBMC/Kodi's TVDB parser can read and make a library out of.
Lets you either move and rename the files, copy and rename, or accomplish it with symlinks/hardlinks.
Still needs a lot of work to be of use to anyone.
## Usage Area
Created for absolutely ordered episodes, already in their correct subfolders, attempts to filter out most of the noise which normally prevents the various scrapers from parsing the information.Currently catches cases where a show folder is named like `[stuff](things) show name (otherstuff)[woo]` with episodes inside which are similar, the last number in the filename is treated as the episode number and appended with `ep` to help the scraper.
Also uses a [bk-tree](https://github.com/profan/lua-bk-tree) loaded with information from a [list](https://raw.github.com/ScudLee/anime-lists/master/anime-list-full.xml) of names to match episodes towards the list of names, currently only handles anime, but intended to become more generic.
## Example
//Example run: ./regexulon --debug testdata target
Similarity Search Max Distance: -1 (-1 to set the max edit distance to length of string)
Skip: Show Name Folder? (Y/N): N
----------------------------
Original String: Show Name Folder
#1 Votoms Finder
#2 Rhea Gall Force
Enter number to pick (blank to keep original):
//listed by closest match, in this case it's contrived since it's a fake name.
//picking a number would make the target folder name the name of the number pickedRequirements
------------* Lua >= 5.1
* LuaRocks (not required, but makes it easier to get the dependencies)
* MoonScript
* LuaFileSystem
* lua\_cliargs
* bk-treeDownloading the source
------------
Either with git clone as below or by downloading a zipball of the [latest...](https://github.com/profan/kodi-regexulon/archive/master.zip)
git clone https://github.com/profan/kodi-regexulon.gitBuilding
------------luarocks make rockspecs/regexulon-1.0-1.rockspec
Usage
------------Usage: regexulon [OPTIONS] DIR TARGET [IGNORED]
ARGUMENTS:
DIR directory to scan (required)
TARGET target directory (required)
IGNORED ignored files/directories (optional, default: )
OPTIONS:
-a, --action=ACTION action to take: cp, mv, symlink, hardlink
(default: hardlink)
-n, --noprompt don't prompt when asking for new directory names,
pick closest option.
-e, --existing skip creating previously existing target
directories.
-d, --debug script will simulate execution.
-V, --version prints the program version
-v, --verbose verbose outputTODO
------------- [ ] ... write tests?
Credits
------------...
License
------------
See attached LICENSE file.