Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcandioti committed Mar 24, 2020
0 parents commit e12bf04
Show file tree
Hide file tree
Showing 7 changed files with 116 additions and 0 deletions.
13 changes: 13 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Copyright 2020 Juan Pablo Candioti

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# 5RTV Addon

Addon para Kodi de 5RTV, el canal público de la Provincia de Santa Fe, Argentina.

## Licencia

__5RTV Addon__ está licenciado bajo [Apache License Version 2.0]

Copyright 2020 Juan Pablo Candioti

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
33 changes: 33 additions & 0 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.jpcandioti.5rtv"
version="1.0.0"
name="5RTV Addon"
provider-name="@JPCandioti">
<requires>
<import addon="xbmc.python" version="2.20.0"/>
<import addon="plugin.video.livestream" version="2017.4.3"/>
<import addon="plugin.video.youtube" version="5.4.0"/>
</requires>
<extension point="xbmc.python.pluginsource" library="main.py">
<provides>video</provides>
</extension>
<extension point="xbmc.addon.metadata">
<summary lang="en_GB">5RTV is the Public Channel of the Province of Santa Fe, Argentina.</summary>
<summary lang="es_AR">5RTV es el Canal Público de la Provincia de Santa Fe, Argentina.</summary>
<description lang="es_AR">5RTV es un canal de los llamados generalistas.
No es un canal temático, ni es un canal “cultural”.
No es tampoco una productora de contenidos.
Es un medio de comunicación público de alcance provincial.
Esto significa que su programación no está basada en documentales unitarios sino en ciclos de programas de interés general que abarcan distintos rubros como Noticias, Política, Información de Municipios, Salud, Tecnología, Deportes, Gastronomía, Tradiciones, Ruralidad, Música, Humor, Empresariales, Entretenimiento, Arte, Infantiles, Ficción, Dibujos Animados, Clips de Oficios, Efemérides, Break News locales, provinciales, nacionales e internacionales etcétera.
El tratamiento de estos temas se realiza siempre preservando los principios esenciales que motivaron la creación de este medio de comunicación: TERRITORIO, IDENTIDAD y PLURALISMO, con la CALIDAD como paradigma innegociable y la CREATIVIDAD como filosofía de trabajo.
Se apuesta al dinamismo que propone el formato de media hora para la mayoría de los programas con unas pocas excepciones que por su trascendencia lo justifiquen.
</description>
<assets>
<icon>icon.png</icon>
<fanart>fanart.jpg</fanart>
</assets>
<platform>all</platform>
<license>Apache License Version 2.0</license>
<source>https://github.com/jpcandioti/plugin.video.jpcandioti.5rtv</source>
</extension>
</addon>
7 changes: 7 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Change Log
All notable changes to this project will be documented in this file.

## [1.0.0] - 2020-04-23
### Added
- Permite ver la transmisión de 5RTV en vivo.
- Acceso a la lista de programas emitidos.
Binary file added 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 icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
# Module: plugin.video.jpcandioti.5rtv
# Author: Juan Pablo Candioti - @JPCandioti
# Site: https://github.com/jpcandioti/plugin.video.jpcandioti.5rtv
# Created on: 2020-03-21

import sys
import xbmcgui
import xbmcplugin

_handle = int(sys.argv[1])

LIVESTREAM_CHANNEL = '22636012'
LIVESTREAM_EVENT = '8242619'
YOUTUBE_CHANNEL = 'UCCvR_NFSKLkPM-7zbGV2Ckg'


def mainlist():
listing = []

list_item = xbmcgui.ListItem(label='En vivo', iconImage='DefaultTVShows.png')
url = 'plugin://plugin.video.livestream/?url=%2Flive_now&mode=104&event_id=' + LIVESTREAM_EVENT + '&owner_id=' + LIVESTREAM_CHANNEL + '&video_id=LIVE'
list_item.setProperty('IsPlayable', 'true')
list_item.setInfo(type='video', infoLabels={'title': '5RTV en vivo'})
is_folder = False
listing.append((url, list_item, is_folder))

list_item = xbmcgui.ListItem(label='Programas emitidos', iconImage='DefaultVideoPlaylists.png')
url = 'plugin://plugin.video.youtube/channel/' + YOUTUBE_CHANNEL + '/playlists/'
is_folder = True
listing.append((url, list_item, is_folder))

list_items(listing)


def list_items(listing):
xbmcplugin.addDirectoryItems(_handle, listing, len(listing))
xbmcplugin.endOfDirectory(_handle)


if __name__ == '__main__':
mainlist()

0 comments on commit e12bf04

Please sign in to comment.