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.3cat]v1.2.0 #4590

Closed
wants to merge 3 commits into from
Closed
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
File renamed without changes.
9 changes: 9 additions & 0 deletions plugin.video.3cat/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# plugin.video.3cat.cat
Kodi addon 3Cat.
Entertainment, news, sports, documentaries, etc from catalan television www.3cat.cat/3cat/

Complement per Kodi - XBMC.
Tota la programació de 3Cat.



15 changes: 15 additions & 0 deletions plugin.video.3cat/addon.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import xbmc
import sys
import urllib.parse
import xbmcplugin
from resources.lib.ui.UI import UI

addon_handle = int(sys.argv[1])
args = urllib.parse.parse_qs(sys.argv[2][1:])

xbmc.log("plugin.video.3cat - addon.py - args: " + str(args))

xbmcplugin.setContent(addon_handle, 'movies')

ui = UI(sys.argv[0], addon_handle, args)
ui.run(args.get('mode', None), args.get('url', ['']))
29 changes: 29 additions & 0 deletions plugin.video.3cat/addon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.3cat" name="3Cat" version="1.1.0" provider-name="mcr222">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.beautifulsoup4" version="4.12.2"/>
<import addon="script.module.future" version="1.0.0"/>
<import addon="script.module.inputstreamhelper" version="0.4.2"/>
</requires>
<extension point="xbmc.python.pluginsource" library="addon.py">
<provides>video</provides>
</extension>
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<summary lang="en_GB">Entertainment, news, documentaries, etc from catalan television 3cat.cat</summary>
<description lang="en_GB">Entertainment, news, documentaries, etc from catalan television 3cat.cat. </description>
<summary lang="ca_ES">Tots els programes de 3Cat.</summary>
<description lang="ca_ES">Tota la programació de 3Cat.</description>
<summary lang="es_ES">Toda la programación de 3Cat</summary>
<description lang="es_ES">Toda la programación de 3Cat</description>
<language>ca</language>
<license>GPL-2.0-or-later</license>
<source>https://github.com/mcr222/plugin.video.3cat</source>
<website>https://www.3cat.cat/3cat/</website>
<assets>
<icon>resources/icon.png</icon>
<fanart>resources/fanart.jpg</fanart>
</assets>
</extension>
</addon>
9 changes: 9 additions & 0 deletions plugin.video.3cat/changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
v1.2.0
- Added direct stream
- Fix naming

v1.1.0
-Play old mp4 format videos

v1.0.0
- First version
Binary file added plugin.video.3cat/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 plugin.video.3cat/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.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Kodi Media Center language file
# Addon Name: TV3cat
# Addon id: plugin.video.tv3.cat
# Addon id: plugin.video.3cat
# Addon Provider: jqandreu
msgid ""
msgstr ""
"Project-Id-Version: Kodi Addons\n"
"Report-Msgid-Bugs-To: https://github.com/jqandreu/plugin.video.tv3.cat/issues\n"
"Report-Msgid-Bugs-To: https://github.com/jqandreu/plugin.video.3cat/issues\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: jqandreu\n"
Expand Down Expand Up @@ -93,8 +93,8 @@ msgid "Canal 324"
msgstr "Canal 324"

msgctxt "#30020"
msgid "Canal 33-Super 3"
msgstr "Canal 33-Super 3"
msgid "SX3"
msgstr "SX3"

msgctxt "#30021"
msgid "Esport 3"
Expand All @@ -117,8 +117,8 @@ msgid "Canal 324 (International broadcast)"
msgstr "Canal 324 (Emissió internacional)"

msgctxt "#30026"
msgid "Canal 33-Super 3 (International broadcast)"
msgstr "Canal 33-Super 3 (Emissió internacional)"
msgid "SX3 (International broadcast)"
msgstr "SX3 (Emissió internacional)"

msgctxt "#30027"
msgid "Esport 3 (International broadcast)"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Kodi Media Center language file
# Addon Name: TV3cat
# Addon id: plugin.video.tv3.cat
# Addon id: plugin.video.3cat
# Addon Provider: jqandreu
msgid ""
msgstr ""
"Project-Id-Version: Kodi Addons\n"
"Report-Msgid-Bugs-To: https://github.com/jqandreu/plugin.video.tv3.cat/issues\n"
"Report-Msgid-Bugs-To: https://github.com/jqandreu/plugin.video.3cat/issues\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Connum\n"
Expand Down Expand Up @@ -93,8 +93,8 @@ msgid "Canal 324"
msgstr "Canal 324"

msgctxt "#30020"
msgid "Canal 33-Super 3"
msgstr "Canal 33-Super 3"
msgid "SX3"
msgstr "SX3"

msgctxt "#30021"
msgid "Esport 3"
Expand All @@ -117,8 +117,8 @@ msgid "Canal 324 (International broadcast)"
msgstr "Canal 324 (International)"

msgctxt "#30026"
msgid "Canal 33-Super 3 (International broadcast)"
msgstr "Canal 33-Super 3 (International)"
msgid "SX3 (International broadcast)"
msgstr "SX3 (International)"

msgctxt "#30027"
msgid "Esport 3 (International broadcast)"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Kodi Media Center language file
# Addon Name: TV3cat
# Addon id: plugin.video.tv3.cat
# Addon id: plugin.video.3cat
# Addon Provider: jqandreu
msgid ""
msgstr ""
"Project-Id-Version: Kodi Addons\n"
"Report-Msgid-Bugs-To: https://github.com/jqandreu/plugin.video.tv3.cat/issues\n"
"Report-Msgid-Bugs-To: https://github.com/jqandreu/plugin.video.3cat/issues\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: jqandreu\n"
Expand Down Expand Up @@ -93,8 +93,8 @@ msgid "Canal 324"
msgstr "Canal 324"

