Skip to content

Commit 8e49dce

Browse files
authored
Merge pull request #37 from mediathekview/develop
Release 0.4.0
2 parents 784e8c6 + cd46dd2 commit 8e49dce

36 files changed

Lines changed: 1021 additions & 1121 deletions

README.md

Lines changed: 76 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -64,25 +64,16 @@ dies bedeutet, dass eine lokale SQLite-Datenbank benutzt wird, die auch
6464
durch das Kodi-System lokal aktualisiert wird. Dies dürfte auch das
6565
üblichste Szenario sein.
6666

67-
Dieses Szenario birgt zwei Voraussetzungen die erfüllt sein sollten:
68-
* ein einigermaßen performantes Dateisystem für die Datenbank. Ein Raspberry
69-
mit seiner langsamen SD-Karte ist in diesem Fall sicherlich nicht die
70-
allerbeste Wahl. Das vollständige Update der Datenbank dauert hier um die
71-
15-20 Minuten. Da dies aber im Hintergrund passiert, kann man unter Umständen
72-
gut damit leben.
73-
* der Entpacker 'xz' auf dem Kodi-System. Um den Datenbank-Aktualisierer zu
74-
benutzen, muss dieses Programm auf dem System in einem der Standard-
75-
Verzeichnisse (/bin, /usr/bin, /usr/local/bin) installiert werden.
76-
Unter Windows bzw. falls das Programm in einem anderen Verzeichnis
77-
installiert ist, muss der Pfad zum Programm in den Addon-Einstellungen
78-
angegeben werden. Sollte der Entpacker nicht vorhanden sein, so gibt
79-
das Addon eine Meldung aus und deaktiviert den Aktualisierungsprozess.
80-
81-
Das Addon wurde auf verschiedenen Plattformen unter Linux, MacOS und LibreELEC
82-
bzw. OpenELEC getestet. Dort war auch der entsprechende Entpacker verfügbar.
83-
Unter Windows muss der Entpacker nachträglich installiert werden und dessen
84-
Pfad in den Addon-Einstellungen angegeben werden. Mangels Testsystem konnte
85-
dies jedoch zum jetzigen Zeitpunkt noch nicht getestet werden.
67+
Die Benutzung der lokalen Datenbank erfordert im Idealfall ein einigermaßen
68+
performantes Dateisystem. Ein Raspberry mit seiner langsamen SD-Karte ist in
69+
diesem Fall sicherlich nicht die allerbeste Wahl. Das vollständige Update der
70+
Datenbank dauert auf einem solchen System erfahrungsgemäß um die 15-20 Minuten.
71+
Da dies aber im Hintergrund passiert, kann man unter Umständen gut damit leben.
72+
73+
Das Addon wurde auf verschiedenen Plattformen unter Linux, MacOS, Windows und
74+
LibreELEC bzw. OpenELEC getestet. Auch verschiedene Android Systeme konnten
75+
schon erfolgreich getestet werden. Wegen der Vielzahl der Plattformen ist es
76+
allerdings nicht möglich eine abschließende Kompatibilitätsaussage zu machen.
8677

8778

8879
Alternativ-Konfigurationen
@@ -95,11 +86,13 @@ Datenbank (MySQL) zu nutzen.
9586

9687
Da viele Kodi-Nutzer über ein eigenes NAS-System verfügen um ihre Medien
9788
dem Media-Center zur Verfügung zu stellen, eignet sich dieses in der Regel
98-
auch als MySQL Datenbank-Server da nahezu alle NAS-Betriebssysteme die
99-
Installation eines solchen anbieten.
89+
auch als MySQL bzw. MariaDB Datenbank-Server da nahezu alle NAS-Betriebssysteme
90+
die Installation eines solchen anbieten.
10091

101-
Hierfür muss lediglich die entsprechende Datenbank im MySQL Server mit
102-
dem SQL-Skript `resources/sql/filmliste-mysql-v1.sql` erzeugt werden.
92+
Ist das Addon so konfiguriert, dass eine MySQL/MariaDB Datenbank genutzt werden
93+
soll, erzeugt dieses die Datenbank selbsttätig, falls diese auf dem
94+
Datenbankserver noch nicht existiert. Der angegebene Datenabankbenutzer muss
95+
dafür allerdings auch die Rechte besitzen.
10396

10497
Die Verbindung zur Datenbank kann in den Addon-Einstellungen im Abschnitt
10598
_"Datenbank Einstellungen"_ vorgenommen werden.
@@ -117,7 +110,7 @@ Standalone Datenbank Update Prozess
117110
Um die Datenbankaktualisierung von der Kommandozeile auszuführen, muss das
118111
Zielsystem einen python2-Interpreter bereitstellen. Des weiteren müssen noch
119112
folgende zwei Bibliotheken zur Verfügung stehen, sowie das Entpackprogramm
120-
'xz':
113+
'xz' (optional):
121114

122115
* ijson
123116
* mysql-connector
@@ -145,19 +138,18 @@ das Programm spezifische Hilfe aus. Beispiel:
145138

