/TGFlix

A simple telegram indexer app build with python

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

tgflix

A simple python3 Web App which serve files from telegram groups in a better organised way.

Open Source Love GPLv3 license

Highlights

  • Fully controlable from telegram
  • Categorization based on Movie,Series,Genre,Season,Episodes,Quality,Size,etc...
  • View files on the browser.
  • Search through the movie list.
  • Download/Stream files.

Demo

Hosted demo site


Deploy Guide ( Local machine )

  • Clone to local machine.

    git clone https://github.com/xw108/TGFlix.git
    cd tgflix
  • Setup virtual environment.

    pip3 install virtualenv
    virtualenv venv
    source venv/bin/activate
  • Install dependencies.

    pip3 install -r requirements.txt
  • Environment Variables.

    Export the following enviornment variables

  • Setup Database

    psql $DATABASE_URL < scripts/migrate.sh
  • Run app.

    uvicorn app.main:app

Deploy Guide ( Heroku )

  • Fork this repo

  • Create new heroku app & deploy from the forked repo

  • Add postgres databse

  • Setup the enviornment variables

  • Setup Database

    Run this command

    psql $DATABASE_URL < scripts/migrate.sh
  • Re-deploy the app

Enviornmental Variables

Name Value Required
DEBUG Set to False in production
TG_APP_ID Telegram api_id obtained from https://my.telegram.org/apps.
TG_APP_HASH Telegram api_hash obtained from https://my.telegram.org/apps.
ADMIN_UID Userid of admin user.Can be obtained from msg details.
SESSION_STRING Can be obtained by running python3 scripts/gen_sess_string.py.
DATABASE_URL Postgres database url.
APP_NAME Name of your app.
APP_DESC Description for your app.
APP_URL public url of your app.
MAX_ITEMS_PER_PAGE Number of results to be shown per page (default 20).
MAX_SIMULTANIOUS_DOWNLOAD Number of parallel downloads allowed (default 20).
DOWNLOAD_ENABLED Disable or Enable download (default True).

Documentation

Check out this

Features of free version

  • Series/Movies
  • Parts/Seasons and Episodes
  • Genres
  • Quality & Size
  • Hide/Show
  • File download/stream
  • Telegram download
  • Auto Posting
  • User login
  • Ratings & Review
  • Staring
  • Web admin

Contributions

Contributions are welcome.

Contact

You can contact me @xw108.

License

Code released under The GNU General Public License.