-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed/added display of progressbar when watching IPTV broadcasts in…
… any possible players (4097, 5001, 5002) - Completely changed and added picons of audio tracks - Added display of the name of the IPTV provider by analogy with the name of the DVB provider - The settings for the name definition of the name of IPTV providers and audio tracks are placed in a separate file (utils.py). Now anyone can add the ones they need there by analogy with the existing ones.
- Loading branch information
1 parent
cce50ca
commit ce2c6e7
Showing
32 changed files
with
156 additions
and
36 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
# -*- coding: utf-8 -*-# | ||
|
||
def getIPTVProvider(url): | ||
''' | ||
This function determines the name of the IPTV provider by | ||
the unique value of the substring in the broadcast url-link | ||
:param url: the url from serviceref | ||
:param type: url | ||
:ret: IPTV provider name | ||
:ret type: String limited to 12 characters | ||
''' | ||
providers = { | ||
'tvshka.net' : 'ShuraTV', # shura.tv | ||
'1ott.' : '1ott', # my.1ott.net | ||
'only4.tv' : '1Cent', # 1cent.tv | ||
'satbiling.com': 'Satbilling', # iptv.satbilling.com | ||
'.crd-s.' : 'CdruTV', # crdru.net | ||
'/live/s.' : 'Shara.club', # shara.club | ||
'/live/u.' : 'IPStream', # ipstream.one | ||
'/iptv/' : 'iLook', # edem.tv (ilook.tv) | ||
'.ottg.' : 'Glanz', # glanz (ottg.tv) | ||
'.fox-tv.' : 'Fox-TV', # fox-tv.fun | ||
'.iptv.' : 'IPTV.Online', # iptv.online | ||
'.mymagic.' : 'MyMagic', # mymagic.tv | ||
'tvfor.pro' : 'Shara-TV', # shara-tv.org | ||
'uz-tv' : 'UZ-TV', # uz-tv.net | ||
'.bcumedia.pro': 'BCUMedia', # bcumedia.pro | ||
'.antifriz.' : 'Antifriz', # antifriz.tx | ||
'app-greatiptv': 'GreatIPTV', # app.greatiptv.cc | ||
'.zala.' : 'ZalaBY', # zala.by | ||
'178.124.183.': 'ZalaBY', # zala.by | ||
'zabava' : 'Zabava', # zabava.tv | ||
'cdn.ngenix.net': 'Zabava', # zabava.tv | ||
'.spr24.' : 'Sharavoz', # sharavoz.tv | ||
'.onlineott.' : 'TvoeTV', # tvoetv.in.ua | ||
'85.143.191.' : 'NTTV', # ttv.run | ||
'myott.top' : 'Ottclub', # ottclub.cc | ||
'.itv.' : 'ITV', # itv.live | ||
'cdn.wf' : 'ITV', # itv.live | ||
'iptvx.tv' : 'Cbilling', # cbilling.me | ||
'tv.team' : 'TVTeam', # tv.team | ||
'troya.tv' : 'TVTeam', # tv.team | ||
'1usd.tv' : 'TVTeam', # tv.team | ||
'cdntv.online': 'VIPLime', # viplime.fun | ||
'.tvdosug.' : 'TVDosug', # tvdosug.tv | ||
'/channel/' : 'Zmedia', # ZMedia Proxy vps https://t.me/wink_news/107 | ||
'/rmtv/' : 'Zmedia', # ZMedia Proxy local | ||
'undefined' : '', | ||
} | ||
|
||
return providers[next(iter([x for x in list(providers.keys()) if x in url]), 'undefined')][:12] | ||
|
||
|
||
def getAudio(description): | ||
''' | ||
Returns the picon file for the corresponding audio track | ||
:param description: audio track description | ||
:param type: str | ||
:ret: picon file for audiotrack | ||
:ret type: str | ||
''' | ||
if "Dolby Digital" in description: | ||
return "audio/dolbydigital.png" | ||
elif any(x in description for x in ["AC3+", "ac3+"]): | ||
return "audio/AC3+.png" | ||
elif any(x in description for x in ["AC3", "AC-3", "ac3", "ac-3"]): | ||
return "audio/AC3.png" | ||
elif "DTS-HD" in description: | ||
return "audio/DTS-HD.png" | ||
elif "DTS" in description: | ||
return "audio/DTS.png" | ||
elif "AAC-HE" in description: | ||
return "audio/AAC-HE.png" | ||
elif "AAC" in description: | ||
return "audio/AAC.png" | ||
elif "MPEG-1" in description: | ||
return "audio/MP1.png" | ||
elif "MPEG-4" in description: | ||
return "audio/MPEG4.png" | ||
elif "MPEG" in description: | ||
return "audio/MPEG.png" | ||
else: | ||
return "audio/picon_default.png" |