Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions resources/lib/constants.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from codequick.utils import urljoin_partial
import os
import xbmc
import xbmcvfs
import xbmcaddon

ADDON = xbmcaddon.Addon()
Expand All @@ -13,12 +13,12 @@
PLAY_URL = "plugin://plugin.video.jiotv/resources/lib/main/play/?"
PLAY_EX_URL = "plugin://plugin.video.jiotv/resources/lib/main/play_ex/?_pickle_="
FEATURED_SRC = "https://tv.media.jio.com/apis/v1.6/getdata/featurednew?start=0&limit=30&langId=6"
EXTRA_CHANNELS = os.path.join(xbmc.translatePath(
EXTRA_CHANNELS = os.path.join(xbmcvfs.translatePath(
ADDON.getAddonInfo("path")), "resources", "extra", "channels.json")
CHANNELS_SRC = "http://jiotv.data.cdn.jio.com/apis/v1.3/getMobileChannelList/get/?os=android&devicetype=phone&version=6.0.5"
CHANNELS_SRC = "http://jiotv.data.cdn.jio.com/apis/v1.3/getMobileChannelList/get/?os=android&devicetype=phone&version=7.0.5"
GET_CHANNEL_URL = "https://tv.media.jio.com/apis/v1.4/getchannelurl/getchannelurl?langId=6&userLanguages=All"
CATCHUP_SRC = "http://jiotv.data.cdn.jio.com/apis/v1.3/getepg/get?offset={0}&channel_id={1}&langId=6"
M3U_SRC = os.path.join(xbmc.translatePath(
M3U_SRC = os.path.join(xbmcvfs.translatePath(
ADDON.getAddonInfo("profile")), "playlist.m3u")
M3U_CHANNEL = "\n#EXTINF:0 tvg-id=\"{tvg_id}\" tvg-name=\"{channel_name}\" group-title=\"{group_title}\" tvg-chno=\"{tvg_chno}\" tvg-logo=\"{tvg_logo}\"{catchup},{channel_name}\n{play_url}"
EPG_SRC = "https://kodi.botallen.com/tv/epg.xml"
Expand Down
3 changes: 2 additions & 1 deletion resources/lib/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

# xbmc imports
from xbmcaddon import Addon
from xbmc import executebuiltin, translatePath
from xbmc import executebuiltin
from xbmcvfs import translatePath
from xbmcgui import ListItem, Dialog, DialogProgress

# codequick imports
Expand Down