Show podcastparser version

This commit is contained in:
Thomas Perl 2014-10-28 17:02:49 +01:00
parent 7dde110e27
commit b0929318f0
3 changed files with 7 additions and 2 deletions

View file

@ -31,6 +31,7 @@ Python {
property string coreversion property string coreversion
property string uiversion property string uiversion
property string parserversion
signal downloadProgress(int episode_id, real progress) signal downloadProgress(int episode_id, real progress)
signal playbackProgress(int episode_id, real progress) signal playbackProgress(int episode_id, real progress)
@ -43,12 +44,14 @@ Python {
signal configChanged(string key, var value) signal configChanged(string key, var value)
Component.onCompleted: { Component.onCompleted: {
setHandler('hello', function (coreversion, uiversion) { setHandler('hello', function (coreversion, uiversion, parserversion) {
py.coreversion = coreversion; py.coreversion = coreversion;
py.uiversion = uiversion; py.uiversion = uiversion;
py.parserversion = parserversion;
console.log('gPodder Core ' + py.coreversion); console.log('gPodder Core ' + py.coreversion);
console.log('gPodder QML UI ' + py.uiversion); console.log('gPodder QML UI ' + py.uiversion);
console.log('Podcastparser ' + py.parserversion);
console.log('PyOtherSide ' + py.pluginVersion()); console.log('PyOtherSide ' + py.pluginVersion());
console.log('Python ' + py.pythonVersion()); console.log('Python ' + py.pythonVersion());
}); });

View file

@ -26,6 +26,7 @@ import os
import pyotherside import pyotherside
import gpodder import gpodder
import podcastparser
from gpodder.api import core from gpodder.api import core
from gpodder.api import util from gpodder.api import util
@ -418,7 +419,7 @@ class gPotherSide:
gpotherside = gPotherSide() gpotherside = gPotherSide()
pyotherside.atexit(gpotherside.atexit) pyotherside.atexit(gpotherside.atexit)
pyotherside.send('hello', gpodder.__version__, __version__) pyotherside.send('hello', gpodder.__version__, __version__, podcastparser.__version__)
# Exposed API Endpoints for calls from QML # Exposed API Endpoints for calls from QML
initialize = gpotherside.initialize initialize = gpotherside.initialize

View file

@ -77,6 +77,7 @@ SlidePage {
'', '',
'gPodder Core ' + py.coreversion, 'gPodder Core ' + py.coreversion,
'gPodder QML UI ' + py.uiversion, 'gPodder QML UI ' + py.uiversion,
'Podcastparser ' + py.parserversion,
'PyOtherSide ' + py.pluginVersion(), 'PyOtherSide ' + py.pluginVersion(),
'Python ' + py.pythonVersion() 'Python ' + py.pythonVersion()
].join('\n') ].join('\n')