diff --git a/client/src/app/+video-channels/video-channels.component.ts b/client/src/app/+video-channels/video-channels.component.ts index 256d5b458..eb30614c9 100644 --- a/client/src/app/+video-channels/video-channels.component.ts +++ b/client/src/app/+video-channels/video-channels.component.ts @@ -1,22 +1,22 @@ -import { Subscription } from 'rxjs' -import { catchError, distinctUntilChanged, map, switchMap } from 'rxjs/operators' +import { DatePipe, NgClass, NgIf, NgTemplateOutlet } from '@angular/common' import { Component, OnDestroy, OnInit, ViewChild } from '@angular/core' import { ActivatedRoute, RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router' -import { AuthService, MarkdownService, Notifier, RestExtractor, ScreenService, Hotkey, HotkeysService, MetaService } from '@app/core' -import { HttpStatusCode, UserRight } from '@peertube/peertube-models' -import { ListOverflowComponent, ListOverflowItem } from '../shared/shared-main/misc/list-overflow.component' -import { CopyButtonComponent } from '../shared/shared-main/buttons/copy-button.component' -import { AccountBlockBadgesComponent } from '../shared/shared-moderation/account-block-badges.component' -import { ActorAvatarComponent } from '../shared/shared-actor-image/actor-avatar.component' -import { GlobalIconComponent } from '../shared/shared-icons/global-icon.component' -import { NgIf, NgTemplateOutlet, NgClass, DatePipe } from '@angular/common' +import { AuthService, Hotkey, HotkeysService, MarkdownService, MetaService, RestExtractor, ScreenService } from '@app/core' +import { Account } from '@app/shared/shared-main/account/account.model' +import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model' import { VideoChannelService } from '@app/shared/shared-main/video-channel/video-channel.service' import { VideoService } from '@app/shared/shared-main/video/video.service' -import { VideoChannel } from '@app/shared/shared-main/video-channel/video-channel.model' -import { Account } from '@app/shared/shared-main/account/account.model' import { BlocklistService } from '@app/shared/shared-moderation/blocklist.service' import { SupportModalComponent } from '@app/shared/shared-support-modal/support-modal.component' import { SubscribeButtonComponent } from '@app/shared/shared-user-subscription/subscribe-button.component' +import { HttpStatusCode, UserRight } from '@peertube/peertube-models' +import { Subscription } from 'rxjs' +import { catchError, distinctUntilChanged, map, switchMap } from 'rxjs/operators' +import { ActorAvatarComponent } from '../shared/shared-actor-image/actor-avatar.component' +import { GlobalIconComponent } from '../shared/shared-icons/global-icon.component' +import { CopyButtonComponent } from '../shared/shared-main/buttons/copy-button.component' +import { ListOverflowComponent, ListOverflowItem } from '../shared/shared-main/misc/list-overflow.component' +import { AccountBlockBadgesComponent } from '../shared/shared-moderation/account-block-badges.component' @Component({ templateUrl: './video-channels.component.html', diff --git a/client/src/assets/player/shared/peertube/peertube-plugin.ts b/client/src/assets/player/shared/peertube/peertube-plugin.ts index 6682836c7..c561484a3 100644 --- a/client/src/assets/player/shared/peertube/peertube-plugin.ts +++ b/client/src/assets/player/shared/peertube/peertube-plugin.ts @@ -203,7 +203,7 @@ class PeerTubePlugin extends Plugin { this.player.addClass('vjs-error-display-enabled') // Google Bot may throw codecs, but it should not prevent indexing - if (!/googlebot/i.test(navigator.userAgent)) { + if (/googlebot/i.test(navigator.userAgent)) { console.error(this.player.error()) } else { logger.error('Fatal error in player', this.player.error()) diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html index 24f35fc40..ee7295643 100644 --- a/client/src/standalone/videos/embed.html +++ b/client/src/standalone/videos/embed.html @@ -96,7 +96,7 @@ } // Google Bot doesn't support our codecs, but it should not prevent indexing - if (!/googlebot/i.test(navigator.userAgent)) { + if (/googlebot/i.test(navigator.userAgent)) { console.error(err) return }