a locally-hosted website to organize cartoons
- unzip the client to wherever you want
- edit cartoon_server.py and change the directories to your liking
- install ffmpeg via
sudo apt install ffmpeg(Linux), add the ffmpeg executable into your PATH (Windows) or use homebrewbrew install python3 ffmpeg(MacOS) - cd to the directory
- run the following commands
python3 -m venv ./venv
source ./venv/bin/activate
pip install -r requirements.txt
python3 cartoon_server.py
- open http://localhost:7777 in your browser
- create a shortcut with the following text (change the bash commands according to your client directory) Linux:
#!/bin/bash
source /home/users/sagan/Documents/cartoons/venv/bin/activate
python /home/users/sagan/Documents/cartoons/cartoon_server.py &
sleep 2
open http://localhost:7777/
wait
Windows:
@echo off
call C:\Users\sagan\Documents\cartoons\venv\Scripts\activate.bat
start "" http://localhost:7777/
python C:\Users\sagan\Documents\cartoons\cartoon_server.py
MacOS:
#!/bin/bash
source /Users/sagan/Documents/cartoons/venv/bin/activate
python /Users/sagan/Documents/cartoons/cartoon_server.py &
sleep 2
open http://localhost:7777/
wait
- for Linux or MacOS, run
chmod +x ./cartoon_cabinet.sh - simply access your client by running this script and save it wherever you want.
- TV shows use the txt method of displaying metadata, via
metadata.txtin the TV show's directory
TITLE: English Title
ENGLISH: Translated English Title
LOCATION: en
SOURCE: Service1
SOURCE2: Service2
SOURCEn: Servicen
DESCRIPTION: A brief description of the show content.
DATE: 20xx
- disclaimers are in
disclaimer.txtwith a one-line warning. Can add more viadisclaimer2.txtanddisclaimern.txtetc - seasons are divided into folders named
Season 1,Season 2andSeason netc - tv shows that have a
Specialsfolder will have their contents detected accordingly - similar to
Specials,English Screening Demofolders will be scanned if applicable - "multishows" are a cartoon with mini-series included (e.g. True and the Rainbow Kingdom has a main series with its own specials, and 5 other mini-series.
- podcasts are the only cartoons to have an audio format detection (unless they are videos and you put them in a Specials folder)
fanart.png, andthumb.pngwill be used for the cartoon's header and poster- for movies, the video immediately opens up. if an image exists with the same name as the video file, the client will use that on the movie menu (e.g.
Kung Fu Panda.mkvwill useKung Fu Panda.pngas the cover art) - subtitles are automatically detected either by the media container, or an SRT file
- the misc directories (MISC_DIRS) will list all of their contents at once, useful for a theatrical shorts or indie animation folder
- you can specify which directories will be excluded from being scanned, in SKIP_DIRS
- the host can be changed on the last line of the python script
app.run(host='0.0.0.0', port=7777, debug=False, threaded=True)