146139
````
147140
leo@bookpoldo ~/plugin.video.mediathekview $ ./mvupdate mysql -h
148-
usage: mvupdate mysql [-h] [-H HOST] [-u USER] [-p PASSWORD] [-d DATABASE]
141+
usage: mvupdate mysql [-h] [-H HOST] [-P PORT] [-u USER] [-p PASSWORD]
142+
[-d DATABASE]
149143
150144
optional arguments:
151145
-h, --help show this help message and exit
152-
-H HOST, --host HOST hostname or ip of the MySQL server (default:
153-
localhost)
154-
-u USER, --user USER username for the MySQL server connection (default:
155-
filmliste)
146+
-H HOST, --host HOST hostname or ip address (default: localhost)
147+
-P PORT, --port PORT connection port (default: 3306)
148+
-u USER, --user USER connection username (default: mediathekview)
156149
-p PASSWORD, --password PASSWORD
157-
password for the MySQL server connection (default:
158-
None)
150+
connection password (default: None)
159151
-d DATABASE, --database DATABASE
160-
MySQL database for mediathekview (default: filmliste)
152+
database name (default: mediathekview)
161153
````
162154

163155

@@ -216,22 +208,16 @@ After installation, the addon starts in local mode: this means that a local
216208
SQLite database is used, which is also updated locally by the Kodi system.
217209
This is probably the most common scenario.
218210

219-
* a file system with a decent performance for the database. A Raspberry with
220-
its slow SD card is certainly not the very best choice in this case but still
221-
acceptable. The full update will take in this case about 15-20 Minutes but
222-
since this happens in the background, you may be able to live with it.
223-
* The unpacker 'xz' on the Kodi system. To use the database updater, this
224-
program must be installed on the system in one of the standard directories
225-
(/bin, /usr/bin, /usr/local/bin). Under Windows or if the program is
226-
installed in a different directory, the path to the program must be specified
227-
in the addon settings. If the unpacker is not available on the target system,
228-
the addon issues a message and disables the update process.
211+
Ideally, using the local database requires a file system with a decent
212+
performance. A Raspberry with a slow SD card is certainly not the very
213+
best choice in this case but still acceptable. The full update will take
214+
in this case about 15-20 Minutes but since this happens in the background,
215+
you may be able to live with it.
229216

230-
The addon has been tested on different platforms under Linux, MacOS and
231-
LibreELEC/OpenELEC. The corresponding unpacker was also available there.
232-
Under Windows, the unpacker must be manually installed and its path must
233-
be specified in the addon settings. Due to the lack of a test system,
234-
however, this could not be tested at the present time.
217+
The addon has been tested on different platforms under Linux, MacOS,
218+
Windows and LibreELEC/OpenELEC. Various Android systems have also been
219+
tested successfully. Due to the variety of platforms, however, it is not
220+
possible to make a final compatibility statement.
235221

236222

237223
Alternate Configurations
@@ -242,8 +228,13 @@ with a very slow SD card) or if the program 'xz' is missing, it is also
242228
possible to use the addon with an external database (MySQL).
243229

244230
Since many Kodi users have their own NAS system to make their media available
245-
to the media center, this is usually also suitable as a MySQL database server
246-
since almost all NAS operating systems offer the installation of MySQL.
231+
to the media center, this is usually also suitable as a MySQL/MariaDB database
232+
server since almost all NAS operating systems offer the installation of MySQL.
233+
234+
If the addon is configured to use a MySQL/MariaDB database, the database is
235+
created automatically if it does not yet exist on the database server. However,
236+
the specified database user must also have sufficient user rights in order to
237+
do this.
247238

248239
When you have a running MySQL server avaible, you have only to create the
249240
database by running the SQL script `resources/sql/filmliste-mysql-v1.sql`.
@@ -289,19 +280,18 @@ the application shows specific help instructions:
289280

290281
````
291282
leo@bookpoldo ~/plugin.video.mediathekview $ ./mvupdate mysql -h
292-
usage: mvupdate mysql [-h] [-H HOST] [-u USER] [-p PASSWORD] [-d DATABASE]
283+
usage: mvupdate mysql [-h] [-H HOST] [-P PORT] [-u USER] [-p PASSWORD]
284+
[-d DATABASE]
293285
294286
optional arguments:
295287
-h, --help show this help message and exit
296-
-H HOST, --host HOST hostname or ip of the MySQL server (default:
297-
localhost)
298-
-u USER, --user USER username for the MySQL server connection (default:
299-
filmliste)
288+
-H HOST, --host HOST hostname or ip address (default: localhost)
289+
-P PORT, --port PORT connection port (default: 3306)
290+
-u USER, --user USER connection username (default: mediathekview)
300291
-p PASSWORD, --password PASSWORD
301-
password for the MySQL server connection (default:
302-
None)
292+
connection password (default: None)
303293
-d DATABASE, --database DATABASE
304-
MySQL database for mediathekview (default: filmliste)
294+
database name (default: mediathekview)
305295
````
306296

307297

@@ -344,25 +334,22 @@ Come funziona
344334

