- return this.videoService.getVideos(newPagination, this.sort, undefined, this.categoryOneOf)
+ const params = {
+ videoPagination: newPagination,
+ sort: this.sort,
+ categoryOneOf: this.categoryOneOf,
+ languageOneOf: this.languageOneOf,
+ nsfwPolicy: this.nsfwPolicy,
+ skipCount: true
+ }
+
+ return this.hooks.wrapObsFun(
+ this.videoService.getVideos.bind(this.videoService),
+ params,
+ 'common',
+ 'filter:api.trending-videos.videos.list.params',
+ 'filter:api.trending-videos.videos.list.result'
+ )