Skip to content

AmmarrBN/dracinviewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🎬 Dracin Viewer

Platform Streaming Drama China Gratis
Tonton Drama Cina Secara Gratis Di Dracin Viewer


✨ Fitur Utama

Fitur Deskripsi
πŸ” Pencarian Cepat Cari ribuan drama China secara instan
πŸ“Ί Streaming HD Kualitas video tinggi dengan minimal buffering
⏭️ Auto Next Episode Marathon tanpa henti, lanjut otomatis ke episode berikutnya
πŸ“± Responsive Design Optimal di desktop, tablet, dan mobile
πŸ” Autentikasi Sistem login dengan verifikasi email
πŸ“š Riwayat Tontonan Masih Error

πŸ› οΈ Tech Stack

  • Backend: Flask 3.0.0 + SQLAlchemy
  • Database: PostgreSQL (Production) / SQLite (Development)
  • Frontend: HTML + CSS + JavaScript
  • Deployment: Heroku + Gunicorn
  • Email Service: Gmail SMTP
  • Video Player: HLS.js untuk streaming HLS

πŸ“‘ Data Source

⚠️ Disclaimer: Aplikasi ini menggunakan unofficial API dari ReelShort untuk mengambil data drama dan video.

Teknik yang digunakan:

  • API Sniffing/Scraping dari endpoint ReelShort
  • Reverse Engineering terhadap API internal ReelShort
  • Dynamic Routing untuk mengakses episode dan video URL

Endpoint yang diakses:

https://www.reelshort.com/_next/data/acf624d/id/search.json
https://www.reelshort.com/_next/data/acf624d/id/movie/{title}-{id}.json
https://www.reelshort.com/_next/data/acf624d/id/episodes/episode-{num}-{title}-{id}-{chapter}.json

πŸš€ Quick Start

Prerequisites

  • Python 3.11+
  • Git
  • Heroku CLI (untuk deployment)

Local Development

# 1. Clone repository
git clone https://github.com/username/dracin-viewer.git
cd dracin-viewer

# 2. Buat virtual environment
python -m venv venv

# 3. Aktifkan environment
# Windows:
venv\Scripts\activate
# Mac/Linux:
source venv/bin/activate

# 4. Install dependencies
pip install -r requirements.txt

# 5. Setup environment variables
# Buat file .env di root folder, isi:
# SECRET_KEY=your-secret-key
# MAIL_USERNAME=your-email@gmail.com
# MAIL_PASSWORD=your-app-password

# 6. Jalankan aplikasi
python app.py

Akses di http://localhost:5000


🌐 Deployment Heroku

# 1. Login Heroku
heroku login

# 2. Buat aplikasi
heroku create nama-aplikasi-lu

# 3. Tambahkan PostgreSQL
heroku addons:create heroku-postgresql:mini

# 4. Set environment variables
heroku config:set SECRET_KEY="$(openssl rand -base64 32)"
heroku config:set MAIL_USERNAME=your-email@gmail.com
heroku config:set MAIL_PASSWORD=your-app-password

# 5. Deploy
git push heroku main

# 6. Buka aplikasi
heroku open

πŸ”§ Environment Variables

Variable Deskripsi Wajib
SECRET_KEY Kunci enkripsi session βœ…
DATABASE_URL URL database PostgreSQL βœ… (Heroku otomatis)
MAIL_USERNAME Email Gmail untuk verifikasi βœ…
MAIL_PASSWORD App Password Gmail βœ…
MAIL_SERVER SMTP server (default: smtp.gmail.com) ❌
MAIL_PORT Port SMTP (default: 587) ❌
MAIL_USE_TLS Enable TLS (default: True) ❌

πŸ“ Project Structure

dracinviewer/
β”œβ”€β”€ app.py                 # Main application & API handlers
β”œβ”€β”€ config.py              # Configuration classes
β”œβ”€β”€ requirements.txt       # Python dependencies
β”œβ”€β”€ Procfile              # Heroku process configuration
β”œβ”€β”€ runtime.txt           # Python version specification
β”œβ”€β”€ README.md             # This file
β”œβ”€β”€ templates/            # HTML Templates (Jinja2)
β”‚   β”œβ”€β”€ base.html         # Base layout
β”‚   β”œβ”€β”€ index.html        # Homepage & search
β”‚   β”œβ”€β”€ login.html        # Login page
β”‚   β”œβ”€β”€ register.html     # Registration
β”‚   β”œβ”€β”€ verify_email.html # Email verification
β”‚   β”œβ”€β”€ profile.html      # User profile
β”‚   β”œβ”€β”€ episodes.html     # Episode list
β”‚   β”œβ”€β”€ watch.html        # Video player
β”‚   β”œβ”€β”€ about.html        # About page
β”‚   └── faq.html          # FAQ page
└── static/               # Static assets (CSS, JS, images)

🎯 API Endpoints

Endpoint Method Deskripsi
/ GET Homepage
/search POST Cari drama
/episodes/<book_id> GET Daftar episode
/watch/<book_id>/<ep> GET Halaman nonton
/api/episodes/<book_id> GET API daftar episode (JSON)
/api/video/<book_id>/<ep> GET API video URL (JSON)
/register GET/POST Registrasi user
/login GET/POST Login user
/logout GET Logout
/profile GET Profil user
/resend-code POST Kirim ulang kode verifikasi


For Your Information

Aplikasi ini dibuat untuk tujuan menonton video Drama secara gratis

  • Data Source: Menggunakan unofficial API dari ReelShort
  • Copyright: Semua konten video milik ReelShort dan pemilik sah
  • Usage: Gunakan dengan bijak dan bertanggung jawab
  • Liability: Developer tidak bertanggung jawab atas penyalahgunaan

🀝 Contributing

  1. Fork repository
  2. New Branch
  3. Commit repo
  4. Push Branch
  5. Pull Request

πŸ“ License

Distributed under the MIT License.


πŸ‘¨β€πŸ’» Author

AmmarBN


Made with ❀️ in Indonesia

About

Reelshort API, Tonton Drama Secara Gratis

Topics

Resources

License

Stars

5 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors