-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e12bf04
Showing
7 changed files
with
116 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |