Skip to content

Commit

Permalink
[plugin.video.3cat]v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mcr222 committed Oct 15, 2024
1 parent 23f93c8 commit f2dd399
Show file tree
Hide file tree
Showing 43 changed files with 696 additions and 1,092 deletions.
45 changes: 45 additions & 0 deletions plugin.video.3cat/.github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Zip and Attach to Release

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Get repository name
id: repo-name
run: echo "REPO_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_OUTPUT

- name: Get version number
id: version
uses: actions/github-script@v6
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
const { owner, repo } = context.repo;
const release = await github.rest.repos.getRelease({
owner,
repo,
release_id: context.payload.release.id
});
return release.data.tag_name;
- name: Create folder and zip content
run: |
mkdir ${{ steps.repo-name.outputs.REPO_NAME }}
rsync -av --exclude=${{ steps.repo-name.outputs.REPO_NAME }} . ${{ steps.repo-name.outputs.REPO_NAME }}
zip -r ${{ steps.repo-name.outputs.REPO_NAME }}-${{ steps.version.outputs.result }}.zip ${{ steps.repo-name.outputs.REPO_NAME }}
- name: Upload release asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./${{ steps.repo-name.outputs.REPO_NAME }}-${{ steps.version.outputs.result }}.zip
asset_name: ${{ steps.repo-name.outputs.REPO_NAME }}-${{ steps.version.outputs.result }}.zip
asset_content_type: application/zip
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.



14 changes: 4 additions & 10 deletions plugin.video.tv3.cat/addon.py → plugin.video.3cat/addon.py
Original file line number Diff line number Diff line change
@@ -1,33 +1,27 @@
from __future__ import unicode_literals
from future import standard_library
standard_library.install_aliases()
import xbmc
from builtins import str
import sys
import urllib.parse
import xbmcplugin
import xbmc
from resources.lib.ui.UI import UI

xbmc.log("plugin.video.3cat - addon.py")

xbmc.log("plugin.video.tv3.cat - addon.py")
base_url = sys.argv[0]
addon_handle = int(sys.argv[1])

xbmc.log(str(sys.argv[2][1:]))
args = urllib.parse.parse_qs(sys.argv[2][1:])

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

xbmcplugin.setContent(addon_handle, 'movies')

mode = args.get('mode', None)
url = args.get('url', [''])



ui = UI(base_url, addon_handle, args)


ui.run(mode, url)

11 changes: 6 additions & 5 deletions plugin.video.tv3.cat/addon.xml → plugin.video.3cat/addon.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="plugin.video.tv3.cat" name="TV3cat" version="1.4.9" provider-name="jqandreu">
<addon id="plugin.video.3cat" name="3Cat" version="1.0.0" provider-name="mcr222">
<requires>
<import addon="xbmc.python" version="3.0.0"/>
<import addon="script.module.beautifulsoup4" version="4.6.3"/>
<import addon="script.module.future" version="0.17.1"/>
<import addon="script.module.beautifulsoup4"/>
<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>
Expand All @@ -18,8 +19,8 @@
<description lang="es_ES">Toda la programación de TV3 a la carta.[CR]Las listas de los más vistos, destacados, programas ordenados de la A a la Z. [CR]Canales en directo: TV3cat, K33, Super3, 3/24, Esport3</description>
<language>ca</language>
<license>GPL-2.0-or-later</license>
<source>https://github.com/jqandreu/plugin.video.tv3.cat</source>
<website>http://www.tv3.cat</website>
<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>
Expand Down
2 changes: 2 additions & 0 deletions plugin.video.3cat/changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
v1.0.0
- First version
File renamed without changes.
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
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
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
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
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
File renamed without changes.
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]
Loading

0 comments on commit f2dd399

Please sign in to comment.