Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

tritonmedia/twilight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twilight Sparkle with books

twilight

Twilight organizes your media so you don't have too.

Role

We use Twilight to auto-magickally organize our new media. Twilight exposes a HTTP service on :8001 with the following endpoints:

  • POST /v1/media - create new media
  • PUT /v1/media/:id - add new files to this media

An example flow:

  1. POST /v1/media with body:
  {
    id: <trello card id>,
    files: 10,
    name: 'MLP',
    type: 'tv'
  }
  1. PUT /v1/media/<trello card id> 10 times with each file multipart/form-data with file as file or with all 10 under files
  2. Media is sorted and placed in the correct directoy, and renamed based on rule-sets.

Configuration

Coming soon...

License

MIT