Skip to content

Commit 1fd6aa5

Browse files
authored
Update StashUserscriptLibrary.js
1 parent a83ee0f commit 1fd6aa5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/StashUserscriptLibrary.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@
191191
this.processStudios(evt.detail);
192192
this.processPerformers(evt.detail);
193193
this.processGalleries(evt.detail);
194+
this.processMarkers(evt.detail);
194195
this.processApiKey(evt.detail);
195196
this.dispatchEvent(new CustomEvent('stash:response', { 'detail': evt.detail }));
196197
});
@@ -212,6 +213,7 @@
212213
this.studios = {};
213214
this.galleries = {};
214215
this.performers = {};
216+
this.scene_markers = {};
215217
this.userscripts = [];
216218
}
217219
async getVersion() {
@@ -862,6 +864,13 @@
862864
}
863865
}
864866
}
867+
processMarkers(data) {
868+
if (data.data.findSceneMarkers?.scene_markers) {
869+
for (const scene_marker of data.data.findSceneMarkers.scene_markers) {
870+
this.scene_markers[scene_marker.id] = scene_marker;
871+
}
872+
}
873+
}
865874
processApiKey(data) {
866875
if (data.data.generateAPIKey != null && this.pluginVersion) {
867876
this.updateConfigValueTask('STASH', 'api_key', data.data.generateAPIKey);

0 commit comments

Comments
 (0)