==========================================================
  Mera Status - CPanel (Python) Deploy
  Fast setup - no code edits needed
==========================================================

This zip contains a Flask/Python web app (status video editor +
AI search + cover generator). Upload, extract, setup Python App,
and it goes live. That's it.

----------------------------------------------------------
STEP 1 - UPLOAD & EXTRACT
----------------------------------------------------------
In cPanel > File Manager:
  - Open public_html
  - Upload deploy_cpanel.zip
  - Right-click the zip > Extract
  You should now have:  public_html/deploy_cpanel/
     (server.py, passenger_wsgi.py, app/, content/, media/, uploads/)

----------------------------------------------------------
STEP 2 - CREATE PYTHON APP (cPanel)
----------------------------------------------------------
In cPanel find "Setup Python App" (or "Python App Manager"):
  - Click "Create Application"
  - Python version: 3.9 or 3.10 or 3.11 (any 3.x)
  - Application root:  /deploy_cpanel
  - Application URL:   https://yourdomain.com  (or your subdomain/path)
  - Application startup file:  passenger_wsgi.py
  - Application entry point:   application
  - Click Create

----------------------------------------------------------
STEP 3 - INSTALL DEPENDENCIES
----------------------------------------------------------
In cPanel (same Python section) open the "Shell"/Terminal for the app,
or use the Python App settings "Install dependencies":
  pip install -r requirements.txt
   (installs flask and requests)

If there is no shell, the Python App will still work because
Flask is often pre-installed, but install requests if missing.

----------------------------------------------------------
STEP 4 - RESTART & DONE
----------------------------------------------------------
Click "Restart" (or Reload) on the Python App.
Open your URL → the app is live.

----------------------------------------------------------
OPTIONAL - FFMPEG (Trim + Photos-to-Reel)
----------------------------------------------------------
Trim and Reel need ffmpeg/ffprobe on PATH.
- cPanel "Terminal":  run  which ffmpeg
- Or install via cPanel > Setup Python App > Install  "ffmpeg-python"? 
  NO - you need the actual ffmpeg binary.
- If ffmpeg is in a non-PATH location, set the PATH in
  passenger_wsgi.py or the Python App environment:  PATH=/opt/ffmpeg/bin:$PATH
- Without ffmpeg, browsing/searching/downloading still works;
  only Trim and Reel are disabled.

----------------------------------------------------------
ADMIN PANEL
----------------------------------------------------------
Open:  https://yourdomain.com/admin
(No password set by default - add one in server.py if needed.)

----------------------------------------------------------
NOTES
----------------------------------------------------------
- Content images/videos are hosted on Crafto's servers and
  served through our built-in /api/proxy (CORS-safe). No media
  files are bundled.
- The app expects Chinese-origin? No - it's fully original code.
- For shared hosting make sure the Python App points at the
  deploy_cpanel folder (with server.py inside). Do NOT point it
  at a subdirectory like /deploy_cpanel/app.
