Skip to content

Commit

Permalink
Merge pull request #54 from krreet/feature/support-for-catchup
Browse files Browse the repository at this point in the history
OS-002 use channel api 1.3
  • Loading branch information
krreet authored Mar 7, 2023
2 parents 964fc85 + 6bf009d commit 5f81161
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions resources/lib/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,9 @@ def epg_setup(plugin):
pDialog = DialogProgress()
pDialog.create('Epg setup in progress')
# Download EPG XML file
# url = Settings.get_string("epgurl")
# if not url:
url = "https://cdn.jsdelivr.net/gh/mitthu786/tvepg/epg.xml.gz"
url = Settings.get_string("epgurl")
if not url or (len(url) < 5):
url = "https://cdn.jsdelivr.net/gh/mitthu786/tvepg/epg.xml.gz"
payload = {}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
Expand Down
1 change: 1 addition & 0 deletions resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<setting id="applyAllSettings0" type="action" label="Apply all settings" action="RunPlugin(plugin://plugin.video.jiotv/resources/lib/main/applyall/)" option="close"/>
</category>
<category label="Setup">
<setting label="EPG URL" type="text" id="epgurl" default="https://bit.ly/3kWSsl3"/>
<setting id="channelsrc" type="bool" label="Channel API 1.3" default="true"/>
<setting label="Setup EPG" type="action" id="epgsetup" action="RunPlugin(plugin://plugin.video.jiotv/resources/lib/main/epg_setup/)"/>
<setting label="Setup Simple IPTV PVR" type="action" id="pvrsetup" action="RunPlugin(plugin://plugin.video.jiotv/resources/lib/main/pvrsetup/)" option="close"/>
Expand Down

0 comments on commit 5f81161

Please sign in to comment.