1.1.3 • Published 6 years ago

kodilist v1.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

kodilist

About

Kodilist scans your video library and automatically generates Kodi playlists based on artist names, sources, and tags embedded in filenames.

Usage

$ kodilist add directory ~/videos
Now tracking "~/videos"

$ kodilist add directory "/media/bird footage"
Now tracking "/media/bird footage"

$ kodilist add tag rainbow lorikeet
Now tracking "rainbow lorikeet"

$ kodilist add source youtube
Now tracking "youtube"

$ kodilist add person Frances Hamerstrom
Now tracking "frances hamerstrom"

$ kodilist generate
✔️ sources
✔️ tags
✔️ people
✔️ this week's files
✔️ alphabetical files

$ tree ~/.kodi/userdata/playlists/video
├── new.m3u
├── people
│   └── frances hamerstrom.m3u
│   └── phoebe snetsinger.m3u
│   └── me.m3u
├── sources
│   └── youtube.m3u
│   └── vimeo.m3u
│   └── bbc.m3u
└── tags
│   └── rainbow lorikeet.m3u
│   └── prairie chicken.m3u
└── alphabetical
│   └── a.m3u
│   └── b.m3u
│   └── c.m3u
    ...

Installation

$ npm i -g kodilist

Commands

  • generate
  • add
    • source <singular source name, spaces supported>
    • person <single name, spaces supported>
    • tag <single tag, spaces supported>
    • directory
  • delete
    • source <singular source name, spaces supported>
    • person <single name, spaces supported>
    • tag <single tag, spaces supported>
    • directory
  • list
    • people
    • sources
    • tags
    • directories
    • ignores
  • ignore <space-separated list of glob-enabled patterns, eg *.mkv *.gif 2015-*>

The values passed to each command are case-insensitive, one value per execution, and inclusive of spaces. That is, kodilist add tag bird of paradise will track a single tag, "bird of paradise".

A tag, person name, or source name will match a file if it occurs anywhere within the filename itself (but not within preceding parts of the path), regardless of case and regardless of whether it is interrupted by dots. That is, the tag "rainbow lorikeet" will match the file 2017.JAN.15.RAINBOW.LORIKEET.mp4 but not ~/rainbow lorikeet/1.mp4.

License

Copyright 2016 Ryan Plant

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

1.1.3

6 years ago

1.1.2

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago