Spaces:
Paused
Paused
Update run.py
Browse files
run.py
CHANGED
|
@@ -2,6 +2,8 @@ from flask import Flask, jsonify, abort
|
|
| 2 |
from filmpertutti import filmpertutti
|
| 3 |
from streamingcommunity import streaming_community
|
| 4 |
from tantifilm import tantifilm
|
|
|
|
|
|
|
| 5 |
import json
|
| 6 |
import config
|
| 7 |
import logging
|
|
@@ -13,6 +15,8 @@ STREAMINGCOMMUNITY = config.STREAMINGCOMMUNITY
|
|
| 13 |
MYSTERIUS = config.MYSTERIUS
|
| 14 |
TUTTIFILM = config.TUTTIFILM
|
| 15 |
TF_DOMAIN = config.TF_DOMAIN
|
|
|
|
|
|
|
| 16 |
HOST = config.HOST
|
| 17 |
PORT = int(config.PORT)
|
| 18 |
HF = config.HF
|
|
@@ -184,6 +188,12 @@ def addon_stream(type, id):
|
|
| 184 |
streams['streams'].append({'title': f'{HF}StreamingCommunity 720p Max', 'url': url_720_streaming_community})
|
| 185 |
else:
|
| 186 |
streams['streams'].append({'title': f'{HF}StreamingCommunity 720p Max', 'url': url_streaming_community})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 187 |
if FILMPERTUTTI == "1":
|
| 188 |
url_filmpertutti = filmpertutti(id)
|
| 189 |
if url_filmpertutti is not None:
|
|
@@ -194,6 +204,10 @@ def addon_stream(type, id):
|
|
| 194 |
if not isinstance(url_tuttifilm, str):
|
| 195 |
for title, url in url_tuttifilm.items():
|
| 196 |
streams['streams'].append({'title': f'{HF}Tantifilm {title}', 'url': url, 'behaviorHints': {'proxyHeaders': {"request": {"Referer": "https://d000d.com/"}}, 'notWebReady': True}})
|
|
|
|
|
|
|
|
|
|
|
|
|
| 197 |
else:
|
| 198 |
streams['streams'].append({'title': f'{HF}Tantifilm', 'url': url_tuttifilm, 'behaviorHints': {'proxyHeaders': {"request": {"Referer": "https://d000d.com/"}}, 'notWebReady': True}})
|
| 199 |
if not streams['streams']:
|
|
|
|
| 2 |
from filmpertutti import filmpertutti
|
| 3 |
from streamingcommunity import streaming_community
|
| 4 |
from tantifilm import tantifilm
|
| 5 |
+
from lordchannel import lordchannel
|
| 6 |
+
from streamingwatch import streamingwatch
|
| 7 |
import json
|
| 8 |
import config
|
| 9 |
import logging
|
|
|
|
| 15 |
MYSTERIUS = config.MYSTERIUS
|
| 16 |
TUTTIFILM = config.TUTTIFILM
|
| 17 |
TF_DOMAIN = config.TF_DOMAIN
|
| 18 |
+
LORDCHANNEL = config.LORDCHANNEL
|
| 19 |
+
STREAMINGWATCH= config.STREAMINGWATCH
|
| 20 |
HOST = config.HOST
|
| 21 |
PORT = int(config.PORT)
|
| 22 |
HF = config.HF
|
|
|
|
| 188 |
streams['streams'].append({'title': f'{HF}StreamingCommunity 720p Max', 'url': url_720_streaming_community})
|
| 189 |
else:
|
| 190 |
streams['streams'].append({'title': f'{HF}StreamingCommunity 720p Max', 'url': url_streaming_community})
|
| 191 |
+
if LORDCHANNEL == "1":
|
| 192 |
+
url_lordchannel,quality_lordchannel =lordchannel(id)
|
| 193 |
+
if quality_lordchannel == "FULL HD" and url_lordchannel != None:
|
| 194 |
+
streams['streams'].append({'title': f'{HF}LordChannel 1080p', 'url': url_lordchannel})
|
| 195 |
+
elif url_lordchannel != None:
|
| 196 |
+
streams['streams'].append({'title': f'{HF}LordChannel 720p', 'url': url_lordchannel})
|
| 197 |
if FILMPERTUTTI == "1":
|
| 198 |
url_filmpertutti = filmpertutti(id)
|
| 199 |
if url_filmpertutti is not None:
|
|
|
|
| 204 |
if not isinstance(url_tuttifilm, str):
|
| 205 |
for title, url in url_tuttifilm.items():
|
| 206 |
streams['streams'].append({'title': f'{HF}Tantifilm {title}', 'url': url, 'behaviorHints': {'proxyHeaders': {"request": {"Referer": "https://d000d.com/"}}, 'notWebReady': True}})
|
| 207 |
+
if STREAMINGWATCH == "1":
|
| 208 |
+
url_streamingwatch = streamingwatch(id)
|
| 209 |
+
if url_streamingwatch:
|
| 210 |
+
streams['streams'].append({'title': 'StreamingWatch 720p', 'url': url_streamingwatch}
|
| 211 |
else:
|
| 212 |
streams['streams'].append({'title': f'{HF}Tantifilm', 'url': url_tuttifilm, 'behaviorHints': {'proxyHeaders': {"request": {"Referer": "https://d000d.com/"}}, 'notWebReady': True}})
|
| 213 |
if not streams['streams']:
|