Skip to content

Commit

Permalink
First commit!
Browse files Browse the repository at this point in the history
  • Loading branch information
aassif committed Dec 12, 2018
0 parents commit 0dfd7c0
Show file tree
Hide file tree
Showing 9 changed files with 1,405 additions and 0 deletions.
29 changes: 29 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
project(pvr.freebox)

cmake_minimum_required(VERSION 2.6)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR})

enable_language(CXX)

find_package(Kodi REQUIRED)
find_package(kodiplatform REQUIRED)
find_package(p8-platform REQUIRED)
find_package(RapidJSON REQUIRED)

include_directories(${kodiplatform_INCLUDE_DIRS}
${p8-platform_INCLUDE_DIRS}
${KODI_INCLUDE_DIR}
${RAPIDJSON_INCLUDE_DIRS})

set(DEPLIBS ${p8-platform_LIBRARIES})

set(FREEBOX_SOURCES src/client.cpp
src/PVRFreeboxData.cpp)

set(FREEBOX_HEADERS src/client.h
src/PVRFreeboxData.h)

build_addon(pvr.freebox FREEBOX DEPLIBS)

include(CPack)
17 changes: 17 additions & 0 deletions pvr.freebox/addon.xml.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.freebox"
version="1.0"
name="PVR Freebox TV"
provider-name="aassif">
<requires>@ADDON_DEPENDS@</requires>
<extension
point="xbmc.pvrclient"
library_@PLATFORM@="@LIBRARY_FILENAME@"/>
<extension point="xbmc.addon.metadata">
<summary lang="fr_FR">Extension enregistreur vidéo (PVR) pour Freebox TV. https://github.com/aassif/pvr.freebox</summary>
<description lang="fr_FR">Le client enregistreur vidéo (PVR) gère les chaînes Freebox TV et le guide électronique des programmes.</description>
<disclaimer lang="fr_FR">Logiciel en cours d'élaboration !</disclaimer>
<platform>@PLATFORM@</platform>
</extension>
</addon>
Binary file added pvr.freebox/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
78 changes: 78 additions & 0 deletions pvr.freebox/resources/language/resource.language.fr_fr/strings.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# Kodi Media Center language file
# Addon Name: PVR Freebox TV
# Addon id: pvr.freebox
# Addon Provider: aassif
msgid ""
msgstr ""
"Project-Id-Version: KODI Main\n"
"Report-Msgid-Bugs-To: http://trac.kodi.tv/\n"
"POT-Creation-Date: YEAR-MO-DA HO:MI+ZONE\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: aassif\n"
"Language-Team: French (France)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: fr_FR\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"

msgctxt "#30000"
msgid "%d channels loaded"
msgstr "%d chaînes chargées"

msgctxt "#40000"
msgid "Section 1"
msgstr "Section 1"

msgctxt "#41000"
msgid "Television"
msgstr "Télévision"

msgctxt "#41100"
msgid "Television 1"
msgstr "Télévision 1"

msgctxt "#41110"
msgid "Quality"
msgstr "Qualité"

msgctxt "#41111"
msgid "Auto"
msgstr "Auto"

msgctxt "#41112"
msgid "High"
msgstr "Haute"

msgctxt "#41113"
msgid "Standard"
msgstr "Standard"

msgctxt "#41114"
msgid "Low"
msgstr "Basse"

msgctxt "#42000"
msgid "EPG"
msgstr "Guide TV"

msgctxt "#42100"
msgid "EPG 1"
msgstr "EPG 1"

msgctxt "#42110"
msgid "Extended"
msgstr "Étendu"

msgctxt "#42120"
msgid "Delay"
msgstr "Délai"

msgctxt "#142110"
msgid "Extended EPG."
msgstr "Guide TV étendu (résumé)."

msgctxt "#142120"
msgid "Delay between queries."
msgstr "Délai entre chaque requête."

41 changes: 41 additions & 0 deletions pvr.freebox/resources/settings.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?xml version="1.0" encoding="utf-8" ?>
<settings version="1">
<section id="section" label="40000" description="540000">
<category id="pvr.freebox.television" label="41000" description="541000">
<group id="pvr.freebox.television.group1" label="41100">
<setting id="quality" type="integer" label="41110" help="541110">
<level>0</level>
<default>1</default> <!-- Auto -->
<constraints>
<options>
<option label="41111">1</option> <!-- Auto -->
<option label="41112">2</option> <!-- High -->
<option label="41113">3</option> <!-- Standard -->
<option label="41114">4</option> <!-- Low -->
</options>
</constraints>
<control type="list" format="string" />
</setting>
</group>
</category> <!-- pvr.freebox.television -->
<category id="pvr.freebox.epg" label="42000" description="542000">
<group id="pvr.freebox.epg.group1" label="42100">
<setting id="extended" type="boolean" label="42110" help="542110">
<level>0</level>
<default>false</default>
<control type="toggle" />
</setting>
<setting id="delay" type="integer" label="42120" help="542120">
<level>0</level>
<default>10</default>
<constraints>
<minimum>0</minimum>
<step>5</step>
<maximum>30</maximum>
</constraints>
<control type="spinner" format="string" />
</setting>
</group>
</category> <!-- pvr.freebox.epg -->
</section>
</settings>
Loading

0 comments on commit 0dfd7c0

Please sign in to comment.