Skip to content

Commit eec1a10

Browse files
authored
Merge pull request #62 from mediathekview/develop
Release 0.4.3
2 parents cf0827f + c043895 commit eec1a10

3 files changed

Lines changed: 72 additions & 1 deletion

File tree

README.md

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,31 @@ schon erfolgreich getestet werden. Wegen der Vielzahl der Plattformen ist es
7676
allerdings nicht möglich eine abschließende Kompatibilitätsaussage zu machen.
7777

7878

79+
Funktionsweise der Aktualisierungsmethoden
80+
------------------------------------------
81+
82+
Das Addon unterstützt 4 verschiedene Aktualisierungsmethoden:
83+
# **Automatisch (Standard):** Bei dieser Methode wird die Aktualisierung der
84+
Datenbank automatisch durchgeführt. Die Aktualisierung erfolgt ein mal pro
85+
eingestelltem Aktualisierungsintervall (Standard: 2 Stunden). Die erste
86+
Aktualisierung eines Kalendertages ist eine vollstöndige Aktualisierung, alle
87+
weiteren sind Differenz-Aktualisierungen. Die automatische Aktualisierung
88+
pausiert, wenn das Addon länger als 2 Stunden nicht bedient wurde, um
89+
Bandbreite und bei mobilen Geräten Strom zu sparen.
90+
# **Nur beim Start:**: Eine Aktualisierung erfolgt nur beim Start von Kodi.
91+
Handelt es sich hierbei um die erste Aktualisierung des Kalendertages, ist
92+
dies eine vollständige Aktualisierung, ansonsten eine differentielle. Alle
93+
weiteren Aktualisierungen müssen manuell über das Hauptmenü vom Benutzer
94+
ausgelöst werden.
95+
# **Manuell:** Es erfolgt keine automatische Aktualisierung. Der Benutzer
96+
hat die Möglichkeit Aktualisierungen über das Hauptmenü auszulösen. Handelt
97+
es sich hierbei um die erste Aktualisierung des Kalendertages, ist dies eine
98+
vollständige Aktualisierung, ansonsten eine differentielle.
99+
# **Abgeschaltet:** Es erfolgt keine automatische Aktualisierung. Diese
100+
Konfiguration ist nur dann sinnvoll, wenn das Plugin eine externe Datenbank
101+
nutzt und diese anderweitig aktualisiert wird.
102+
103+
79104
Alternativ-Konfigurationen
80105
--------------------------
81106

@@ -222,6 +247,27 @@ tested successfully. Due to the variety of platforms, however, it is not
222247
possible to make a final compatibility statement.
223248

224249

250+
How the update methods work
251+
---------------------------
252+
253+
The addon supports 4 different update methods:
254+
# **Automatic (Default):** This method automatically updates the database.
255+
The update takes place once per set update interval (default: 2 hours). The
256+
first update of a calendar day is a full update, all others are differential
257+
updates. The auto-update pauses if the addon has not been used for more than
258+
2 hours to save bandwidth and power on mobile devices.
259+
# **On Start:** An update will only take place when Kodi is started. If this
260+
is the first update of the calendar day, it is a complete update, otherwise a
261+
differential one. All further updates must be manually initiated by the user
262+
via the main menu.
263+
# **Manual:** There is no automatic update. The user has the possibility to
264+
initiate updates via the main menu. If this is the first update of the day,
265+
it is a complete update, otherwise a differential one.
266+
# **Disabled:** There is no automatic update. This configuration only makes
267+
sense if the plugin uses an external database and this database is updated
268+
elsewhere.
269+
270+
225271
Alternate Configurations
226272
------------------------
227273

@@ -354,6 +400,30 @@ con successo. A causa della varietà delle piattaforme, tuttavia, non è
354400
possibile fare una dichiarazione finale di compatibilità.
355401

356402

403+
Come funzionano i metodi di aggiornamento
404+
-----------------------------------------
405+
406+
L'addon supporta 4 diversi metodi di aggiornamento:
407+
# **Automatico (Predefinito):** Questo metodo aggiorna automaticamente il
408+
database. L'aggiornamento avviene una volta per ogni intervallo di
409+
aggiornamento impostato (impostazione predefinita: 2 ore). Il primo
410+
aggiornamento di un giorno è un aggiornamento completo, tutti gli altri sono
411+
aggiornamenti differenziali. L'aggiornamento automatico si interrompe se
412+
l'addon non è stato utilizzato per più di 2 ore al fine di salvare larghezza
413+
di banda e corrente sui dispositivi mobili.
414+
# **Solo all'avvio:** L'aggiornamento avviene solo all'avvio di Kodi. Se questo
415+
è il primo aggiornamento del giorno, avverrà un aggiornamento completo,
416+
altrimenti differenziale. Tutti gli ulteriori aggiornamenti devono essere
417+
avviati manualmente dall'utente attraverso il menu principale.
418+
# **Manuale:** Non vi è alcun aggiornamento automatico. L'utente ha la
419+
possibilità di avviare gli aggiornamenti tramite il menu principale. Se questo
420+
è il primo aggiornamento del giorno, avverrà un aggiornamento completo,
421+
altrimenti differenziale.
422+
# **Disattivato:** Non vi è alcun aggiornamento automatico. Questa
423+
configurazione ha senso solo se il plugin utilizza un database esterno che
424+
viene aggiornato altrove.
425+
426+
357427
Configurazioni alternative
358428
--------------------------
359429

addon.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ def _make_nfo_files( self, film, episode, dirname, filename, videourl ):
300300
file.write( b'<episodedetails>\n' )
301301
file.write( bytearray( '\t<title>{}</title>\n'.format( film.title ), 'utf-8' ) )
302302
file.write( b'\t<season>1</season>\n' )
303+
file.write( b'\t<autonumber>1</autonumber>\n' )
303304
file.write( bytearray( '\t<episode>{}</episode>\n'.format( episode ), 'utf-8' ) )
304305
file.write( bytearray( '\t<showtitle>{}</showtitle>\n'.format( film.show ), 'utf-8' ) )
305306
file.write( bytearray( '\t<plot>{}</plot>\n'.format( film.description ), 'utf-8' ) )

resources/lib/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def Reload( self ):
4848
return dbchanged
4949

5050
@staticmethod
51-
def IsUpdateTriggered( self ):
51+
def IsUpdateTriggered():
5252
if xbmcaddon.Addon().getSetting( 'updatetrigger' ) == 'true':
5353
xbmcaddon.Addon().setSetting( 'updatetrigger', 'false' )
5454
return True

0 commit comments

Comments
 (0)