Skip to content

Latest commit

 

History

History
133 lines (110 loc) · 3.45 KB

README.md

File metadata and controls

133 lines (110 loc) · 3.45 KB

mv2mariadb

Datenkonverter MediathekView Datenbank => Neutrino Mediathek SQL

Aktuelle Version: 0.4.1

mv2mariadb ist ein unter Linux lauffähiges Tool zum konvertieren der MediathekView Datenbank (Json Format) nach SQL (MariaDB). Die Daten werden für das Neutrino Mediathek Plugin benötigt. Das Programm wird üblicherweise über einen Cron Job zu festgelegten Zeiten gestartet.

Aufgaben

  • Abruf der Liste der Downloadserver (Beim ersten Start und dann per default alle 7 Tage).
  • Abrufen der Datenbank-Version auf dem Downloadserver.
  • Vergleich der Datenbank-Versionen
  • Wenn eine neuere Version vorliegt:
    • Download und entpacken der Daten
    • Einlesen der Json-Daten in eine Sql-Datenbank
    • Bereitstellen der Daten für das Plugin

Benötigte Libs

Zum kompilieren des Programms werden auch die jeweiligen -devel Pakete sowie das rapidjson-devel Paket benötigt.

Kommandozeilen-Optionen

    Usage: mv2mariadb [OPTION]
 
  -e --epoch xxx Use not older entrys than 'xxx' days (default all data)
  -f --force-convert Data also convert, when movie list is up-to-date
  -c --cron-mode xxx 'xxx' = time in minutes. Specifies the period during which no new version check is performed after the last download
  -C --cron-mode-echo Output message during --cron-mode to the log (Default: no output)
  -D --diff-mode Use difference list instead of the complete movie list
  -n --no-indexes Don't create indexes for database
    --update Create new config file and new template database, then exit
    --download-only Download only (Don't convert to sql database)
    --load-serverlist Load new serverlist and exit
 
  -d --debug-print Print debug info
  -v --version Display versions info and exit
  -h --help Display the help screen and exit