Skip to content

Commit

Permalink
feat: update sources
Browse files Browse the repository at this point in the history
  • Loading branch information
jawish committed Jun 29, 2023
1 parent 1dd1a4c commit 7638a2a
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 99 deletions.
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.gitignore export-ignore
.gitattributes export-ignore
.github export-ignore
.git export-ignore
47 changes: 47 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Kodi Addon-Submitter

on:
push:
tags:
- v*

jobs:
kodi-addon-submitter:
runs-on: ubuntu-latest
name: Kodi addon submitter
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Generate distribution zip and submit to official kodi repository
id: kodi-addon-submitter
uses: xbmc/action-kodi-addon-submitter@v1.3
with: # Replace all the below values
kodi-repository: repo-plugins
kodi-version: matrix
addon-id: plugin.video.maldivestv
kodi-matrix: false # Submit a Python 2/3 compatible addon to matrix branch in addition to the target branch
sub-directory: false
env: # Make sure you create the below secrets (GH_TOKEN and EMAIL)
GH_USERNAME: ${{ github.actor }}
GH_TOKEN: ${{secrets.GH_TOKEN}}
EMAIL: ${{secrets.EMAIL}}
- name: Create Github Release
id: create_release
uses: actions/create-release@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Addon zip to github release
id: upload-release-asset
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.kodi-addon-submitter.outputs.addon-zip }}
asset_name: ${{ steps.kodi-addon-submitter.outputs.addon-zip }}
asset_content_type: application/zip
67 changes: 4 additions & 63 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,63 +1,4 @@
# Created by .gitignore support plugin (hsz.mobi)
### Python template
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
venv/
venv2/
build/
develop-eggs/
dist/
downloads/
eggs/
#lib/
#lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# PyCharm project files
.idea/

*.zip
.vscode
*.pyo
*.pyc
.history
47 changes: 14 additions & 33 deletions addon.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
# Created on: 30.03.2018

import sys
from urllib import urlencode
from urlparse import parse_qsl
from urllib.parse import urlencode, parse_qsl
import xbmcgui
import xbmcplugin

Expand All @@ -16,41 +15,23 @@

VIDEOS = [
{'name': 'TVM',
'thumb': 'http://play.mv/stb/item/tvlive1/198.png',
'video': 'http://feed.play.mv/live/1000/10001/master.m3u8'},
'video': 'https://54.169.75.117:1935/live/livestream/playlist.m3u8'},
{'name': 'RaajjeTV',
'thumb': 'http://play.mv/stb/item/tv_live1/199.png',
'video': 'http://feed.play.mv/live/1000/10005/master.m3u8'},
{'name': 'Channel 13 HD',
'thumb': 'http://play.mv/stb/item/tv_live1/200.png',
'video': 'http://feed.play.mv/live/1000/10003/master.m3u8'},
'video': 'https://stream.raajje.mv/live/rtv_live/index.m3u8'},
{'name': 'Munnaaru',
'thumb': 'http://play.mv/stb/item/tvlive1/201.png',
'video': 'http://feed.play.mv/live/1002/10026/master.m3u8'},
'video': 'https://w1.viastreaming.net:1935/munnaar/live/playlist.m3u8'},
{'name': 'VTV',
'thumb': 'http://play.mv/stb/item/tv_live1/202.png',
'video': 'http://feed.play.mv/live/1000/10006/master.m3u8'},
'video': 'https://vtvstream.vnews.mv/vtvlive/vmedia/playlist.m3u8'},
{'name': 'YES',
'thumb': 'http://play.mv/stb/item/tv_live1/203.png',
'video': 'http://feed.play.mv/live/1000/10002/master.m3u8'},
{'name': 'MVtv HD',
'thumb': 'http://play.mv/stb/item/tvlive1/204.png',
'video': 'http://feed.play.mv/live/1006/10065/master.m3u8'},
{'name': 'SanguTV HD',
'thumb': 'http://play.mv/stb/item/tv_live1/213.png',
'video': 'http://feed.play.mv/live/1001/10012/master.m3u8'},
'video': 'https://w1.viastreaming.net:1935/yestv/live/playlist.m3u8'},
{'name': 'SunTV',
'thumb': 'http://play.mv/stb/item/tvlive1/233.png',
'video': 'http://feed.play.mv/live/1001/10017/master.m3u8'},
{'name': 'GO Plus HD',
'thumb': 'http://play.mv/stb/item/tvlive1/344.png',
'video': 'http://feed.play.mv/live/1007/10079/master.m3u8'},
{'name': 'PSM News HD',
'thumb': 'http://play.mv/stb/item/tvlive1/352.png',
'video': 'http://feed.play.mv/live/1006/10066/master.m3u8'},
{'name': 'Al Kaun HD',
'thumb': 'http://play.mv/stb/item/tvlive1/355.png',
'video': 'http://feed.play.mv/live/1005/10053/master.m3u8'}
'video': 'https://sstv.ssplay.mv/hls/sstv-live/index.m3u8'},
{'name': 'PSM News',
'video': 'https://ec2-54-254-194-192.ap-southeast-1.compute.amazonaws.com:1935/live/smil:newslive.smil/playlist.m3u8'},
{'name': 'Maldives TV',
'video': 'https://58bdd3c8ef31c.streamlock.net/live/smil:maldivestv.smil/playlist.m3u8'},
{'name': 'Majlis TV',
'video': 'https://fl1.viastreaming.net:1935/majlis/livestream/playlist.m3u8'}
]


Expand Down Expand Up @@ -100,7 +81,7 @@ def list_videos():
# Set graphics (thumbnail, fanart, banner, poster, landscape etc.) for the list item.
# Here we use the same image for all items for simplicity's sake.
# In a real-life plugin you need to set each image accordingly.
list_item.setArt({'thumb': video['thumb'], 'icon': video['thumb'], 'fanart': video['thumb']})
# list_item.setArt({'thumb': video['thumb'], 'icon': video['thumb'], 'fanart': video['thumb']})
# Set 'IsPlayable' property to 'true'.
# This is mandatory for playable items!
list_item.setProperty('IsPlayable', 'true')
Expand Down
7 changes: 4 additions & 3 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.maldivestv" version="1.0.0" name="Maldives TV" provider-name="Jawish Hameed">
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.maldivestv" version="1.1.0" name="Maldives TV" provider-name="Jawish Hameed">
<requires>
<import addon="xbmc.python" version="2.25.0"/>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.requests"/>
</requires>
<extension point="xbmc.python.pluginsource" library="addon.py">
<provides>video</provides>
Expand Down

0 comments on commit 7638a2a

Please sign in to comment.