345335
L'addon scarica il database da MediathekView e lo importa in un database SQLite
346336
locale o, in alternativa, in un database MySQL locale o remoto (per l'uso da
347-
parte di più client Kodi).
348-
Durante il runtime di Kodi, i file differenziali vengono scaricati da
349-
MediathekView in un intervallo configurabile (predefinito: 2 ore) ed importati
350-
nel database. Al più tardi entro il giorno successivo all'ultimo aggiornamento,
351-
l'aggiornamento sarà nuovamente effettuato tramite l'aggiornamento completo
352-
di Mediathekview.
353-
354-
* Un file system con prestazioni accettabili per il database. Un Raspberry con
355-
la sua lenta scheda SD non è certamente la miglior scelta ma sempre ancora
356-
accettabile. La durata di un aggiornamento completo in questo caso sarà
357-
intorno ai 15-20 minuti. Ma poiché questo accade in background, l'impatto
358-
sarà essere accetabile.
359-
* Il decompressore 'xz' sul sistema Kodi. Per utilizzare il programma di
360-
aggiornamento del database, questo programma deve essere installato sul
361-
sistema in una delle directory standard (/bin, /usr/bin, /usr/local/bin). In
362-
Windows o se il programma è installato in una directory diversa, il percorso
363-
del programma deve essere specificato nelle impostazioni dell'addon. Se il
364-
decompressore non è disponibile per il sistema, l'addon mostra un messaggio
365-
e disabilita il processo di aggiornamento.
337+
parte di molteplici sistemi Kodi). Durante il runtime di Kodi, i file di
338+
aggiornamento differenziali vengono scaricati da MediathekView in un intervallo
339+
configurabile (predefinito: 2 ore) ed importati nel database. Al più tardi
340+
entro il giorno successivo all'ultimo aggiornamento, l'aggiornamento sarà
341+
nuovamente effettuato tramite l'aggiornamento completo di Mediathekview.
342+
343+
Idealmente, l'utilizzo del database locale richiede un file system con
344+
prestazioni accettabili. Un Raspberry di prima generazione con una scheda SD
345+
lenta non è certamente la miglior scelta ma sempre ancora accettabile. La
346+
durata di un aggiornamento completo in questo caso sarà intorno ai 15-20
347+
minuti. Ma poiché questo accade in background, l'impatto sarà accetabile.
348+
349+
L'addon è stato testato su diverse piattaforme in Linux, MacOS, Windows e
350+
LibreELEC nonchè OpenELEC. Anche diversi sistemi Android sono stati testati
351+
con successo. A causa della varietà delle piattaforme, tuttavia, non è
352+
possibile fare una dichiarazione finale di compatibilità.
366353

367354

368355
Configurazioni alternative
@@ -374,11 +361,13 @@ Raspberry PI con una scheda SD molto lenta) o se manca il programma 'xz',
374361

375362
Dal momento che molti utenti Kodi hanno il proprio sistema NAS per rendere i
376363
loro contenuti mediali disponibili al media center, questo è di solito anche
377-
adatto come server di database MySQL, dal momento che quasi tutti i sistemi
378-
operativi NAS offrono l'installazione di un tale database.
364+
adatto come server di database MySQL/MariaDB, dal momento che quasi tutti i
365+
sistemi operativi NAS offrono l'installazione di un tale database.
379366

380-
Dopodiche sarà sufficiente creare la banca dati mediante lo script SQL
381-
disponibile in `resources/sql/filmliste-mysql-v1.sql`.
367+
Se l' addon è configurato per utilizzare un database MySQL/MariaDB, il database
368+
verrà creato automaticamente se non esiste ancora sul database server.
369+
Tuttavia, anche l'utente del database specificato deve avere i diritti
370+
necessari.
382371

383372
Il collegamento al database può essere effettuato nelle impostazioni
384373
dell'addon nella sezione "Impostazioni Banca Dati".
@@ -423,17 +412,16 @@ aggiornare, l'applicazione mostrerà le opzioni disponibili:
423412

424413
````
425414
leo@bookpoldo ~/plugin.video.mediathekview $ ./mvupdate mysql -h
426-
usage: mvupdate mysql [-h] [-H HOST] [-u USER] [-p PASSWORD] [-d DATABASE]
415+
usage: mvupdate mysql [-h] [-H HOST] [-P PORT] [-u USER] [-p PASSWORD]
416+
[-d DATABASE]
427417
428418
optional arguments:
429419
-h, --help show this help message and exit
430-
-H HOST, --host HOST hostname or ip of the MySQL server (default:
431-
localhost)
432-
-u USER, --user USER username for the MySQL server connection (default:
433-
filmliste)
420+
-H HOST, --host HOST hostname or ip address (default: localhost)
421+
-P PORT, --port PORT connection port (default: 3306)
422+
-u USER, --user USER connection username (default: mediathekview)
434423
-p PASSWORD, --password PASSWORD
435-
password for the MySQL server connection (default:
436-
None)
424+
connection password (default: None)
437425
-d DATABASE, --database DATABASE
438-
MySQL database for mediathekview (default: filmliste)
426+
database name (default: mediathekview)
439427
````

0 commit comments

Comments
 (0)