mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-26 13:00:18 +00:00
#359 WIP
This commit is contained in:
parent
50d2067941
commit
af129f1de5
5 changed files with 42 additions and 4 deletions
|
@ -1,5 +1,9 @@
|
||||||
# ![Logo](https://github.com/WebTools-NG/WebTools-NG/blob/master/src/assets/WebTools-48x48.png) WebTools-ng Change log
|
# ![Logo](https://github.com/WebTools-NG/WebTools-NG/blob/master/src/assets/WebTools-48x48.png) WebTools-ng Change log
|
||||||
|
|
||||||
|
## V0.3.9
|
||||||
|
|
||||||
|
* [#359 ET: Log time it took](https://github.com/WebTools-NG/WebTools-NG/issues/359)
|
||||||
|
|
||||||
## V0.3.8
|
## V0.3.8
|
||||||
|
|
||||||
* [#357 Default "Original Title" to "Title", if empty](https://github.com/WebTools-NG/WebTools-NG/issues/357)
|
* [#357 Default "Original Title" to "Title", if empty](https://github.com/WebTools-NG/WebTools-NG/issues/357)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "webtools-ng",
|
"name": "webtools-ng",
|
||||||
"productName": "WebTools-NG",
|
"productName": "WebTools-NG",
|
||||||
"version": "0.3.8",
|
"version": "0.3.9",
|
||||||
"description": "WebTools Next Generation 4 Plex",
|
"description": "WebTools Next Generation 4 Plex",
|
||||||
"author": "dane22 & CPSO",
|
"author": "dane22 & CPSO",
|
||||||
"license": "MPL-2.0",
|
"license": "MPL-2.0",
|
||||||
|
|
|
@ -461,7 +461,8 @@
|
||||||
this.$store.commit("UPDATE_EXPORTLEVEL", this.selLevel);
|
this.$store.commit("UPDATE_EXPORTLEVEL", this.selLevel);
|
||||||
this.$store.commit("UPDATE_SELECTEDSECTION", this.selLibrary);
|
this.$store.commit("UPDATE_SELECTEDSECTION", this.selLibrary);
|
||||||
this.$store.commit("UPDATE_EXPORTSTATUS", i18n.t("Modules.ET.Status.StartExport"));
|
this.$store.commit("UPDATE_EXPORTSTATUS", i18n.t("Modules.ET.Status.StartExport"));
|
||||||
this.$store.dispatch("exportMedias");
|
et.exportMedias();
|
||||||
|
//this.$store.dispatch("exportMedias");
|
||||||
},
|
},
|
||||||
async checkSrvSelected() {
|
async checkSrvSelected() {
|
||||||
log.debug("checkSrvSelected started");
|
log.debug("checkSrvSelected started");
|
||||||
|
|
|
@ -133,6 +133,41 @@ const et = new class ET {
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
async exportMedias() {
|
||||||
|
var baseURL = store.getters.getSelectedServerAddress;
|
||||||
|
var accessToken = store.getters.getSelectedServerToken;
|
||||||
|
var libType = store.getters.getLibType;
|
||||||
|
var pListType = store.getters.getSelectedLibTypeSec;
|
||||||
|
|
||||||
|
console.log('Ged 1', baseURL)
|
||||||
|
console.log('Ged 2', accessToken)
|
||||||
|
console.log('Ged 3', libType)
|
||||||
|
console.log('Ged 4', pListType)
|
||||||
|
|
||||||
|
let levelName;
|
||||||
|
var libName = et.getLibDisplayName(store.getters.getSelectedSection, store.getters.getPmsSections);
|
||||||
|
if ([ et.ETmediaType.Libraries, et.ETmediaType.Playlists].indexOf(libType) > -1)
|
||||||
|
{
|
||||||
|
levelName = 'All'
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
levelName = et.getLevelDisplayName(store.getters.getSelectedExportLevel, libType);
|
||||||
|
}
|
||||||
|
console.log('Ged 7', levelName)
|
||||||
|
|
||||||
|
|
||||||
|
excel2.createOutFile( {
|
||||||
|
libName: libName,
|
||||||
|
level: levelName,
|
||||||
|
libType: libType,
|
||||||
|
baseURL: baseURL,
|
||||||
|
accessToken: accessToken,
|
||||||
|
exType: libType,
|
||||||
|
pListType: pListType,
|
||||||
|
libTypeSec: store.getSelectedLibTypeSec
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
|
||||||
async getSectionData({sectionName, baseURL, accessToken, libType, libTypeSec})
|
async getSectionData({sectionName, baseURL, accessToken, libType, libTypeSec})
|
||||||
{
|
{
|
||||||
|
|
|
@ -52,10 +52,8 @@ const actions = {
|
||||||
exportMedias({ getters }) {
|
exportMedias({ getters }) {
|
||||||
var baseURL = getters.getSelectedServerAddress;
|
var baseURL = getters.getSelectedServerAddress;
|
||||||
var accessToken = getters.getSelectedServerToken;
|
var accessToken = getters.getSelectedServerToken;
|
||||||
//var libType = (et.RevETmediaType[getters.getLibType]).toString().toLowerCase();
|
|
||||||
var libType = getters.getLibType;
|
var libType = getters.getLibType;
|
||||||
var pListType = getters.getSelectedLibTypeSec;
|
var pListType = getters.getSelectedLibTypeSec;
|
||||||
//var pListType = getters.getSelectedPListType;
|
|
||||||
let levelName;
|
let levelName;
|
||||||
var libName = et.getLibDisplayName(getters.getSelectedSection, getters.getPmsSections);
|
var libName = et.getLibDisplayName(getters.getSelectedSection, getters.getPmsSections);
|
||||||
if ([ et.ETmediaType.Libraries, et.ETmediaType.Playlists].indexOf(libType) > -1)
|
if ([ et.ETmediaType.Libraries, et.ETmediaType.Playlists].indexOf(libType) > -1)
|
||||||
|
|
Loading…
Reference in a new issue