This project is a Django application made with Python 3.8 or higher, and it has the purpose of assembling M3u8 lists for IPTV transmission.
In this application you have: Movies, Series and Closed TV Channels.
For any devices, install your preferred: https://github.com/iptv-org/awesome-iptv
-- To install this project, you need to have Python (>= 3.6) installed on your machine, GIT, Google Chrome and and the Anaconda tool.
- Go to the Anaconda Website and choose a Python 3.x graphical installer (A) or a Python 2.x graphical installer (B). If you aren't sure which Python version you want to install, choose Python 3. Do not choose both.
- Locate your download and double click it.
- Install Anaconda
- This is an important part of the installation process. Please check the box to add into PATH.
Clone the project:
git clone https://github.com/caiomarinhodev/megafilmes.git
then go into the project root and run:
pip install -r requirements.txt
to be able to install the project dependencies.
In your terminal run:
python manage.py makemigrations
and
python manage.py migrate
and create an admin user for login into platform.
python manage.py createsuperuser
To use the tool you need discover your IP local. P.S.: to find your local IP, open another terminal and run code below, and see your Local IPV4.
ipconfig
- On terminal and run:
python manage.py runserver <your_local_ip>:80
- Open other terminal, into project root, with your created enviroment and run:
python manage.py runcrons
After having the server running and the update CRON, to access the list, access your preferred browser (we recommend Chrome, as our application uses chromedriver to get the links from a reliable source.): http://<your_local_ip>/lista.m3u8
or
http://<your_local_ip>/lista2.m3u8
CRON will update the channel list (there are 105 closed TV channels), and this process takes around 25 minutes. CRON runs the update process every 4 hours, because channels have an expiration time of 8 hours.
To solve this problem I created a CRON that runs every 4 hours and updates all 105 channels. Remember to always run the server ("runserver") to access the m3u8 list and run CRON ("runcrons") with the server on. Both must be running on different terminals.
any problem? send mail to me: [email protected]