Skip to content

Commit

Permalink
Upload Files
Browse files Browse the repository at this point in the history
  • Loading branch information
henry-richard7 committed Oct 8, 2021
1 parent e83b271 commit baeb0a4
Show file tree
Hide file tree
Showing 19 changed files with 386 additions and 21 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: python
matrix:
include:
- python: "2.6"
- python: "2.7"
- python: "2.7.10"
- python: "2.7.11"
allow_failures:
- python: "3.2"
- python: "3.3"
- python: "3.4"
- python: "3.5"
- python: "nightly"

# command to install dependencies
install:
- pip install python-dateutil pytest
# command to run tests
script: py.test -v

21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Kodi Voot Addon
This Kodi addon allows you to watch Movies and TV Shows from Voot OTT platform without Voot Account.

# My Kodi Repo
Vist Here to get more information about my kodi repo https://henry-richard.ml/Kodi/

# Screenshots


# My Youtube Channel
[![](https://img.shields.io/badge/Subscribe-red?style=for-the-badge&logo=YouTube)](https://www.youtube.com/channel/UCVGasc5jr45eZUpZNHvbtWQ)


# My Telegram Channel
[![](https://img.shields.io/badge/Telegram-Join%20Now-blue?style=for-the-badge&logo=Telegram)](https://t.me/cracked4free)

## Donations
If you like my projects then consider making a small donation by clicking below button ^_^
<br/>
[![](https://img.shields.io/badge/Donate-Paypal-blue?style=for-the-badge&logo=paypal)](https://www.paypal.com/paypalme/henryrics)

# Copyrights © [Henry Richard J](https://github.com/henry-richard7)
#### Star the Repo in case you liked it :)
Binary file added Screenshots/Voot 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/Voot 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Screenshots/Voot 3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 31 additions & 0 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.henry.vootstreamer" name="Voot Streamer" version="1.0" provider-name="Henry Richard">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.routing" version="0.2.0"/>
<import addon="script.module.simplejson" version="3.3.0"/>
<import addon="script.module.codequick" version="0.9.10"/>
<import addon="script.module.inputstreamhelper" version="0.5.2"/>

</requires>
<extension point="xbmc.python.pluginsource" library="main.py">
<provides>video</provides>
</extension>
<extension point="xbmc.addon.metadata">
<summary lang="en_GB">Watch Voot without login.</summary>
<description lang="en_GB"></description>
<language></language>
<platform>all</platform>
<license>MIT</license>
<forum></forum>
<website>henry-richard.ml</website>
<email></email>
<source></source>
<news></news>
<disclaimer></disclaimer>
<assets>
<icon>resources/icon.png</icon>
<fanart>resources/fanart.jpg</fanart>
</assets>
</extension>
</addon>
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf-8 -*-

from resources.lib import plugin
if __name__ == "__main__":
plugin.run()
Empty file added resources/__init__.py
Empty file.
Binary file added resources/fanart.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions resources/language/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This folder will be the home of your translations
27 changes: 27 additions & 0 deletions resources/language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Kodi Media Center language file
# Addon Name: Voot Streamer
# Addon id: plugin.henry.vootstreamer
# Addon Provider: Henry Richard
msgid ""
msgstr ""
"Project-Id-Version: XBMC Addons\n"
"Report-Msgid-Bugs-To: alanwww1@xbmc.org\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Kodi Translation Team\n"
"Language-Team: English (http://www.transifex.com/projects/p/xbmc-addons/language/en/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: en\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#This is a comment

msgctxt "#32000"
msgid "Example"
msgstr ""

msgctxt "#32001"
msgid "Debug"
msgstr ""
Empty file added resources/lib/__init__.py
Empty file.
43 changes: 43 additions & 0 deletions resources/lib/kodilogging.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# -*- coding: utf-8 -*-

from __future__ import unicode_literals
from resources.lib.kodiutils import get_setting_as_bool

import logging
import xbmc
import xbmcaddon


class KodiLogHandler(logging.StreamHandler):

def __init__(self):
logging.StreamHandler.__init__(self)
addon_id = xbmcaddon.Addon().getAddonInfo('id')
prefix = b"[%s] " % addon_id
formatter = logging.Formatter(prefix + b'%(name)s: %(message)s')
self.setFormatter(formatter)

def emit(self, record):
levels = {
logging.CRITICAL: xbmc.LOGFATAL,
logging.ERROR: xbmc.LOGERROR,
logging.WARNING: xbmc.LOGWARNING,
logging.INFO: xbmc.LOGINFO,
logging.DEBUG: xbmc.LOGDEBUG,
logging.NOTSET: xbmc.LOGNONE,
}
if get_setting_as_bool('debug'):
try:
xbmc.log(self.format(record), levels[record.levelno])
except UnicodeEncodeError:
xbmc.log(self.format(record).encode(
'utf-8', 'ignore'), levels[record.levelno])

def flush(self):
pass


def config():
logger = logging.getLogger()
logger.addHandler(KodiLogHandler())
logger.setLevel(logging.DEBUG)
71 changes: 71 additions & 0 deletions resources/lib/kodiutils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# -*- coding: utf-8 -*-

import xbmc
import xbmcaddon
import xbmcgui
import sys
import logging
import json as json


# read settings
ADDON = xbmcaddon.Addon()

logger = logging.getLogger(__name__)


def notification(header, message, time=5000, icon=ADDON.getAddonInfo('icon'), sound=True):
xbmcgui.Dialog().notification(header, message, icon, time, sound)


def show_settings():
ADDON.openSettings()


def get_setting(setting):
return ADDON.getSetting(setting).strip().decode('utf-8')


def set_setting(setting, value):
ADDON.setSetting(setting, str(value))


def get_setting_as_bool(setting):
return get_setting(setting).lower() == "true"


def get_setting_as_float(setting):
try:
return float(get_setting(setting))
except ValueError:
return 0


def get_setting_as_int(setting):
try:
return int(get_setting_as_float(setting))
except ValueError:
return 0


def get_string(string_id):
return ADDON.getLocalizedString(string_id).encode('utf-8', 'ignore')


def kodi_json_request(params):
data = json.dumps(params)
request = xbmc.executeJSONRPC(data)

try:
response = json.loads(request)
except UnicodeDecodeError:
response = json.loads(request.decode('utf-8', 'ignore'))

try:
if 'result' in response:
return response['result']
return None
except KeyError:
logger.warn("[%s] %s" %
(params['method'], response['error']['message']))
return None
Loading

0 comments on commit baeb0a4

Please sign in to comment.