msgctxt "#30020"
msgid "Canal 33-Super 3"
msgstr "Canal 33-Super 3"
msgid "SX3"
msgstr "SX3"

msgctxt "#30021"
msgid "Esport 3"
Expand All @@ -117,8 +117,8 @@ msgid "Canal 324 (International broadcast)"
msgstr "Canal 324 (International broadcast)"

msgctxt "#30026"
msgid "Canal 33-Super 3 (International broadcast)"
msgstr "Canal 33-Super 3 (International broadcast)"
msgid "SX3 (International broadcast)"
msgstr "SX3 (International broadcast)"

msgctxt "#30027"
msgid "Esport 3 (International broadcast)"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Kodi Media Center language file
# Addon Name: TV3cat
# Addon id: plugin.video.tv3.cat
# Addon id: plugin.video.3cat
# Addon Provider: jqandreu
msgid ""
msgstr ""
"Project-Id-Version: Kodi Addons\n"
"Report-Msgid-Bugs-To: https://github.com/jqandreu/plugin.video.tv3.cat/issues\n"
"Report-Msgid-Bugs-To: https://github.com/jqandreu/plugin.video.3cat/issues\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: jqandreu\n"
Expand Down Expand Up @@ -93,8 +93,8 @@ msgid "Canal 324"
msgstr "Canal 324"

msgctxt "#30020"
msgid "Canal 33-Super 3"
msgstr "Canal 33-Super 3"
msgid "SX3"
msgstr "SX3"

msgctxt "#30021"
msgid "Esport 3"
Expand All @@ -117,8 +117,8 @@ msgid "Canal 324 (International broadcast)"
msgstr "Canal 324 (Emisión internacional)"

msgctxt "#30026"
msgid "Canal 33-Super 3 (International broadcast)"
msgstr "Canal 33-Super 3 (Emisión internacional)"
msgid "SX3 (International broadcast)"
msgstr "SX3 (Emisión internacional)"

msgctxt "#30027"
msgid "Esport 3 (International broadcast)"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Kodi Media Center language file
# Addon Name: TV3cat
# Addon id: plugin.video.tv3.cat
# Addon id: plugin.video.3cat
# Addon Provider: jqandreu
msgid ""
msgstr ""
"Project-Id-Version: Kodi Addons\n"
"Report-Msgid-Bugs-To: https://github.com/jqandreu/plugin.video.tv3.cat/issues\n"
"Report-Msgid-Bugs-To: https://github.com/jqandreu/plugin.video.3cat/issues\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: jrdfrncs\n"
Expand Down Expand Up @@ -93,8 +93,8 @@ msgid "Canal 324"
msgstr "Canal 324"

msgctxt "#30020"
msgid "Canal 33-Super 3"
msgstr "Canal 33-Super 3"
msgid "SX3"
msgstr "SX3"

msgctxt "#30021"
msgid "Esport 3"
Expand All @@ -117,8 +117,8 @@ msgid "Canal 324 (International broadcast)"
msgstr "Canal 324 (Utland)"

msgctxt "#30026"
msgid "Canal 33-Super 3 (International broadcast)"
msgstr "Canal 33-Super 3 (Utland)"
msgid "SX3 (International broadcast)"
msgstr "SX3 (Utland)"

msgctxt "#30027"
msgid "Esport 3 (International broadcast)"
Expand Down
16 changes: 16 additions & 0 deletions plugin.video.3cat/resources/lib/tv3cat/Home.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
from resources.lib.video.FolderVideo import FolderVideo
from resources.lib.utils.Urls import url_coleccions, url_mesvist



def getList(strings):

#avuidestaquem = FolderVideo(strings.get('avuidestaquem'), "", "destaquem", "", "")
#noperdis = FolderVideo(strings.get('noperdis'), url_coleccions, "noperdis", "", "")
#mesvist = FolderVideo(strings.get('mesvist'), url_mesvist, "mesvist", "", "")
coleccions = FolderVideo(strings.get('coleccions'), "", "coleccions", "", "")
#programes = FolderVideo(strings.get('programes'), "", "programes", "", "")
directe = FolderVideo(strings.get('directe'), "", "directe", "", "")
#cercar = FolderVideo(strings.get('cercar'), "", "cercar", "", "")

return [coleccions, directe]
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ def __init__(self, addon_path):

self.thumb_tv3 = os.path.join(addon_path, 'resources', 'media', 'tv3_thumbnail.png')
self.thumb_324 = os.path.join(addon_path, 'resources', 'media', '324_thumbnail.png')
self.thumb_c33s3 = os.path.join(addon_path, 'resources', 'media', 'c33-super3_thumbnail.png')
self.thumb_c33 = os.path.join(addon_path, 'resources', 'media', 'c33_thumbnail.png')
self.thumb_sx3 = os.path.join(addon_path, 'resources', 'media', 'sx3_thumbnail.jpeg')
self.thumb_esp3 = os.path.join(addon_path, 'resources', 'media', 'esports3_thumbnail.png')
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self, addon):
'directe': 30017,
'tv3': 30018,
'canal324': 30019,
'c33super3': 30020,
'sx3': 30020,
'esport3': 30021,
'cercar': 30022,
'coleccions': 30023,
Expand Down
Loading
Loading