import { VideoSortField } from '../../shared/video/sort-field.type'
import { VideoService } from '../../shared/video/video.service'
import { I18n } from '@ngx-translate/i18n-polyfill'
+import { ScreenService } from '@app/shared/misc/screen.service'
@Component({
selector: 'my-videos-recently-added',
protected location: Location,
protected notificationsService: NotificationsService,
protected authService: AuthService,
- private videoService: VideoService,
- private i18n: I18n
+ protected i18n: I18n,
+ protected screenService: ScreenService,
+ private videoService: VideoService
) {
super()
getVideosObservable (page: number) {
const newPagination = immutableAssign(this.pagination, { currentPage: page })
- return this.videoService.getVideos(newPagination, this.sort)
+ return this.videoService.getVideos(newPagination, this.sort, undefined, this.categoryOneOf)
}
generateSyndicationList () {
- this.syndicationItems = this.videoService.getVideoFeedUrls(this.sort)
+ this.syndicationItems = this.videoService.getVideoFeedUrls(this.sort, undefined, this.categoryOneOf)
}
}