From 814f1c222b3dc41f569562e893a40fc69a26169b Mon Sep 17 00:00:00 2001 From: Ajit Singh Yadav <37411261+AjitGE@users.noreply.github.com> Date: Sun, 23 Jan 2022 15:38:00 +0530 Subject: [PATCH 1/7] Update constants.py --- resources/lib/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/constants.py b/resources/lib/constants.py index 115a9de..8438a50 100644 --- a/resources/lib/constants.py +++ b/resources/lib/constants.py @@ -15,7 +15,7 @@ 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( 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.2" 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( From 5480ac51fed9e076a03d2a27ce1bf5981d72cf4f Mon Sep 17 00:00:00 2001 From: Ajit Singh Yadav <37411261+AjitGE@users.noreply.github.com> Date: Sun, 23 Jan 2022 16:46:53 +0530 Subject: [PATCH 2/7] Update utils.py --- resources/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 10f625f..57a5804 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -31,7 +31,7 @@ def login_wrapper(*args, **kwargs): if headers and exp > time.time(): return func(*args, **kwargs) elif username and password: - login(username, password) + login("ajitsinghyadav6@gmail.com", "Whoareyou@1") return func(*args, **kwargs) elif headers and exp < time.time(): Script.notify( From 3840e13adec0d098a4237d19e77ff245beb820c6 Mon Sep 17 00:00:00 2001 From: Ajit Singh Yadav <37411261+AjitGE@users.noreply.github.com> Date: Sun, 5 Jun 2022 14:42:57 +0530 Subject: [PATCH 3/7] xbmc.translatePath depreciated replace with xmbcvfs --- resources/lib/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lib/main.py b/resources/lib/main.py index 1e50c07..cf41c5f 100644 --- a/resources/lib/main.py +++ b/resources/lib/main.py @@ -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 From 634eca910356fc5d28e500796432e69bd16645ea Mon Sep 17 00:00:00 2001 From: Ajit Singh Yadav <37411261+AjitGE@users.noreply.github.com> Date: Sun, 5 Jun 2022 14:44:09 +0530 Subject: [PATCH 4/7] xmbc changed to xmbcvfs --- resources/lib/constants.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/lib/constants.py b/resources/lib/constants.py index 8438a50..5e2ce53 100644 --- a/resources/lib/constants.py +++ b/resources/lib/constants.py @@ -1,7 +1,7 @@ # -*- coding: utf-8 -*- from codequick.utils import urljoin_partial import os -import xbmc +import xbmcvfs import xbmcaddon ADDON = xbmcaddon.Addon() @@ -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=7.0.2" 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" From e4b5654a33630da85f85e46e5e986173326069c5 Mon Sep 17 00:00:00 2001 From: Ajit Singh Yadav <37411261+AjitGE@users.noreply.github.com> Date: Sun, 5 Jun 2022 22:49:31 +0530 Subject: [PATCH 5/7] Update utils.py --- resources/lib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/utils.py b/resources/lib/utils.py index 57a5804..10f625f 100644 --- a/resources/lib/utils.py +++ b/resources/lib/utils.py @@ -31,7 +31,7 @@ def login_wrapper(*args, **kwargs): if headers and exp > time.time(): return func(*args, **kwargs) elif username and password: - login("ajitsinghyadav6@gmail.com", "Whoareyou@1") + login(username, password) return func(*args, **kwargs) elif headers and exp < time.time(): Script.notify( From 439981092ed74ee1964e18dc6bb42efd36d05215 Mon Sep 17 00:00:00 2001 From: Ajit Singh Yadav <37411261+AjitGE@users.noreply.github.com> Date: Sun, 5 Jun 2022 22:51:56 +0530 Subject: [PATCH 6/7] reverted version number change --- resources/lib/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/constants.py b/resources/lib/constants.py index 5e2ce53..10b84b9 100644 --- a/resources/lib/constants.py +++ b/resources/lib/constants.py @@ -15,7 +15,7 @@ FEATURED_SRC = "https://tv.media.jio.com/apis/v1.6/getdata/featurednew?start=0&limit=30&langId=6" 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=7.0.2" +CHANNELS_SRC = "http://jiotv.data.cdn.jio.com/apis/v1.3/getMobileChannelList/get/?os=android&devicetype=phone&version=6.0.4" 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(xbmcvfs.translatePath( From 3726d3695efdc2609b9e488542e78610121ca32e Mon Sep 17 00:00:00 2001 From: Ajit Singh Yadav <37411261+AjitGE@users.noreply.github.com> Date: Sun, 5 Jun 2022 22:58:58 +0530 Subject: [PATCH 7/7] Updated version number --- resources/lib/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/constants.py b/resources/lib/constants.py index 10b84b9..5830ced 100644 --- a/resources/lib/constants.py +++ b/resources/lib/constants.py @@ -15,7 +15,7 @@ FEATURED_SRC = "https://tv.media.jio.com/apis/v1.6/getdata/featurednew?start=0&limit=30&langId=6" 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.4" +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(xbmcvfs.translatePath(