turk-ani-cli

2.0.0-beta.11 • Public • Published

Turk Ani CLI

A command-line interface for watching Turkish anime from turkanime.co with Discord Rich Presence integration.

Features

  • Search for anime by name
  • Select episodes to watch
  • Choose fansub groups
  • Stream directly to MPV player
  • Discord Rich Presence integration
  • Next episode functionality
  • Keyboard controls for playback
  • Watch history tracking
  • Resume playback from where you left off

Watch History

The application automatically tracks your watch history, allowing you to:

  • See a list of recently watched anime
  • Resume watching from where you left off
  • Delete your entire watch history when needed

Watch history is stored locally in ~/.tacli/watch-history.json. The application remembers:

  • Which anime you watched
  • Which episode you watched
  • Your exact playback position
  • Which fansub you selected

To resume watching, simply run the app without parameters and select "Watch History" from the menu. To delete your watch history, select "Delete Watch History" from the main menu.

Requirements

  • Node.js >= 18.0.0
  • MPV Player installed and in your PATH
  • Chrome/Chromium (for Selenium)

Installation

Global Installation (Recommended)

npm install -g turk-ani-cli

Local Installation

git clone https://github.com/Luxotick/turk-ani-cli.git
cd turk-ani-cli
npm install
npm run build

Usage

Global Installation

tacli "anime name"

Local Installation

npm start "anime name"

Keyboard Controls

While watching:

  • Space - Play/Pause
  • Arrow Right - Forward 5 seconds
  • Arrow Left - Backward 5 seconds
  • Arrow Up - Forward 60 seconds
  • Arrow Down - Backward 60 seconds
  • N - Next episode
  • Q - Quit

Project Structure

src/
├── core/           # Core application logic
├── services/       # Service modules
├── utils/          # Utility functions
└── index.ts        # Main entry point

Development

Building

npm run build

Running in Development Mode

npm start "anime name"

License

MIT

Author

Luxotick

About

This project was created for learning web-scraping and is my first TypeScript project. I used Selenium for collecting data from the website due to the complex structure of "turkanime.co". The project allows Turkish anime fans to easily stream content with a simple command-line interface.

image

"Are you sharing proof that you took videos without permission? :D"

Package Sidebar

Install

npm i turk-ani-cli

Weekly Downloads

17

Version

2.0.0-beta.11

License

MIT

Unpacked Size

194 kB

Total Files

17

Last publish

Collaborators

  • luxotick