Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[plugin.video.ert.gr] 1.0.0 #530

Merged
merged 1 commit into from Jun 10, 2016
Merged
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
674 changes: 674 additions & 0 deletions plugin.video.ert.gr/LICENSE.txt

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions plugin.video.ert.gr/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
======================
ERT Player addon for Kodi
======================

About
-----
ERT live and on-demand broadcasts

Kodi Addon for http://www.ert.gr

This addon is not published nor endorsed by ert.gr

This addon offers content available in Greece


Artwork
---------------------
Artwork sourced from public domains:

http://logos.wikia.com/wiki/ERT1?file=ERT1_2015.svg

http://logos.wikia.com/wiki/ERT2?file=ERT2_2015.svg

http://logos.wikia.com/wiki/ERT3?file=ERT3_2015.svg

http://www.iconarchive.com/show/windows-8-icons-by-icons8.html


License
-------
This software is released under the [GPL 3.0 license] [1].

[1]: http://www.gnu.org/licenses/gpl-3.0.html
81 changes: 81 additions & 0 deletions plugin.video.ert.gr/addon.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# -*- coding: utf-8 -*-

'''
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
'''


import urlparse,sys

from resources.lib import ert

params = dict(urlparse.parse_qsl(sys.argv[2].replace('?','')))


try:
action = params['action']
except:
action = None
try:
url = params['url']
except:
url = None



if action == None:
ert.indexer().root()

elif action == 'addBookmark':
from lamlib import bookmarks
bookmarks.add(url)

elif action == 'deleteBookmark':
from lamlib import bookmarks
bookmarks.delete(url)

elif action == 'channels':
ert.indexer().channels()

elif action == 'bookmarks':
ert.indexer().bookmarks()

elif action == 'tvshows':
ert.indexer().tvshows()

elif action == 'categories':
ert.indexer().categories()

elif action == 'episodes':
ert.indexer().episodes(url)

elif action == 'popular':
ert.indexer().popular()

elif action == 'news':
ert.indexer().news()

elif action == 'sports':
ert.indexer().sports()

elif action == 'weather':
ert.indexer().weather()

elif action == 'live':
ert.indexer().live(url)

elif action == 'play':
ert.indexer().play(url)


25 changes: 25 additions & 0 deletions plugin.video.ert.gr/addon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.ert.gr" version="1.0.0" name="ERT Player" provider-name="lambda">
<requires>
<import addon="xbmc.python" version="2.24.0" />
<import addon="script.module.lamlib" version="1.0.0" />
<import addon="plugin.video.youtube" version="5.2.1" optional="true" />
</requires>
<extension point="xbmc.python.pluginsource" library="addon.py">
<provides>video</provides>
</extension>
<extension point="xbmc.addon.metadata">
<summary lang="en">ERT Player addon for Kodi</summary>
<description lang="en">ERT live and on-demand broadcasts</description>
<description lang="el">Ζωνταντές και on demand υπηρεσίες της ΕΡΤ</description>
<disclaimer lang="en">This addon offers content available in Greece and is not published nor endorsed by ert.gr</disclaimer>
<disclaimer lang="el">Το πρόσθετο αυτό προσφέρει περιεχόμενο διαθέσιμο στην Ελλάδα και δεν έχει δημοσιευθεί ούτε εγκριθεί από το ert.gr</disclaimer>
<license>GNU GENERAL PUBLIC LICENSE. Version 3, 29 June 2007</license>
<source>https://github.com/lambda81/plugin.video.ert.gr</source>
<website>http://www.ert.gr/</website>
<platform>all</platform>
<language>el</language>
<forum></forum>
<email></email>
</extension>
</addon>
2 changes: 2 additions & 0 deletions plugin.video.ert.gr/changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[B]1.0.0[/B]
- Initial version
Binary file added plugin.video.ert.gr/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 plugin.video.ert.gr/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 plugin.video.ert.gr/resources/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

69 changes: 69 additions & 0 deletions plugin.video.ert.gr/resources/language/English/strings.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Kodi Media Center language file
# Addon Name: ERT Player
# Addon id: plugin.video.ert.gr
# Addon version: 1.0.0
# Addon Provider: lambda

msgid ""
msgstr ""


msgctxt "#30001"
msgid "Shows"
msgstr ""

msgctxt "#30002"
msgid "Categories"
msgstr ""

msgctxt "#30003"
msgid "Latest"
msgstr ""

msgctxt "#30004"
msgid "News"
msgstr ""

msgctxt "#30005"
msgid "Sports"
msgstr ""

msgctxt "#30006"
msgid "Weather"
msgstr ""

msgctxt "#30007"
msgid "Bookmarks"
msgstr ""

msgctxt "#30008"
msgid "Live"
msgstr ""

msgctxt "#30021"
msgid "ERT1"
msgstr ""

msgctxt "#30022"
msgid "ERT2"
msgstr ""

msgctxt "#30023"
msgid "ERT3"
msgstr ""

msgctxt "#30024"
msgid "ERT World"
msgstr ""

msgctxt "#30500"
msgid "Next..."
msgstr ""

msgctxt "#30501"
msgid "Add to bookmarks"
msgstr ""

msgctxt "#30502"
msgid "Remove from bookmarks"
msgstr ""
69 changes: 69 additions & 0 deletions plugin.video.ert.gr/resources/language/Greek/strings.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# Kodi Media Center language file
# Addon Name: ERT Player
# Addon id: plugin.video.ert.gr
# Addon version: 1.0.0
# Addon Provider: lambda

msgid ""
msgstr ""


msgctxt "#30001"
msgid "Shows"
msgstr "Εκπομπές"

msgctxt "#30002"
msgid "Categories"
msgstr "Κατηγορίες"

msgctxt "#30003"
msgid "Latest"
msgstr "Πρόσφατα"

msgctxt "#30004"
msgid "News"
msgstr "Ειδήσεις"

msgctxt "#30005"
msgid "Sports"
msgstr "Αθλητικά"

msgctxt "#30006"
msgid "Weather"
msgstr "Καιρός"

msgctxt "#30007"
msgid "Bookmarks"
msgstr "Σελιδοδείκτες"

msgctxt "#30008"
msgid "Live"
msgstr "Ζωντανά"

msgctxt "#30021"
msgid "ERT1"
msgstr "ΕΡΤ1"

msgctxt "#30022"
msgid "ERT2"
msgstr "ΕΡΤ2"

msgctxt "#30023"
msgid "ERT3"
msgstr "ΕΡΤ3"

msgctxt "#30024"
msgid "ERT World"
msgstr "ΕΡΤ World"

msgctxt "#30500"
msgid "Next..."
msgstr "Επόμενα..."

msgctxt "#30501"
msgid "Add to bookmarks"
msgstr "Προσθήκη στους σελιδοδείκτες"

msgctxt "#30502"
msgid "Remove from bookmarks"
msgstr "Αφαίρεση από σελιδοδείκτες"
1 change: 1 addition & 0 deletions plugin.video.ert.gr/resources/lib/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Loading