new file: .dockerignore
new file: .editorconfig new file: .eslintrc.json new file: .gitignore new file: .gitpod.yml new file: .mocharc.cjs new file: CHANGELOG.md new file: CODE_OF_CONDUCT.md new file: CREDITS.md new file: SECURITY.md new file: apps/peertube-cli/.npmignore new file: apps/peertube-cli/README.md new file: apps/peertube-cli/package.json new file: apps/peertube-cli/scripts/build.js new file: apps/peertube-cli/scripts/watch.js new file: apps/peertube-cli/src/peertube-auth.ts new file: apps/peertube-cli/src/peertube-get-access-token.ts new file: apps/peertube-cli/src/peertube-plugins.ts new file: apps/peertube-cli/src/peertube-redundancy.ts new file: apps/peertube-cli/src/peertube-upload.ts new file: apps/peertube-cli/src/peertube.ts new file: apps/peertube-cli/src/shared/cli.ts new file: apps/peertube-cli/src/shared/index.ts new file: apps/peertube-cli/tsconfig.json new file: apps/peertube-cli/yarn.lock new file: apps/peertube-runner/.gitignore new file: apps/peertube-runner/.npmignore new file: apps/peertube-runner/README.md new file: apps/peertube-runner/package.json new file: apps/peertube-runner/scripts/build.js new file: apps/peertube-runner/scripts/watch.js new file: apps/peertube-runner/src/peertube-runner.ts new file: apps/peertube-runner/src/register/index.ts new file: apps/peertube-runner/src/register/register.ts new file: apps/peertube-runner/src/server/index.ts new file: apps/peertube-runner/src/server/process/index.ts new file: apps/peertube-runner/src/server/process/process.ts new file: apps/peertube-runner/src/server/process/shared/common.ts new file: apps/peertube-runner/src/server/process/shared/index.ts new file: apps/peertube-runner/src/server/process/shared/process-live.ts new file: apps/peertube-runner/src/server/process/shared/process-studio.ts new file: apps/peertube-runner/src/server/process/shared/process-transcription.ts new file: apps/peertube-runner/src/server/process/shared/process-vod.ts new file: apps/peertube-runner/src/server/process/shared/winston-logger.ts new file: apps/peertube-runner/src/server/server.ts new file: apps/peertube-runner/src/server/shared/index.ts new file: apps/peertube-runner/src/server/shared/supported-job.ts new file: apps/peertube-runner/src/shared/config-manager.ts new file: apps/peertube-runner/src/shared/http.ts new file: apps/peertube-runner/src/shared/index.ts new file: apps/peertube-runner/src/shared/ipc/index.ts new file: apps/peertube-runner/src/shared/ipc/ipc-client.ts new file: apps/peertube-runner/src/shared/ipc/ipc-server.ts new file: apps/peertube-runner/src/shared/ipc/shared/index.ts new file: apps/peertube-runner/src/shared/ipc/shared/ipc-request.model.ts new file: apps/peertube-runner/src/shared/ipc/shared/ipc-response.model.ts new file: apps/peertube-runner/src/shared/logger.ts new file: apps/peertube-runner/tsconfig.json new file: apps/peertube-runner/yarn.lock new file: client/.browserslistrc new file: client/.eslintrc.json new file: client/.gitignore new file: client/.stylelintrc.json new file: client/.xliffmerge.json new file: client/angular.json new file: client/e2e/fixtures/video.mp4 new file: client/e2e/fixtures/video2.mp4 new file: client/e2e/fixtures/video3.mp4 new file: client/e2e/src/commands/upload.ts new file: client/e2e/src/po/admin-config.po.ts new file: client/e2e/src/po/admin-plugin.po.ts new file: client/e2e/src/po/admin-registration.po.ts new file: client/e2e/src/po/anonymous-settings.po.ts new file: client/e2e/src/po/login.po.ts new file: client/e2e/src/po/my-account.po.ts new file: client/e2e/src/po/player.po.ts new file: client/e2e/src/po/signup.po.ts new file: client/e2e/src/po/video-list.po.ts new file: client/e2e/src/po/video-search.po.ts new file: client/e2e/src/po/video-update.po.ts new file: client/e2e/src/po/video-upload.po.ts new file: client/e2e/src/po/video-watch.po.ts new file: client/e2e/src/suites-all/live.e2e-spec.ts new file: client/e2e/src/suites-all/private-videos.e2e-spec.ts new file: client/e2e/src/suites-all/videos.e2e-spec.ts new file: client/e2e/src/suites-local/custom-server-defaults.e2e-spec.ts new file: client/e2e/src/suites-local/plugins.e2e-spec.ts new file: client/e2e/src/suites-local/signup.e2e-spec.ts new file: client/e2e/src/suites-local/user-settings.e2e-spec.ts new file: client/e2e/src/suites-local/video-password.e2e-spec.ts new file: client/e2e/src/suites-local/videos-list.e2e-spec.ts new file: client/e2e/src/types/common.ts new file: client/e2e/src/types/wdio.d.ts new file: client/e2e/src/utils/common.ts new file: client/e2e/src/utils/elements.ts new file: client/e2e/src/utils/email.ts new file: client/e2e/src/utils/files.ts new file: client/e2e/src/utils/hooks.ts new file: client/e2e/src/utils/index.ts new file: client/e2e/src/utils/mock-smtp.ts new file: client/e2e/src/utils/server.ts new file: client/e2e/src/utils/urls.ts new file: client/e2e/tsconfig.json new file: client/e2e/wdio.browserstack.conf.ts new file: client/e2e/wdio.local-test.conf.ts new file: client/e2e/wdio.local.conf.ts new file: client/e2e/wdio.main.conf.ts new file: client/package.json new file: client/proxy.config.json new file: client/src/app/+about/about-follows/about-follows.component.html new file: client/src/app/+about/about-follows/about-follows.component.scss new file: client/src/app/+about/about-follows/about-follows.component.ts new file: client/src/app/+about/about-instance/about-instance.component.html new file: client/src/app/+about/about-instance/about-instance.component.scss new file: client/src/app/+about/about-instance/about-instance.component.ts new file: client/src/app/+about/about-instance/about-instance.resolver.ts new file: client/src/app/+about/about-instance/contact-admin-modal.component.html new file: client/src/app/+about/about-instance/contact-admin-modal.component.scss new file: client/src/app/+about/about-instance/contact-admin-modal.component.ts new file: client/src/app/+about/about-instance/instance-statistics.component.html new file: client/src/app/+about/about-instance/instance-statistics.component.scss new file: client/src/app/+about/about-instance/instance-statistics.component.ts new file: client/src/app/+about/about-peertube/about-peertube.component.html new file: client/src/app/+about/about-peertube/about-peertube.component.scss new file: client/src/app/+about/about-peertube/about-peertube.component.ts new file: client/src/app/+about/about.component.html new file: client/src/app/+about/about.component.ts new file: client/src/app/+about/routes.ts new file: client/src/app/+accounts/account-video-channels/account-video-channels.component.html new file: client/src/app/+accounts/account-video-channels/account-video-channels.component.scss new file: client/src/app/+accounts/account-video-channels/account-video-channels.component.ts new file: client/src/app/+accounts/account-videos/account-videos.component.html new file: client/src/app/+accounts/account-videos/account-videos.component.ts new file: client/src/app/+accounts/accounts.component.html new file: client/src/app/+accounts/accounts.component.scss new file: client/src/app/+accounts/accounts.component.ts new file: client/src/app/+accounts/routes.ts new file: client/src/app/+admin/admin-moderation.component.html new file: client/src/app/+admin/admin-moderation.component.ts new file: client/src/app/+admin/admin-overview.component.html new file: client/src/app/+admin/admin-overview.component.ts new file: client/src/app/+admin/admin-settings.component.html new file: client/src/app/+admin/admin-settings.component.ts new file: client/src/app/+admin/config/config.routes.ts new file: client/src/app/+admin/config/edit-custom-config/edit-advanced-configuration.component.html new file: client/src/app/+admin/config/edit-custom-config/edit-advanced-configuration.component.ts new file: client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.html new file: client/src/app/+admin/config/edit-custom-config/edit-basic-configuration.component.ts new file: client/src/app/+admin/config/edit-custom-config/edit-configuration.service.ts new file: client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html new file: client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.scss new file: client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts new file: client/src/app/+admin/config/edit-custom-config/edit-homepage.component.html new file: client/src/app/+admin/config/edit-custom-config/edit-homepage.component.ts new file: client/src/app/+admin/config/edit-custom-config/edit-instance-information.component.html new file: client/src/app/+admin/config/edit-custom-config/edit-instance-information.component.ts new file: client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html new file: client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.ts new file: client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html new file: client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts new file: client/src/app/+admin/config/edit-custom-config/index.ts new file: client/src/app/+admin/config/index.ts new file: client/src/app/+admin/config/shared/config.service.ts new file: client/src/app/+admin/follows/followers-list/followers-list.component.html new file: client/src/app/+admin/follows/followers-list/followers-list.component.scss new file: client/src/app/+admin/follows/followers-list/followers-list.component.ts new file: client/src/app/+admin/follows/followers-list/index.ts new file: client/src/app/+admin/follows/following-list/follow-modal.component.html new file: client/src/app/+admin/follows/following-list/follow-modal.component.scss new file: client/src/app/+admin/follows/following-list/follow-modal.component.ts new file: client/src/app/+admin/follows/following-list/following-list.component.html new file: client/src/app/+admin/follows/following-list/following-list.component.scss new file: client/src/app/+admin/follows/following-list/following-list.component.ts new file: client/src/app/+admin/follows/following-list/index.ts new file: client/src/app/+admin/follows/follows.routes.ts new file: client/src/app/+admin/follows/index.ts new file: client/src/app/+admin/follows/shared/redundancy-checkbox.component.html new file: client/src/app/+admin/follows/shared/redundancy-checkbox.component.ts new file: client/src/app/+admin/follows/video-redundancies-list/index.ts new file: client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html new file: client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.scss new file: client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.ts new file: client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.html new file: client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.scss new file: client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.ts new file: client/src/app/+admin/moderation/abuse-list/abuse-list.component.html new file: client/src/app/+admin/moderation/abuse-list/abuse-list.component.ts new file: client/src/app/+admin/moderation/abuse-list/index.ts new file: client/src/app/+admin/moderation/instance-blocklist/index.ts new file: client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.ts new file: client/src/app/+admin/moderation/instance-blocklist/instance-server-blocklist.component.ts new file: client/src/app/+admin/moderation/moderation.routes.ts new file: client/src/app/+admin/moderation/registration-list/admin-registration.service.ts new file: client/src/app/+admin/moderation/registration-list/index.ts new file: client/src/app/+admin/moderation/registration-list/process-registration-modal.component.html new file: client/src/app/+admin/moderation/registration-list/process-registration-modal.component.ts new file: client/src/app/+admin/moderation/registration-list/process-registration-validators.ts new file: client/src/app/+admin/moderation/registration-list/registration-list.component.html new file: client/src/app/+admin/moderation/registration-list/registration-list.component.scss new file: client/src/app/+admin/moderation/registration-list/registration-list.component.ts new file: client/src/app/+admin/moderation/video-block-list/index.ts new file: client/src/app/+admin/moderation/video-block-list/video-block-list.component.html new file: client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts new file: client/src/app/+admin/moderation/watched-words-list/watched-words-list-admin.component.html new file: client/src/app/+admin/moderation/watched-words-list/watched-words-list-admin.component.ts new file: client/src/app/+admin/overview/comments/index.ts new file: client/src/app/+admin/overview/comments/video-comment-list.component.html new file: client/src/app/+admin/overview/comments/video-comment-list.component.ts new file: client/src/app/+admin/overview/index.ts new file: client/src/app/+admin/overview/overview.routes.ts new file: client/src/app/+admin/overview/users/index.ts new file: client/src/app/+admin/overview/users/user-edit/index.ts new file: client/src/app/+admin/overview/users/user-edit/user-create.component.ts new file: client/src/app/+admin/overview/users/user-edit/user-edit.component.html new file: client/src/app/+admin/overview/users/user-edit/user-edit.component.scss new file: client/src/app/+admin/overview/users/user-edit/user-edit.ts new file: client/src/app/+admin/overview/users/user-edit/user-password.component.html new file: client/src/app/+admin/overview/users/user-edit/user-password.component.scss new file: client/src/app/+admin/overview/users/user-edit/user-password.component.ts new file: client/src/app/+admin/overview/users/user-edit/user-update.component.ts new file: client/src/app/+admin/overview/users/user-list/index.ts new file: client/src/app/+admin/overview/users/user-list/user-list.component.html new file: client/src/app/+admin/overview/users/user-list/user-list.component.scss new file: client/src/app/+admin/overview/users/user-list/user-list.component.ts new file: client/src/app/+admin/overview/videos/index.ts new file: client/src/app/+admin/overview/videos/video-admin.service.ts new file: client/src/app/+admin/overview/videos/video-list.component.html new file: client/src/app/+admin/overview/videos/video-list.component.scss new file: client/src/app/+admin/overview/videos/video-list.component.ts new file: client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.html new file: client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.scss new file: client/src/app/+admin/plugins/plugin-list-installed/plugin-list-installed.component.ts new file: client/src/app/+admin/plugins/plugin-search/plugin-search.component.html new file: client/src/app/+admin/plugins/plugin-search/plugin-search.component.scss new file: client/src/app/+admin/plugins/plugin-search/plugin-search.component.ts new file: client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html new file: client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.ts new file: client/src/app/+admin/plugins/plugins.routes.ts new file: client/src/app/+admin/plugins/shared/plugin-api.service.ts new file: client/src/app/+admin/plugins/shared/plugin-card.component.html new file: client/src/app/+admin/plugins/shared/plugin-card.component.scss new file: client/src/app/+admin/plugins/shared/plugin-card.component.ts new file: client/src/app/+admin/routes.ts new file: client/src/app/+admin/shared/user-email-info.component.html new file: client/src/app/+admin/shared/user-email-info.component.scss new file: client/src/app/+admin/shared/user-email-info.component.ts new file: client/src/app/+admin/shared/user-real-quota-info.component.html new file: client/src/app/+admin/shared/user-real-quota-info.component.ts new file: client/src/app/+admin/system/debug/debug.component.html new file: client/src/app/+admin/system/debug/debug.component.scss new file: client/src/app/+admin/system/debug/debug.component.ts new file: client/src/app/+admin/system/debug/debug.service.ts new file: client/src/app/+admin/system/debug/index.ts new file: client/src/app/+admin/system/index.ts new file: client/src/app/+admin/system/jobs/index.ts new file: client/src/app/+admin/system/jobs/job.service.ts new file: client/src/app/+admin/system/jobs/jobs.component.html new file: client/src/app/+admin/system/jobs/jobs.component.scss new file: client/src/app/+admin/system/jobs/jobs.component.ts new file: client/src/app/+admin/system/logs/index.ts new file: client/src/app/+admin/system/logs/log-row.model.ts new file: client/src/app/+admin/system/logs/logs.component.html new file: client/src/app/+admin/system/logs/logs.component.scss new file: client/src/app/+admin/system/logs/logs.component.ts new file: client/src/app/+admin/system/logs/logs.service.ts new file: client/src/app/+admin/system/runners/index.ts new file: client/src/app/+admin/system/runners/runner-job-list/index.ts new file: client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.html new file: client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.ts new file: client/src/app/+admin/system/runners/runner-list/index.ts new file: client/src/app/+admin/system/runners/runner-list/runner-list.component.html new file: client/src/app/+admin/system/runners/runner-list/runner-list.component.ts new file: client/src/app/+admin/system/runners/runner-registration-token-list/index.ts new file: client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html new file: client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.scss new file: client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.ts new file: client/src/app/+admin/system/runners/runner.service.ts new file: client/src/app/+admin/system/runners/runners.routes.ts new file: client/src/app/+admin/system/system.routes.ts new file: client/src/app/+error-page/error-page.component.html new file: client/src/app/+error-page/error-page.component.scss new file: client/src/app/+error-page/error-page.component.ts new file: client/src/app/+error-page/routes.ts new file: client/src/app/+home/home.component.html new file: client/src/app/+home/home.component.ts new file: client/src/app/+home/routes.ts new file: client/src/app/+login/login.component.html new file: client/src/app/+login/login.component.scss new file: client/src/app/+login/login.component.ts new file: client/src/app/+login/routes.ts new file: client/src/app/+manage/routes.ts new file: client/src/app/+my-account/my-account-abuses/my-account-abuses-list.component.html new file: client/src/app/+my-account/my-account-abuses/my-account-abuses-list.component.ts new file: client/src/app/+my-account/my-account-applications/my-account-applications.component.html new file: client/src/app/+my-account/my-account-applications/my-account-applications.component.scss new file: client/src/app/+my-account/my-account-applications/my-account-applications.component.ts new file: client/src/app/+my-account/my-account-blocklist/my-account-blocklist.component.ts new file: client/src/app/+my-account/my-account-blocklist/my-account-server-blocklist.component.ts new file: client/src/app/+my-account/my-account-import-export/index.ts new file: client/src/app/+my-account/my-account-import-export/my-account-export.component.html new file: client/src/app/+my-account/my-account-import-export/my-account-export.component.scss new file: client/src/app/+my-account/my-account-import-export/my-account-export.component.ts new file: client/src/app/+my-account/my-account-import-export/my-account-import-export.component.html new file: client/src/app/+my-account/my-account-import-export/my-account-import-export.component.ts new file: client/src/app/+my-account/my-account-import-export/my-account-import.component.html new file: client/src/app/+my-account/my-account-import-export/my-account-import.component.scss new file: client/src/app/+my-account/my-account-import-export/my-account-import.component.ts new file: client/src/app/+my-account/my-account-import-export/user-import-export.service.ts new file: client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html new file: client/src/app/+my-account/my-account-notifications/my-account-notifications.component.scss new file: client/src/app/+my-account/my-account-notifications/my-account-notifications.component.ts new file: client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.html new file: client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.scss new file: client/src/app/+my-account/my-account-settings/my-account-change-email/my-account-change-email.component.ts new file: client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html new file: client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.scss new file: client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.ts new file: client/src/app/+my-account/my-account-settings/my-account-danger-zone/my-account-danger-zone.component.html new file: client/src/app/+my-account/my-account-settings/my-account-danger-zone/my-account-danger-zone.component.ts new file: client/src/app/+my-account/my-account-settings/my-account-email-preferences/my-account-email-preferences.component.html new file: client/src/app/+my-account/my-account-settings/my-account-email-preferences/my-account-email-preferences.component.scss new file: client/src/app/+my-account/my-account-settings/my-account-email-preferences/my-account-email-preferences.component.ts new file: client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.html new file: client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.scss new file: client/src/app/+my-account/my-account-settings/my-account-notification-preferences/my-account-notification-preferences.component.ts new file: client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.html new file: client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.scss new file: client/src/app/+my-account/my-account-settings/my-account-profile/my-account-profile.component.ts new file: client/src/app/+my-account/my-account-settings/my-account-settings.component.html new file: client/src/app/+my-account/my-account-settings/my-account-settings.component.scss new file: client/src/app/+my-account/my-account-settings/my-account-settings.component.ts new file: client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor-button.component.html new file: client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor-button.component.ts new file: client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor.component.html new file: client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor.component.scss new file: client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor.component.ts new file: client/src/app/+my-account/my-account.component.html new file: client/src/app/+my-account/my-account.component.ts new file: client/src/app/+my-account/routes.ts new file: client/src/app/+my-library/+my-video-channels/my-video-channels.component.html new file: client/src/app/+my-library/+my-video-channels/my-video-channels.component.scss new file: client/src/app/+my-library/+my-video-channels/my-video-channels.component.ts new file: client/src/app/+my-library/+my-video-channels/routes.ts new file: client/src/app/+my-library/comments-on-my-videos/comments-on-my-videos.component.html new file: client/src/app/+my-library/comments-on-my-videos/comments-on-my-videos.component.ts new file: client/src/app/+my-library/my-auto-tag-policies/automatic-tag.service.ts new file: client/src/app/+my-library/my-auto-tag-policies/my-auto-tag-policies.component.html new file: client/src/app/+my-library/my-auto-tag-policies/my-auto-tag-policies.component.ts new file: client/src/app/+my-library/my-follows/my-followers.component.html new file: client/src/app/+my-library/my-follows/my-followers.component.scss new file: client/src/app/+my-library/my-follows/my-followers.component.ts new file: client/src/app/+my-library/my-follows/my-subscriptions.component.html new file: client/src/app/+my-library/my-follows/my-subscriptions.component.scss new file: client/src/app/+my-library/my-follows/my-subscriptions.component.ts new file: client/src/app/+my-library/my-history/my-history.component.html new file: client/src/app/+my-library/my-history/my-history.component.scss new file: client/src/app/+my-library/my-history/my-history.component.ts new file: client/src/app/+my-library/my-library.component.html new file: client/src/app/+my-library/my-library.component.ts new file: client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.html new file: client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.scss new file: client/src/app/+my-library/my-ownership/my-accept-ownership/my-accept-ownership.component.ts new file: client/src/app/+my-library/my-ownership/my-ownership.component.html new file: client/src/app/+my-library/my-ownership/my-ownership.component.ts new file: client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html new file: client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.ts new file: client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.html new file: client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.scss new file: client/src/app/+my-library/my-video-channel-syncs/video-channel-sync-edit/video-channel-sync-edit.component.ts new file: client/src/app/+my-library/my-video-imports/my-video-imports.component.html new file: client/src/app/+my-library/my-video-imports/my-video-imports.component.scss new file: client/src/app/+my-library/my-video-imports/my-video-imports.component.ts new file: client/src/app/+my-library/my-video-playlists/my-video-playlist-create.component.ts new file: client/src/app/+my-library/my-video-playlists/my-video-playlist-edit.component.html new file: client/src/app/+my-library/my-video-playlists/my-video-playlist-edit.component.scss new file: client/src/app/+my-library/my-video-playlists/my-video-playlist-edit.ts new file: client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.html new file: client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.scss new file: client/src/app/+my-library/my-video-playlists/my-video-playlist-elements.component.ts new file: client/src/app/+my-library/my-video-playlists/my-video-playlist-update.component.ts new file: client/src/app/+my-library/my-video-playlists/my-video-playlists.component.html new file: client/src/app/+my-library/my-video-playlists/my-video-playlists.component.scss new file: client/src/app/+my-library/my-video-playlists/my-video-playlists.component.ts new file: client/src/app/+my-library/my-video-space.component.html new file: client/src/app/+my-library/my-video-space.component.ts new file: client/src/app/+my-library/my-videos/modals/video-change-ownership.component.html new file: client/src/app/+my-library/my-videos/modals/video-change-ownership.component.scss new file: client/src/app/+my-library/my-videos/modals/video-change-ownership.component.ts new file: client/src/app/+my-library/my-videos/my-videos.component.html new file: client/src/app/+my-library/my-videos/my-videos.component.scss new file: client/src/app/+my-library/my-videos/my-videos.component.ts new file: client/src/app/+my-library/my-watched-words-list/my-watched-words-list.component.html new file: client/src/app/+my-library/my-watched-words-list/my-watched-words-list.component.ts new file: client/src/app/+my-library/routes.ts new file: client/src/app/+remote-interaction/remote-interaction.component.html new file: client/src/app/+remote-interaction/remote-interaction.component.ts new file: client/src/app/+remote-interaction/routes.ts new file: client/src/app/+reset-password/reset-password.component.html new file: client/src/app/+reset-password/reset-password.component.scss new file: client/src/app/+reset-password/reset-password.component.ts new file: client/src/app/+reset-password/routes.ts new file: client/src/app/+search/routes.ts new file: client/src/app/+search/search-filters.component.html new file: client/src/app/+search/search-filters.component.scss new file: client/src/app/+search/search-filters.component.ts new file: client/src/app/+search/search.component.html new file: client/src/app/+search/search.component.scss new file: client/src/app/+search/search.component.ts new file: client/src/app/+search/shared/abstract-lazy-load.resolver.ts new file: client/src/app/+search/shared/channel-lazy-load.resolver.ts new file: client/src/app/+search/shared/index.ts new file: client/src/app/+search/shared/playlist-lazy-load.resolver.ts new file: client/src/app/+search/shared/video-lazy-load.resolver.ts new file: client/src/app/+signup/+register/custom-stepper.component.html new file: client/src/app/+signup/+register/custom-stepper.component.scss new file: client/src/app/+signup/+register/custom-stepper.component.ts new file: client/src/app/+signup/+register/register.component.html new file: client/src/app/+signup/+register/register.component.scss new file: client/src/app/+signup/+register/register.component.ts new file: client/src/app/+signup/+register/routes.ts new file: client/src/app/+signup/+register/shared/index.ts new file: client/src/app/+signup/+register/shared/register-validators.ts new file: client/src/app/+signup/+register/steps/register-step-about.component.html new file: client/src/app/+signup/+register/steps/register-step-about.component.scss new file: client/src/app/+signup/+register/steps/register-step-about.component.ts new file: client/src/app/+signup/+register/steps/register-step-channel.component.html new file: client/src/app/+signup/+register/steps/register-step-channel.component.ts new file: client/src/app/+signup/+register/steps/register-step-terms.component.html new file: client/src/app/+signup/+register/steps/register-step-terms.component.ts new file: client/src/app/+signup/+register/steps/register-step-user.component.html new file: client/src/app/+signup/+register/steps/register-step-user.component.ts new file: client/src/app/+signup/+register/steps/step.component.scss new file: client/src/app/+signup/+verify-account/routes.ts new file: client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.html new file: client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.scss new file: client/src/app/+signup/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.ts new file: client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.html new file: client/src/app/+signup/+verify-account/verify-account-email/verify-account-email.component.ts new file: client/src/app/+signup/shared/signup-mascot.component.scss new file: client/src/app/+signup/shared/signup-mascot.component.ts new file: client/src/app/+signup/shared/signup-step-title.component.html new file: client/src/app/+signup/shared/signup-step-title.component.scss new file: client/src/app/+signup/shared/signup-step-title.component.ts new file: client/src/app/+signup/shared/signup-success-after-email.component.html new file: client/src/app/+signup/shared/signup-success-after-email.component.ts new file: client/src/app/+signup/shared/signup-success-before-email.component.html new file: client/src/app/+signup/shared/signup-success-before-email.component.ts new file: client/src/app/+signup/shared/signup-success.component.scss new file: client/src/app/+signup/shared/signup.service.ts new file: client/src/app/+stats/routes.ts new file: client/src/app/+stats/video/index.ts new file: client/src/app/+stats/video/video-stats.component.html new file: client/src/app/+stats/video/video-stats.component.scss new file: client/src/app/+stats/video/video-stats.component.ts new file: client/src/app/+stats/video/video-stats.service.ts new file: client/src/app/+video-channels/routes.ts new file: client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.html new file: client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.scss new file: client/src/app/+video-channels/video-channel-playlists/video-channel-playlists.component.ts new file: client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.html new file: client/src/app/+video-channels/video-channel-videos/video-channel-videos.component.ts new file: client/src/app/+video-channels/video-channels.component.html new file: client/src/app/+video-channels/video-channels.component.scss new file: client/src/app/+video-channels/video-channels.component.ts new file: client/src/app/+video-studio/edit/index.ts new file: client/src/app/+video-studio/edit/video-studio-edit.component.html new file: client/src/app/+video-studio/edit/video-studio-edit.component.scss new file: client/src/app/+video-studio/edit/video-studio-edit.component.ts new file: client/src/app/+video-studio/routes.ts new file: client/src/app/+video-studio/shared/index.ts new file: client/src/app/+video-studio/shared/video-studio.service.ts new file: client/src/app/+videos/+video-edit/add-routes.ts new file: client/src/app/+videos/+video-edit/shared/caption/video-caption-add-modal.component.html new file: client/src/app/+videos/+video-edit/shared/caption/video-caption-add-modal.component.scss new file: client/src/app/+videos/+video-edit/shared/caption/video-caption-add-modal.component.ts new file: client/src/app/+videos/+video-edit/shared/caption/video-caption-edit-modal-content.component.html new file: client/src/app/+videos/+video-edit/shared/caption/video-caption-edit-modal-content.component.scss new file: client/src/app/+videos/+video-edit/shared/caption/video-caption-edit-modal-content.component.ts new file: client/src/app/+videos/+video-edit/shared/i18n-primeng-calendar.service.ts new file: client/src/app/+videos/+video-edit/shared/thumbnail-manager/thumbnail-manager.component.html new file: client/src/app/+videos/+video-edit/shared/thumbnail-manager/thumbnail-manager.component.scss new file: client/src/app/+videos/+video-edit/shared/thumbnail-manager/thumbnail-manager.component.ts new file: client/src/app/+videos/+video-edit/shared/uploaderx-form-data.ts new file: client/src/app/+videos/+video-edit/shared/video-edit-utils.ts new file: client/src/app/+videos/+video-edit/shared/video-edit.component.html new file: client/src/app/+videos/+video-edit/shared/video-edit.component.scss new file: client/src/app/+videos/+video-edit/shared/video-edit.component.ts new file: client/src/app/+videos/+video-edit/shared/video-edit.type.ts new file: client/src/app/+videos/+video-edit/shared/video-upload.service.ts new file: client/src/app/+videos/+video-edit/update-routes.ts new file: client/src/app/+videos/+video-edit/video-add-components/drag-drop.directive.ts new file: client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.html new file: client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.scss new file: client/src/app/+videos/+video-edit/video-add-components/video-go-live.component.ts new file: client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.html new file: client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.scss new file: client/src/app/+videos/+video-edit/video-add-components/video-import-torrent.component.ts new file: client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.html new file: client/src/app/+videos/+video-edit/video-add-components/video-import-url.component.ts new file: client/src/app/+videos/+video-edit/video-add-components/video-send.scss new file: client/src/app/+videos/+video-edit/video-add-components/video-send.ts new file: client/src/app/+videos/+video-edit/video-add-components/video-upload.component.html new file: client/src/app/+videos/+video-edit/video-add-components/video-upload.component.scss new file: client/src/app/+videos/+video-edit/video-add-components/video-upload.component.ts new file: client/src/app/+videos/+video-edit/video-add.component.html new file: client/src/app/+videos/+video-edit/video-add.component.scss new file: client/src/app/+videos/+video-edit/video-add.component.ts new file: client/src/app/+videos/+video-edit/video-update.component.html new file: client/src/app/+videos/+video-edit/video-update.component.ts new file: client/src/app/+videos/+video-edit/video-update.resolver.ts new file: client/src/app/+videos/+video-watch/player-styles.component.scss new file: client/src/app/+videos/+video-watch/player-styles.component.ts new file: client/src/app/+videos/+video-watch/routes.ts new file: client/src/app/+videos/+video-watch/shared/action-buttons/action-buttons.component.html new file: client/src/app/+videos/+video-watch/shared/action-buttons/action-buttons.component.scss new file: client/src/app/+videos/+video-watch/shared/action-buttons/action-buttons.component.ts new file: client/src/app/+videos/+video-watch/shared/action-buttons/index.ts new file: client/src/app/+videos/+video-watch/shared/action-buttons/video-rate.component.html new file: client/src/app/+videos/+video-watch/shared/action-buttons/video-rate.component.scss new file: client/src/app/+videos/+video-watch/shared/action-buttons/video-rate.component.ts new file: client/src/app/+videos/+video-watch/shared/comment/index.ts new file: client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.html new file: client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.scss new file: client/src/app/+videos/+video-watch/shared/comment/video-comment-add.component.ts new file: client/src/app/+videos/+video-watch/shared/comment/video-comment.component.html new file: client/src/app/+videos/+video-watch/shared/comment/video-comment.component.scss new file: client/src/app/+videos/+video-watch/shared/comment/video-comment.component.ts new file: client/src/app/+videos/+video-watch/shared/comment/video-comments.component.html new file: client/src/app/+videos/+video-watch/shared/comment/video-comments.component.scss new file: client/src/app/+videos/+video-watch/shared/comment/video-comments.component.ts new file: client/src/app/+videos/+video-watch/shared/index.ts new file: client/src/app/+videos/+video-watch/shared/information/index.ts new file: client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.html new file: client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.scss new file: client/src/app/+videos/+video-watch/shared/information/privacy-concerns.component.ts new file: client/src/app/+videos/+video-watch/shared/information/video-alert.component.html new file: client/src/app/+videos/+video-watch/shared/information/video-alert.component.ts new file: client/src/app/+videos/+video-watch/shared/metadata/index.ts new file: client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.html new file: client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.scss new file: client/src/app/+videos/+video-watch/shared/metadata/video-attributes.component.ts new file: client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.html new file: client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.scss new file: client/src/app/+videos/+video-watch/shared/metadata/video-avatar-channel.component.ts new file: client/src/app/+videos/+video-watch/shared/metadata/video-description.component.html new file: client/src/app/+videos/+video-watch/shared/metadata/video-description.component.scss new file: client/src/app/+videos/+video-watch/shared/metadata/video-description.component.ts new file: client/src/app/+videos/+video-watch/shared/player-widgets/player-widget.component.scss new file: client/src/app/+videos/+video-watch/shared/player-widgets/video-transcription.component.html new file: client/src/app/+videos/+video-watch/shared/player-widgets/video-transcription.component.scss new file: client/src/app/+videos/+video-watch/shared/player-widgets/video-transcription.component.ts new file: client/src/app/+videos/+video-watch/shared/player-widgets/video-watch-playlist.component.html new file: client/src/app/+videos/+video-watch/shared/player-widgets/video-watch-playlist.component.scss new file: client/src/app/+videos/+video-watch/shared/player-widgets/video-watch-playlist.component.ts new file: client/src/app/+videos/+video-watch/shared/recommendations/index.ts new file: client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.html new file: client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.scss new file: client/src/app/+videos/+video-watch/shared/recommendations/recommended-videos.component.ts new file: client/src/app/+videos/+video-watch/shared/recommendations/video-recommendation.service.ts new file: client/src/app/+videos/+video-watch/shared/timestamp-route-transformer.directive.ts new file: client/src/app/+videos/+video-watch/video-watch.component.html new file: client/src/app/+videos/+video-watch/video-watch.component.scss new file: client/src/app/+videos/+video-watch/video-watch.component.ts new file: client/src/app/+videos/routes.ts new file: client/src/app/+videos/video-list/index.ts new file: client/src/app/+videos/video-list/overview/index.ts new file: client/src/app/+videos/video-list/overview/overview.service.ts new file: client/src/app/+videos/video-list/overview/video-overview.component.html new file: client/src/app/+videos/video-list/overview/video-overview.component.scss new file: client/src/app/+videos/video-list/overview/video-overview.component.ts new file: client/src/app/+videos/video-list/overview/videos-overview.model.ts new file: client/src/app/+videos/video-list/video-user-subscriptions.component.html new file: client/src/app/+videos/video-list/video-user-subscriptions.component.ts new file: client/src/app/+videos/video-list/videos-list-all.component.html new file: client/src/app/+videos/video-list/videos-list-all.component.ts new file: client/src/app/app.component.html new file: client/src/app/app.component.scss new file: client/src/app/app.component.ts new file: client/src/app/app.routes.ts new file: client/src/app/core/auth/auth-status.model.ts new file: client/src/app/core/auth/auth-user.model.ts new file: client/src/app/core/auth/auth.service.ts new file: client/src/app/core/auth/index.ts new file: client/src/app/core/confirm/confirm.service.ts new file: client/src/app/core/confirm/index.ts new file: client/src/app/core/core-providers.ts new file: client/src/app/core/hotkeys/hotkey.model.ts new file: client/src/app/core/hotkeys/hotkeys.service.ts new file: client/src/app/core/hotkeys/index.ts new file: client/src/app/core/index.ts new file: client/src/app/core/menu/index.ts new file: client/src/app/core/menu/menu.service.ts new file: client/src/app/core/notification/index.ts new file: client/src/app/core/notification/notifier.service.ts new file: client/src/app/core/notification/peertube-socket.service.ts new file: client/src/app/core/plugins/hooks.service.ts new file: client/src/app/core/plugins/index.ts new file: client/src/app/core/plugins/plugin.service.ts new file: client/src/app/core/renderer/html-renderer.service.ts new file: client/src/app/core/renderer/index.ts new file: client/src/app/core/renderer/linkifier.service.ts new file: client/src/app/core/renderer/markdown.service.ts new file: client/src/app/core/rest/component-pagination.model.ts new file: client/src/app/core/rest/index.ts new file: client/src/app/core/rest/rest-extractor.service.ts new file: client/src/app/core/rest/rest-pagination.ts new file: client/src/app/core/rest/rest-table.ts new file: client/src/app/core/rest/rest.service.ts new file: client/src/app/core/routing/can-deactivate-guard.service.ts new file: client/src/app/core/routing/custom-reuse-strategy.ts new file: client/src/app/core/routing/disable-for-reuse-hook.ts new file: client/src/app/core/routing/index.ts new file: client/src/app/core/routing/login-guard.service.ts new file: client/src/app/core/routing/meta-guard.service.ts new file: client/src/app/core/routing/meta.service.ts new file: client/src/app/core/routing/peertube-router.service.ts new file: client/src/app/core/routing/preload-selected-modules-list.ts new file: client/src/app/core/routing/redirect.service.ts new file: client/src/app/core/routing/scroll.service.ts new file: client/src/app/core/routing/server-config-resolver.service.ts new file: client/src/app/core/routing/unlogged-guard.service.ts new file: client/src/app/core/routing/user-right-guard.service.ts new file: client/src/app/core/routing/user.resolver.ts new file: client/src/app/core/scoped-tokens/index.ts new file: client/src/app/core/scoped-tokens/scoped-tokens.service.ts new file: client/src/app/core/server/index.ts new file: client/src/app/core/server/server.service.ts new file: client/src/app/core/theme/index.ts new file: client/src/app/core/theme/theme.service.ts new file: client/src/app/core/users/index.ts new file: client/src/app/core/users/user-local-storage.service.ts new file: client/src/app/core/users/user.model.ts new file: client/src/app/core/users/user.service.ts new file: client/src/app/core/wrappers/index.ts new file: client/src/app/core/wrappers/screen.service.ts new file: client/src/app/core/wrappers/storage.service.ts new file: client/src/app/empty.component.ts new file: client/src/app/header/header.component.html new file: client/src/app/header/header.component.scss new file: client/src/app/header/header.component.ts new file: client/src/app/header/notification-dropdown.component.html new file: client/src/app/header/notification-dropdown.component.scss new file: client/src/app/header/notification-dropdown.component.ts new file: client/src/app/header/search-typeahead.component.html new file: client/src/app/header/search-typeahead.component.scss new file: client/src/app/header/search-typeahead.component.ts new file: client/src/app/header/suggestion.component.html new file: client/src/app/header/suggestion.component.scss new file: client/src/app/header/suggestion.component.ts new file: client/src/app/helpers/constants.ts new file: client/src/app/helpers/i18n-utils.ts new file: client/src/app/helpers/index.ts new file: client/src/app/helpers/locales/index.ts new file: client/src/app/helpers/locales/oc.ts new file: client/src/app/helpers/rxjs.ts new file: client/src/app/helpers/utils/channel.ts new file: client/src/app/helpers/utils/date.ts new file: client/src/app/helpers/utils/dom.ts new file: client/src/app/helpers/utils/html.ts new file: client/src/app/helpers/utils/index.ts new file: client/src/app/helpers/utils/object.ts new file: client/src/app/helpers/utils/simple-memoize.ts new file: client/src/app/helpers/utils/upload.ts new file: client/src/app/helpers/utils/url.ts new file: client/src/app/homepage-redirect.component.ts new file: client/src/app/hotkeys/hotkeys-cheat-sheet.component.html new file: client/src/app/hotkeys/hotkeys-cheat-sheet.component.scss new file: client/src/app/hotkeys/hotkeys-cheat-sheet.component.ts new file: client/src/app/menu/home-menu.component.html new file: client/src/app/menu/home-menu.component.ts new file: client/src/app/menu/language-chooser.component.html new file: client/src/app/menu/language-chooser.component.scss new file: client/src/app/menu/language-chooser.component.ts new file: client/src/app/menu/menu.component.html new file: client/src/app/menu/menu.component.scss new file: client/src/app/menu/menu.component.ts new file: client/src/app/menu/quick-settings-modal.component.html new file: client/src/app/menu/quick-settings-modal.component.ts new file: client/src/app/modal/account-setup-warning-modal.component.html new file: client/src/app/modal/account-setup-warning-modal.component.scss new file: client/src/app/modal/account-setup-warning-modal.component.ts new file: client/src/app/modal/admin-welcome-modal.component.html new file: client/src/app/modal/admin-welcome-modal.component.scss new file: client/src/app/modal/admin-welcome-modal.component.ts new file: client/src/app/modal/confirm.component.html new file: client/src/app/modal/confirm.component.scss new file: client/src/app/modal/confirm.component.ts new file: client/src/app/modal/custom-modal.component.html new file: client/src/app/modal/custom-modal.component.scss new file: client/src/app/modal/custom-modal.component.ts new file: client/src/app/modal/instance-config-warning-modal.component.html new file: client/src/app/modal/instance-config-warning-modal.component.scss new file: client/src/app/modal/instance-config-warning-modal.component.ts new file: client/src/app/shared/form-validators/abuse-validators.ts new file: client/src/app/shared/form-validators/common-validators.ts new file: client/src/app/shared/form-validators/custom-config-validators.ts new file: client/src/app/shared/form-validators/form-validator.model.ts new file: client/src/app/shared/form-validators/host-validators.ts new file: client/src/app/shared/form-validators/instance-validators.ts new file: client/src/app/shared/form-validators/login-validators.ts new file: client/src/app/shared/form-validators/reset-password-validators.ts new file: client/src/app/shared/form-validators/shared/validator-utils.ts new file: client/src/app/shared/form-validators/user-validators.ts new file: client/src/app/shared/form-validators/video-block-validators.ts new file: client/src/app/shared/form-validators/video-captions-validators.ts new file: client/src/app/shared/form-validators/video-channel-validators.ts new file: client/src/app/shared/form-validators/video-chapter-validators.ts new file: client/src/app/shared/form-validators/video-comment-validators.ts new file: client/src/app/shared/form-validators/video-ownership-change-validators.ts new file: client/src/app/shared/form-validators/video-playlist-validators.ts new file: client/src/app/shared/form-validators/video-validators.ts new file: client/src/app/shared/form-validators/watched-words-list-validators.ts new file: client/src/app/shared/shared-abuse-list/abuse-details.component.html new file: client/src/app/shared/shared-abuse-list/abuse-details.component.scss new file: client/src/app/shared/shared-abuse-list/abuse-details.component.ts new file: client/src/app/shared/shared-abuse-list/abuse-list-table.component.html new file: client/src/app/shared/shared-abuse-list/abuse-list-table.component.scss new file: client/src/app/shared/shared-abuse-list/abuse-list-table.component.ts new file: client/src/app/shared/shared-abuse-list/abuse-message-modal.component.html new file: client/src/app/shared/shared-abuse-list/abuse-message-modal.component.scss new file: client/src/app/shared/shared-abuse-list/abuse-message-modal.component.ts new file: client/src/app/shared/shared-abuse-list/moderation-comment-modal.component.html new file: client/src/app/shared/shared-abuse-list/moderation-comment-modal.component.scss new file: client/src/app/shared/shared-abuse-list/moderation-comment-modal.component.ts new file: client/src/app/shared/shared-abuse-list/processed-abuse.model.ts new file: client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.html new file: client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.scss new file: client/src/app/shared/shared-actor-image-edit/actor-avatar-edit.component.ts new file: client/src/app/shared/shared-actor-image-edit/actor-banner-edit.component.html new file: client/src/app/shared/shared-actor-image-edit/actor-banner-edit.component.scss new file: client/src/app/shared/shared-actor-image-edit/actor-banner-edit.component.ts new file: client/src/app/shared/shared-actor-image-edit/actor-image-edit.scss new file: client/src/app/shared/shared-actor-image/actor-avatar.component.html new file: client/src/app/shared/shared-actor-image/actor-avatar.component.scss new file: client/src/app/shared/shared-actor-image/actor-avatar.component.ts new file: client/src/app/shared/shared-custom-markup/custom-markup-container.component.html new file: client/src/app/shared/shared-custom-markup/custom-markup-container.component.ts new file: client/src/app/shared/shared-custom-markup/custom-markup-help.component.html new file: client/src/app/shared/shared-custom-markup/custom-markup-help.component.ts new file: client/src/app/shared/shared-custom-markup/custom-markup.service.ts new file: client/src/app/shared/shared-custom-markup/dynamic-element.service.ts new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/button-markup.component.html new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/button-markup.component.scss new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/button-markup.component.ts new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.html new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.scss new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/channel-miniature-markup.component.ts new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/embed-markup.component.ts new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/index.ts new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/instance-avatar-markup.component.html new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/instance-avatar-markup.component.ts new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/instance-banner-markup.component.html new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/instance-banner-markup.component.ts new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/playlist-miniature-markup.component.html new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/playlist-miniature-markup.component.scss new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/playlist-miniature-markup.component.ts new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/shared/custom-markup.component.ts new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/shared/index.ts new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/video-miniature-markup.component.html new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/video-miniature-markup.component.scss new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/video-miniature-markup.component.ts new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.html new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.scss new file: client/src/app/shared/shared-custom-markup/peertube-custom-tags/videos-list-markup.component.ts new file: client/src/app/shared/shared-forms/advanced-input-filter.component.html new file: client/src/app/shared/shared-forms/advanced-input-filter.component.scss new file: client/src/app/shared/shared-forms/advanced-input-filter.component.ts new file: client/src/app/shared/shared-forms/dynamic-form-field.component.html new file: client/src/app/shared/shared-forms/dynamic-form-field.component.scss new file: client/src/app/shared/shared-forms/dynamic-form-field.component.ts new file: client/src/app/shared/shared-forms/form-reactive.service.ts new file: client/src/app/shared/shared-forms/form-reactive.ts new file: client/src/app/shared/shared-forms/form-validator.service.ts new file: client/src/app/shared/shared-forms/input-switch.component.html new file: client/src/app/shared/shared-forms/input-switch.component.scss new file: client/src/app/shared/shared-forms/input-switch.component.ts new file: client/src/app/shared/shared-forms/input-text.component.html new file: client/src/app/shared/shared-forms/input-text.component.scss new file: client/src/app/shared/shared-forms/input-text.component.ts new file: client/src/app/shared/shared-forms/markdown-textarea.component.html new file: client/src/app/shared/shared-forms/markdown-textarea.component.scss new file: client/src/app/shared/shared-forms/markdown-textarea.component.ts new file: client/src/app/shared/shared-forms/peertube-checkbox.component.html new file: client/src/app/shared/shared-forms/peertube-checkbox.component.scss new file: client/src/app/shared/shared-forms/peertube-checkbox.component.ts new file: client/src/app/shared/shared-forms/preview-upload.component.html new file: client/src/app/shared/shared-forms/preview-upload.component.scss new file: client/src/app/shared/shared-forms/preview-upload.component.ts new file: client/src/app/shared/shared-forms/reactive-file.component.html new file: client/src/app/shared/shared-forms/reactive-file.component.scss new file: client/src/app/shared/shared-forms/reactive-file.component.ts new file: client/src/app/shared/shared-forms/select/select-categories.component.ts new file: client/src/app/shared/shared-forms/select/select-channel.component.ts new file: client/src/app/shared/shared-forms/select/select-checkbox-default-all.component.ts new file: client/src/app/shared/shared-forms/select/select-checkbox.component.html new file: client/src/app/shared/shared-forms/select/select-checkbox.component.ts new file: client/src/app/shared/shared-forms/select/select-custom-value.component.html new file: client/src/app/shared/shared-forms/select/select-custom-value.component.ts new file: client/src/app/shared/shared-forms/select/select-languages.component.ts new file: client/src/app/shared/shared-forms/select/select-options.component.html new file: client/src/app/shared/shared-forms/select/select-options.component.scss new file: client/src/app/shared/shared-forms/select/select-options.component.ts new file: client/src/app/shared/shared-forms/select/select-tags.component.html new file: client/src/app/shared/shared-forms/select/select-tags.component.ts new file: client/src/app/shared/shared-forms/shared-form-providers.ts new file: client/src/app/shared/shared-forms/textarea-autoresize.directive.ts new file: client/src/app/shared/shared-forms/timestamp-input.component.html new file: client/src/app/shared/shared-forms/timestamp-input.component.scss new file: client/src/app/shared/shared-forms/timestamp-input.component.ts new file: client/src/app/shared/shared-icons/global-icon.component.scss new file: client/src/app/shared/shared-icons/global-icon.component.ts new file: client/src/app/shared/shared-instance/feature-boolean.component.html new file: client/src/app/shared/shared-instance/feature-boolean.component.scss new file: client/src/app/shared/shared-instance/feature-boolean.component.ts new file: client/src/app/shared/shared-instance/instance-about-accordion.component.html new file: client/src/app/shared/shared-instance/instance-about-accordion.component.scss new file: client/src/app/shared/shared-instance/instance-about-accordion.component.ts new file: client/src/app/shared/shared-instance/instance-banner.component.html new file: client/src/app/shared/shared-instance/instance-banner.component.ts new file: client/src/app/shared/shared-instance/instance-features-table.component.html new file: client/src/app/shared/shared-instance/instance-features-table.component.scss new file: client/src/app/shared/shared-instance/instance-features-table.component.ts new file: client/src/app/shared/shared-instance/instance-follow.service.ts new file: client/src/app/shared/shared-main/account/account.model.ts new file: client/src/app/shared/shared-main/account/account.service.ts new file: client/src/app/shared/shared-main/account/actor.model.ts new file: client/src/app/shared/shared-main/auth/auth-interceptor.service.ts new file: client/src/app/shared/shared-main/buttons/action-dropdown.component.html new file: client/src/app/shared/shared-main/buttons/action-dropdown.component.scss new file: client/src/app/shared/shared-main/buttons/action-dropdown.component.ts new file: client/src/app/shared/shared-main/buttons/button.component.html new file: client/src/app/shared/shared-main/buttons/button.component.scss new file: client/src/app/shared/shared-main/buttons/button.component.ts new file: client/src/app/shared/shared-main/buttons/copy-button.component.html new file: client/src/app/shared/shared-main/buttons/copy-button.component.scss new file: client/src/app/shared/shared-main/buttons/copy-button.component.ts new file: client/src/app/shared/shared-main/buttons/delete-button.component.ts new file: client/src/app/shared/shared-main/buttons/edit-button.component.ts new file: client/src/app/shared/shared-main/buttons/help.component.html new file: client/src/app/shared/shared-main/buttons/help.component.scss new file: client/src/app/shared/shared-main/buttons/help.component.ts new file: client/src/app/shared/shared-main/channel/channels-setup-message.component.html new file: client/src/app/shared/shared-main/channel/channels-setup-message.component.scss new file: client/src/app/shared/shared-main/channel/channels-setup-message.component.ts new file: client/src/app/shared/shared-main/channel/video-channel-sync.service.ts new file: client/src/app/shared/shared-main/channel/video-channel.model.ts new file: client/src/app/shared/shared-main/channel/video-channel.service.ts new file: client/src/app/shared/shared-main/common/alert.component.html new file: client/src/app/shared/shared-main/common/alert.component.scss new file: client/src/app/shared/shared-main/common/alert.component.ts new file: client/src/app/shared/shared-main/common/auto-colspan.directive.ts new file: client/src/app/shared/shared-main/common/autofocus.directive.ts new file: client/src/app/shared/shared-main/common/bytes.pipe.ts new file: client/src/app/shared/shared-main/common/date.pipe.ts new file: client/src/app/shared/shared-main/common/defer-loading.directive.ts new file: client/src/app/shared/shared-main/common/infinite-scroller.directive.ts new file: client/src/app/shared/shared-main/common/link.component.html new file: client/src/app/shared/shared-main/common/link.component.scss new file: client/src/app/shared/shared-main/common/link.component.ts new file: client/src/app/shared/shared-main/common/loader.component.ts new file: client/src/app/shared/shared-main/common/nl2br.pipe.ts new file: client/src/app/shared/shared-main/common/number-formatter.pipe.ts new file: client/src/app/shared/shared-main/common/peertube-template.directive.ts new file: client/src/app/shared/shared-main/common/progress-bar.component.html new file: client/src/app/shared/shared-main/common/progress-bar.component.scss new file: client/src/app/shared/shared-main/common/progress-bar.component.ts new file: client/src/app/shared/shared-main/custom-page/custom-page.service.ts new file: client/src/app/shared/shared-main/date/date-toggle.component.html new file: client/src/app/shared/shared-main/date/date-toggle.component.scss new file: client/src/app/shared/shared-main/date/date-toggle.component.ts new file: client/src/app/shared/shared-main/date/days-duration-formatter.pipe.ts new file: client/src/app/shared/shared-main/date/from-now.pipe.ts new file: client/src/app/shared/shared-main/date/time-duration-formatter.pipe.ts new file: client/src/app/shared/shared-main/feeds/feed.component.html new file: client/src/app/shared/shared-main/feeds/feed.component.scss new file: client/src/app/shared/shared-main/feeds/feed.component.ts new file: client/src/app/shared/shared-main/feeds/syndication.model.ts new file: client/src/app/shared/shared-main/instance/instance.service.ts new file: client/src/app/shared/shared-main/main-providers.ts new file: client/src/app/shared/shared-main/menu/horizontal-menu.component.html new file: client/src/app/shared/shared-main/menu/horizontal-menu.component.scss new file: client/src/app/shared/shared-main/menu/horizontal-menu.component.ts new file: client/src/app/shared/shared-main/menu/list-overflow.component.html new file: client/src/app/shared/shared-main/menu/list-overflow.component.scss new file: client/src/app/shared/shared-main/menu/list-overflow.component.ts new file: client/src/app/shared/shared-main/peertube-modal/peertube-modal.service.ts new file: client/src/app/shared/shared-main/plugins/plugin-placeholder.component.scss new file: client/src/app/shared/shared-main/plugins/plugin-placeholder.component.ts new file: client/src/app/shared/shared-main/plugins/plugin-selector.directive.ts new file: client/src/app/shared/shared-main/router/actor-redirect-guard.service.ts new file: client/src/app/shared/shared-main/search/simple-search-input.component.html new file: client/src/app/shared/shared-main/search/simple-search-input.component.scss new file: client/src/app/shared/shared-main/search/simple-search-input.component.ts new file: client/src/app/shared/shared-main/users/login-link.component.html new file: client/src/app/shared/shared-main/users/login-link.component.scss new file: client/src/app/shared/shared-main/users/login-link.component.ts new file: client/src/app/shared/shared-main/users/signup-label.component.html new file: client/src/app/shared/shared-main/users/signup-label.component.ts new file: client/src/app/shared/shared-main/users/user-history.service.ts new file: client/src/app/shared/shared-main/users/user-notification.model.ts new file: client/src/app/shared/shared-main/users/user-notification.service.ts new file: client/src/app/shared/shared-main/users/user-quota.component.html new file: client/src/app/shared/shared-main/users/user-quota.component.ts new file: client/src/app/shared/shared-main/video-caption/video-caption-edit.model.ts new file: client/src/app/shared/shared-main/video-caption/video-caption.service.ts new file: client/src/app/shared/shared-main/video/embed.component.html new file: client/src/app/shared/shared-main/video/embed.component.scss new file: client/src/app/shared/shared-main/video/embed.component.ts new file: client/src/app/shared/shared-main/video/redundancy.service.ts new file: client/src/app/shared/shared-main/video/video-chapter.service.ts new file: client/src/app/shared/shared-main/video/video-chapters-edit.model.ts new file: client/src/app/shared/shared-main/video/video-details.model.ts new file: client/src/app/shared/shared-main/video/video-edit.model.ts new file: client/src/app/shared/shared-main/video/video-file-token.service.ts new file: client/src/app/shared/shared-main/video/video-import.service.ts new file: client/src/app/shared/shared-main/video/video-ownership.service.ts new file: client/src/app/shared/shared-main/video/video-password.service.ts new file: client/src/app/shared/shared-main/video/video.model.ts new file: client/src/app/shared/shared-main/video/video.resolver.ts new file: client/src/app/shared/shared-main/video/video.service.ts new file: client/src/app/shared/shared-moderation/abuse.service.ts new file: client/src/app/shared/shared-moderation/account-block-badges.component.html new file: client/src/app/shared/shared-moderation/account-block-badges.component.scss new file: client/src/app/shared/shared-moderation/account-block-badges.component.ts new file: client/src/app/shared/shared-moderation/account-block.model.ts new file: client/src/app/shared/shared-moderation/account-blocklist.component.html new file: client/src/app/shared/shared-moderation/account-blocklist.component.ts new file: client/src/app/shared/shared-moderation/batch-domains-modal.component.html new file: client/src/app/shared/shared-moderation/batch-domains-modal.component.scss new file: client/src/app/shared/shared-moderation/batch-domains-modal.component.ts new file: client/src/app/shared/shared-moderation/blocklist.service.ts new file: client/src/app/shared/shared-moderation/bulk.service.ts new file: client/src/app/shared/shared-moderation/moderation.scss new file: client/src/app/shared/shared-moderation/report-modals/account-report.component.ts new file: client/src/app/shared/shared-moderation/report-modals/comment-report.component.ts new file: client/src/app/shared/shared-moderation/report-modals/index.ts new file: client/src/app/shared/shared-moderation/report-modals/report.component.html new file: client/src/app/shared/shared-moderation/report-modals/report.component.scss new file: client/src/app/shared/shared-moderation/report-modals/video-report.component.html new file: client/src/app/shared/shared-moderation/report-modals/video-report.component.ts new file: client/src/app/shared/shared-moderation/server-blocklist.component.html new file: client/src/app/shared/shared-moderation/server-blocklist.component.scss new file: client/src/app/shared/shared-moderation/server-blocklist.component.ts new file: client/src/app/shared/shared-moderation/user-ban-modal.component.html new file: client/src/app/shared/shared-moderation/user-ban-modal.component.scss new file: client/src/app/shared/shared-moderation/user-ban-modal.component.ts new file: client/src/app/shared/shared-moderation/user-moderation-dropdown.component.html new file: client/src/app/shared/shared-moderation/user-moderation-dropdown.component.ts new file: client/src/app/shared/shared-moderation/video-block.component.html new file: client/src/app/shared/shared-moderation/video-block.component.scss new file: client/src/app/shared/shared-moderation/video-block.component.ts new file: client/src/app/shared/shared-moderation/video-block.service.ts new file: client/src/app/shared/shared-plugin-pages/index.ts new file: client/src/app/shared/shared-plugin-pages/plugin-pages.component.html new file: client/src/app/shared/shared-plugin-pages/plugin-pages.component.ts new file: client/src/app/shared/shared-plugin-pages/routes.ts new file: client/src/app/shared/shared-search/advanced-search.model.ts new file: client/src/app/shared/shared-search/find-in-bulk.service.ts new file: client/src/app/shared/shared-search/search.service.ts new file: client/src/app/shared/shared-share-modal/video-share.component.html new file: client/src/app/shared/shared-share-modal/video-share.component.scss new file: client/src/app/shared/shared-share-modal/video-share.component.ts new file: client/src/app/shared/shared-support-modal/support-modal.component.html new file: client/src/app/shared/shared-support-modal/support-modal.component.ts new file: client/src/app/shared/shared-tables/table-expander-icon.component.ts new file: client/src/app/shared/shared-tables/video-cell.component.html new file: client/src/app/shared/shared-tables/video-cell.component.scss new file: client/src/app/shared/shared-tables/video-cell.component.ts new file: client/src/app/shared/shared-thumbnail/video-thumbnail.component.html new file: client/src/app/shared/shared-thumbnail/video-thumbnail.component.scss new file: client/src/app/shared/shared-thumbnail/video-thumbnail.component.ts new file: client/src/app/shared/shared-user-settings/user-interface-settings.component.html new file: client/src/app/shared/shared-user-settings/user-interface-settings.component.scss new file: client/src/app/shared/shared-user-settings/user-interface-settings.component.ts new file: client/src/app/shared/shared-user-settings/user-video-settings.component.html new file: client/src/app/shared/shared-user-settings/user-video-settings.component.scss new file: client/src/app/shared/shared-user-settings/user-video-settings.component.ts new file: client/src/app/shared/shared-user-subscription/remote-subscribe.component.html new file: client/src/app/shared/shared-user-subscription/remote-subscribe.component.ts new file: client/src/app/shared/shared-user-subscription/subscribe-button.component.html new file: client/src/app/shared/shared-user-subscription/subscribe-button.component.scss new file: client/src/app/shared/shared-user-subscription/subscribe-button.component.ts new file: client/src/app/shared/shared-user-subscription/user-subscription.service.ts new file: client/src/app/shared/shared-users/two-factor.service.ts new file: client/src/app/shared/shared-users/user-admin.service.ts new file: client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.html new file: client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.scss new file: client/src/app/shared/shared-video-comment/video-comment-list-admin-owner.component.ts new file: client/src/app/shared/shared-video-comment/video-comment-thread-tree.model.ts new file: client/src/app/shared/shared-video-comment/video-comment.model.ts new file: client/src/app/shared/shared-video-comment/video-comment.service.ts new file: client/src/app/shared/shared-video-live/live-documentation-link.component.html new file: client/src/app/shared/shared-video-live/live-documentation-link.component.ts new file: client/src/app/shared/shared-video-live/live-stream-information.component.html new file: client/src/app/shared/shared-video-live/live-stream-information.component.scss new file: client/src/app/shared/shared-video-live/live-stream-information.component.ts new file: client/src/app/shared/shared-video-live/live-video.service.ts new file: client/src/app/shared/shared-video-miniature/download/subtitle-files-download.component.html new file: client/src/app/shared/shared-video-miniature/download/subtitle-files-download.component.ts new file: client/src/app/shared/shared-video-miniature/download/video-download.component.html new file: client/src/app/shared/shared-video-miniature/download/video-download.component.scss new file: client/src/app/shared/shared-video-miniature/download/video-download.component.ts new file: client/src/app/shared/shared-video-miniature/download/video-files-download.component.html new file: client/src/app/shared/shared-video-miniature/download/video-files-download.component.scss new file: client/src/app/shared/shared-video-miniature/download/video-files-download.component.ts new file: client/src/app/shared/shared-video-miniature/download/video-generate-download.component.html new file: client/src/app/shared/shared-video-miniature/download/video-generate-download.component.scss new file: client/src/app/shared/shared-video-miniature/download/video-generate-download.component.ts new file: client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.html new file: client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.scss new file: client/src/app/shared/shared-video-miniature/video-actions-dropdown.component.ts new file: client/src/app/shared/shared-video-miniature/video-filters-header.component.html new file: client/src/app/shared/shared-video-miniature/video-filters-header.component.scss new file: client/src/app/shared/shared-video-miniature/video-filters-header.component.ts new file: client/src/app/shared/shared-video-miniature/video-filters.model.ts new file: client/src/app/shared/shared-video-miniature/video-miniature.component.html new file: client/src/app/shared/shared-video-miniature/video-miniature.component.scss new file: client/src/app/shared/shared-video-miniature/video-miniature.component.ts new file: client/src/app/shared/shared-video-miniature/videos-list.component.html new file: client/src/app/shared/shared-video-miniature/videos-list.component.scss new file: client/src/app/shared/shared-video-miniature/videos-list.component.ts new file: client/src/app/shared/shared-video-miniature/videos-selection.component.html new file: client/src/app/shared/shared-video-miniature/videos-selection.component.scss new file: client/src/app/shared/shared-video-miniature/videos-selection.component.ts new file: client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.html new file: client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.scss new file: client/src/app/shared/shared-video-playlist/video-add-to-playlist.component.ts new file: client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.html new file: client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.scss new file: client/src/app/shared/shared-video-playlist/video-playlist-element-miniature.component.ts new file: client/src/app/shared/shared-video-playlist/video-playlist-element.model.ts new file: client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.html new file: client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.scss new file: client/src/app/shared/shared-video-playlist/video-playlist-miniature.component.ts new file: client/src/app/shared/shared-video-playlist/video-playlist.model.ts new file: client/src/app/shared/shared-video-playlist/video-playlist.service.ts new file: client/src/app/shared/shared-video/video-views-counter.component.html new file: client/src/app/shared/shared-video/video-views-counter.component.scss new file: client/src/app/shared/shared-video/video-views-counter.component.ts new file: client/src/app/shared/standalone-channels/video-channel-create.component.ts new file: client/src/app/shared/standalone-channels/video-channel-edit.component.html new file: client/src/app/shared/standalone-channels/video-channel-edit.component.scss new file: client/src/app/shared/standalone-channels/video-channel-edit.ts new file: client/src/app/shared/standalone-channels/video-channel-update.component.ts new file: client/src/app/shared/standalone-notifications/user-notifications.component.html new file: client/src/app/shared/standalone-notifications/user-notifications.component.scss new file: client/src/app/shared/standalone-notifications/user-notifications.component.ts new file: client/src/app/shared/standalone-upload/upload-progress.component.html new file: client/src/app/shared/standalone-upload/upload-progress.component.scss new file: client/src/app/shared/standalone-upload/upload-progress.component.ts new file: client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.html new file: client/src/app/shared/standalone-watched-words/watched-words-list-admin-owner.component.ts new file: client/src/app/shared/standalone-watched-words/watched-words-list-save-modal.component.html new file: client/src/app/shared/standalone-watched-words/watched-words-list-save-modal.component.scss new file: client/src/app/shared/standalone-watched-words/watched-words-list-save-modal.component.ts new file: client/src/app/shared/standalone-watched-words/watched-words-list.service.ts new file: client/src/app/videos-parent.component.html new file: client/src/app/videos-parent.component.ts new file: client/src/assets/images/default-avatar-account-48x48.png new file: client/src/assets/images/default-avatar-account.png new file: client/src/assets/images/default-avatar-video-channel-48x48.png new file: client/src/assets/images/default-avatar-video-channel.png new file: client/src/assets/images/default-playlist.jpg new file: client/src/assets/images/favicon.png new file: client/src/assets/images/feather/airplay.svg new file: client/src/assets/images/feather/alert.svg new file: client/src/assets/images/feather/award.svg new file: client/src/assets/images/feather/bell.svg new file: client/src/assets/images/feather/channel.svg new file: client/src/assets/images/feather/check-circle.svg new file: client/src/assets/images/feather/check.svg new file: client/src/assets/images/feather/chevron-left.svg new file: client/src/assets/images/feather/chevrons-up.svg new file: client/src/assets/images/feather/clock-arrow-down.svg new file: client/src/assets/images/feather/clock.svg new file: client/src/assets/images/feather/cloud-download.svg new file: client/src/assets/images/feather/cloud-off.svg new file: client/src/assets/images/feather/codesandbox.svg new file: client/src/assets/images/feather/cog.svg new file: client/src/assets/images/feather/columns.svg new file: client/src/assets/images/feather/config.svg new file: client/src/assets/images/feather/copy.svg new file: client/src/assets/images/feather/corner-up-left.svg new file: client/src/assets/images/feather/delete.svg new file: client/src/assets/images/feather/dislike.svg new file: client/src/assets/images/feather/download.svg new file: client/src/assets/images/feather/edit-2.svg new file: client/src/assets/images/feather/external-link.svg new file: client/src/assets/images/feather/eye-off.svg new file: client/src/assets/images/feather/eye.svg new file: client/src/assets/images/feather/film.svg new file: client/src/assets/images/feather/filter.svg new file: client/src/assets/images/feather/flag.svg new file: client/src/assets/images/feather/globe.svg new file: client/src/assets/images/feather/help.svg new file: client/src/assets/images/feather/history.svg new file: client/src/assets/images/feather/home.svg new file: client/src/assets/images/feather/keyboard.svg new file: client/src/assets/images/feather/like.svg new file: client/src/assets/images/feather/live.svg new file: client/src/assets/images/feather/log-in.svg new file: client/src/assets/images/feather/log-out.svg new file: client/src/assets/images/feather/maximize.svg new file: client/src/assets/images/feather/menu.svg new file: client/src/assets/images/feather/message-circle.svg new file: client/src/assets/images/feather/minimize.svg new file: client/src/assets/images/feather/moderation.svg new file: client/src/assets/images/feather/more-horizontal.svg new file: client/src/assets/images/feather/more-vertical.svg new file: client/src/assets/images/feather/move-right.svg new file: client/src/assets/images/feather/no.svg new file: client/src/assets/images/feather/opened-bell.svg new file: client/src/assets/images/feather/overview.svg new file: client/src/assets/images/feather/play.svg new file: client/src/assets/images/feather/playlists.svg new file: client/src/assets/images/feather/plus.svg new file: client/src/assets/images/feather/refresh-cw.svg new file: client/src/assets/images/feather/registry.svg new file: client/src/assets/images/feather/repeat.svg new file: client/src/assets/images/feather/search.svg new file: client/src/assets/images/feather/share-2.svg new file: client/src/assets/images/feather/share.svg new file: client/src/assets/images/feather/skip-back.svg new file: client/src/assets/images/feather/skip-forward.svg new file: client/src/assets/images/feather/stats.svg new file: client/src/assets/images/feather/subscriptions.svg new file: client/src/assets/images/feather/syndication.svg new file: client/src/assets/images/feather/trending.svg new file: client/src/assets/images/feather/undo.svg new file: client/src/assets/images/feather/upload.svg new file: client/src/assets/images/feather/user-plus.svg new file: client/src/assets/images/feather/user-x.svg new file: client/src/assets/images/feather/user.svg new file: client/src/assets/images/feather/users.svg new file: client/src/assets/images/feather/videos.svg new file: client/src/assets/images/feather/x.svg new file: client/src/assets/images/icons/icon-144x144.png new file: client/src/assets/images/icons/icon-192x192.png new file: client/src/assets/images/icons/icon-36x36.png new file: client/src/assets/images/icons/icon-48x48.png new file: client/src/assets/images/icons/icon-512x512.png new file: client/src/assets/images/icons/icon-72x72.png new file: client/src/assets/images/icons/icon-96x96.png new file: client/src/assets/images/logo.svg new file: client/src/assets/images/mascot/arguing.svg new file: client/src/assets/images/mascot/default.svg new file: client/src/assets/images/mascot/defeated.svg new file: client/src/assets/images/mascot/happy.svg new file: client/src/assets/images/mascot/oh.svg new file: client/src/assets/images/mascot/pointing.svg new file: client/src/assets/images/mascot/register/about.svg new file: client/src/assets/images/mascot/register/account.svg new file: client/src/assets/images/mascot/register/channel.svg new file: client/src/assets/images/mascot/register/success.svg new file: client/src/assets/images/mascot/register/terms.svg new file: client/src/assets/images/misc/account-arrow-left.svg new file: client/src/assets/images/misc/account-arrow-right.svg new file: client/src/assets/images/misc/flame.svg new file: client/src/assets/images/misc/language.svg new file: client/src/assets/images/misc/markdown.svg new file: client/src/assets/images/misc/miscellaneous-services.svg new file: client/src/assets/images/misc/peertube-x.svg new file: client/src/assets/images/misc/playlist-add.svg new file: client/src/assets/images/misc/shield.svg new file: client/src/assets/images/misc/support.svg new file: client/src/assets/images/misc/tip.svg new file: client/src/assets/images/misc/video-lang.svg new file: client/src/assets/player/images/arrow-down.svg new file: client/src/assets/player/images/arrow-up.svg new file: client/src/assets/player/images/big-play-button.svg new file: client/src/assets/player/images/code.svg new file: client/src/assets/player/images/fullscreen.svg new file: client/src/assets/player/images/info.svg new file: client/src/assets/player/images/link-2.svg new file: client/src/assets/player/images/next.svg new file: client/src/assets/player/images/repeat.svg new file: client/src/assets/player/images/settings.svg new file: client/src/assets/player/images/theater.svg new file: client/src/assets/player/images/tick-white.svg new file: client/src/assets/player/images/volume-mute.svg new file: client/src/assets/player/images/volume.svg new file: client/src/assets/player/index.ts new file: client/src/assets/player/peertube-player-local-storage.ts new file: client/src/assets/player/peertube-player.ts new file: client/src/assets/player/shared/bezels/bezels-plugin.ts new file: client/src/assets/player/shared/bezels/index.ts new file: client/src/assets/player/shared/bezels/pause-bezel.ts new file: client/src/assets/player/shared/common/index.ts new file: client/src/assets/player/shared/common/utils.ts new file: client/src/assets/player/shared/context-menu/context-menu-item.ts new file: client/src/assets/player/shared/context-menu/context-menu-plugin.ts new file: client/src/assets/player/shared/context-menu/context-menu.ts new file: client/src/assets/player/shared/context-menu/index.ts new file: client/src/assets/player/shared/context-menu/util.ts new file: client/src/assets/player/shared/control-bar/caption-toggle-button.ts new file: client/src/assets/player/shared/control-bar/chapters-plugin.ts new file: client/src/assets/player/shared/control-bar/index.ts new file: client/src/assets/player/shared/control-bar/next-previous-video-button.ts new file: client/src/assets/player/shared/control-bar/p2p-info-button.ts new file: client/src/assets/player/shared/control-bar/peertube-link-button.ts new file: client/src/assets/player/shared/control-bar/peertube-live-display.ts new file: client/src/assets/player/shared/control-bar/progress-bar-marker-component.ts new file: client/src/assets/player/shared/control-bar/storyboard-plugin.ts new file: client/src/assets/player/shared/control-bar/theater-button.ts new file: client/src/assets/player/shared/control-bar/time-tooltip.ts new file: client/src/assets/player/shared/dock/index.ts new file: client/src/assets/player/shared/dock/peertube-dock-component.ts new file: client/src/assets/player/shared/dock/peertube-dock-plugin.ts new file: client/src/assets/player/shared/hotkeys/index.ts new file: client/src/assets/player/shared/hotkeys/peertube-hotkeys-plugin.ts new file: client/src/assets/player/shared/metrics/index.ts new file: client/src/assets/player/shared/metrics/metrics-plugin.ts new file: client/src/assets/player/shared/mobile/index.ts new file: client/src/assets/player/shared/mobile/peertube-mobile-buttons.ts new file: client/src/assets/player/shared/mobile/peertube-mobile-plugin.ts new file: client/src/assets/player/shared/p2p-media-loader/hls-plugin.ts new file: client/src/assets/player/shared/p2p-media-loader/index.ts new file: client/src/assets/player/shared/p2p-media-loader/p2p-media-loader-plugin.ts new file: client/src/assets/player/shared/p2p-media-loader/redundancy-url-manager.ts new file: client/src/assets/player/shared/p2p-media-loader/segment-url-builder.ts new file: client/src/assets/player/shared/p2p-media-loader/segment-validator.ts new file: client/src/assets/player/shared/peertube/index.ts new file: client/src/assets/player/shared/peertube/peertube-plugin.ts new file: client/src/assets/player/shared/player-options-builder/control-bar-options-builder.ts new file: client/src/assets/player/shared/player-options-builder/hls-options-builder.ts new file: client/src/assets/player/shared/player-options-builder/index.ts new file: client/src/assets/player/shared/player-options-builder/web-video-options-builder.ts new file: client/src/assets/player/shared/playlist/index.ts new file: client/src/assets/player/shared/playlist/playlist-button.ts new file: client/src/assets/player/shared/playlist/playlist-menu-item.ts new file: client/src/assets/player/shared/playlist/playlist-menu.ts new file: client/src/assets/player/shared/playlist/playlist-plugin.ts new file: client/src/assets/player/shared/resolutions/index.ts new file: client/src/assets/player/shared/resolutions/peertube-resolutions-plugin.ts new file: client/src/assets/player/shared/settings/index.ts new file: client/src/assets/player/shared/settings/menu-focus-fixed.ts new file: client/src/assets/player/shared/settings/resolution-menu-button.ts new file: client/src/assets/player/shared/settings/resolution-menu-item.ts new file: client/src/assets/player/shared/settings/settings-dialog.ts new file: client/src/assets/player/shared/settings/settings-menu-button.ts new file: client/src/assets/player/shared/settings/settings-menu-item.ts new file: client/src/assets/player/shared/settings/settings-panel-child.ts new file: client/src/assets/player/shared/settings/settings-panel.ts new file: client/src/assets/player/shared/stats/index.ts new file: client/src/assets/player/shared/stats/stats-card.ts new file: client/src/assets/player/shared/stats/stats-plugin.ts new file: client/src/assets/player/shared/upnext/end-card.ts new file: client/src/assets/player/shared/upnext/index.ts new file: client/src/assets/player/shared/upnext/upnext-plugin.ts new file: client/src/assets/player/shared/web-video/web-video-plugin.ts new file: client/src/assets/player/translations-manager.ts new file: client/src/assets/player/types/index.ts new file: client/src/assets/player/types/peertube-player-options.ts new file: client/src/assets/player/types/peertube-videojs-typings.ts new file: client/src/environments/environment.e2e.ts new file: client/src/environments/environment.hmr.ts new file: client/src/environments/environment.prod.ts new file: client/src/environments/environment.ts new file: client/src/index.html new file: client/src/locale/angular.ar.xlf new file: client/src/locale/angular.bg.xlf new file: client/src/locale/angular.bn-BD.xlf new file: client/src/locale/angular.bn.xlf new file: client/src/locale/angular.ca-ES.xlf new file: client/src/locale/angular.cs-CZ.xlf new file: client/src/locale/angular.da-DK.xlf new file: client/src/locale/angular.de-DE.xlf new file: client/src/locale/angular.el-GR.xlf new file: client/src/locale/angular.en-GB.xlf new file: client/src/locale/angular.en-US.xlf new file: client/src/locale/angular.eo.xlf new file: client/src/locale/angular.es-ES.xlf new file: client/src/locale/angular.eu-ES.xlf new file: client/src/locale/angular.fa-IR.xlf new file: client/src/locale/angular.fi-FI.xlf new file: client/src/locale/angular.fr-FR.xlf new file: client/src/locale/angular.fr.xlf new file: client/src/locale/angular.gd.xlf new file: client/src/locale/angular.gl-ES.xlf new file: client/src/locale/angular.he.xlf new file: client/src/locale/angular.hr.xlf new file: client/src/locale/angular.hu-HU.xlf new file: client/src/locale/angular.ia.xlf new file: client/src/locale/angular.id.xlf new file: client/src/locale/angular.is.xlf new file: client/src/locale/angular.it-IT.xlf new file: client/src/locale/angular.ja-JP.xlf new file: client/src/locale/angular.jbo.xlf new file: client/src/locale/angular.kab.xlf new file: client/src/locale/angular.kk.xlf new file: client/src/locale/angular.kn.xlf new file: client/src/locale/angular.ko-KR.xlf new file: client/src/locale/angular.la.xlf new file: client/src/locale/angular.lt-LT.xlf new file: client/src/locale/angular.mk.xlf new file: client/src/locale/angular.ml.xlf new file: client/src/locale/angular.nb-NO.xlf new file: client/src/locale/angular.nl-NL.xlf new file: client/src/locale/angular.nn.xlf new file: client/src/locale/angular.oc.xlf new file: client/src/locale/angular.pl-PL.xlf new file: client/src/locale/angular.pt-BR.xlf new file: client/src/locale/angular.pt-PT.xlf new file: client/src/locale/angular.pt.xlf new file: client/src/locale/angular.ro.xlf new file: client/src/locale/angular.ru-RU.xlf new file: client/src/locale/angular.sc.xlf new file: client/src/locale/angular.sk-SK.xlf new file: client/src/locale/angular.sl-SI.xlf new file: client/src/locale/angular.sq.xlf new file: client/src/locale/angular.sr-Cyrl.xlf new file: client/src/locale/angular.sv-SE.xlf new file: client/src/locale/angular.ta.xlf new file: client/src/locale/angular.th-TH.xlf new file: client/src/locale/angular.tok.xlf new file: client/src/locale/angular.tp.xlf new file: client/src/locale/angular.tr-TR.xlf new file: client/src/locale/angular.tt.xlf new file: client/src/locale/angular.tzm.xlf new file: client/src/locale/angular.uk-UA.xlf new file: client/src/locale/angular.vi-VN.xlf new file: client/src/locale/angular.xlf new file: client/src/locale/angular.zh-Hans-CN.xlf new file: client/src/locale/angular.zh-Hant-HK.xlf new file: client/src/locale/angular.zh-Hant-TW.xlf new file: client/src/locale/player.ar.json new file: client/src/locale/player.bg.json new file: client/src/locale/player.bn.json new file: client/src/locale/player.bn_BD.json new file: client/src/locale/player.ca-ES.json new file: client/src/locale/player.cs-CZ.json new file: client/src/locale/player.da-DK.json new file: client/src/locale/player.de-DE.json new file: client/src/locale/player.el-GR.json new file: client/src/locale/player.en-GB.json new file: client/src/locale/player.en-US.json new file: client/src/locale/player.eo.json new file: client/src/locale/player.es-ES.json new file: client/src/locale/player.eu-ES.json new file: client/src/locale/player.fa-IR.json new file: client/src/locale/player.fi-FI.json new file: client/src/locale/player.fr-FR.json new file: client/src/locale/player.fr.json new file: client/src/locale/player.gd.json new file: client/src/locale/player.gl-ES.json new file: client/src/locale/player.he.json new file: client/src/locale/player.hr.json new file: client/src/locale/player.hu-HU.json new file: client/src/locale/player.id.json new file: client/src/locale/player.is.json new file: client/src/locale/player.it-IT.json new file: client/src/locale/player.ja-JP.json new file: client/src/locale/player.jbo.json new file: client/src/locale/player.kab.json new file: client/src/locale/player.kk.json new file: client/src/locale/player.ko.json new file: client/src/locale/player.la.json new file: client/src/locale/player.lt-LT.json new file: client/src/locale/player.ml.json new file: client/src/locale/player.nb-NO.json new file: client/src/locale/player.nl-NL.json new file: client/src/locale/player.nn.json new file: client/src/locale/player.oc.json new file: client/src/locale/player.pl-PL.json new file: client/src/locale/player.pt-BR.json new file: client/src/locale/player.pt-PT.json new file: client/src/locale/player.pt.json new file: client/src/locale/player.ro.json new file: client/src/locale/player.ru-RU.json new file: client/src/locale/player.si.json new file: client/src/locale/player.sk-SK.json new file: client/src/locale/player.sl-SI.json new file: client/src/locale/player.sq.json new file: client/src/locale/player.sr_Cyrl.json new file: client/src/locale/player.sv-SE.json new file: client/src/locale/player.ta.json new file: client/src/locale/player.th-TH.json new file: client/src/locale/player.tok.json new file: client/src/locale/player.tp.json new file: client/src/locale/player.tr-TR.json new file: client/src/locale/player.tzm.json new file: client/src/locale/player.uk-UA.json new file: client/src/locale/player.vi-VN.json new file: client/src/locale/player.zh-Hans-CN.json new file: client/src/locale/player.zh-Hant-TW.json new file: client/src/locale/player.zh_HANT-TW.json new file: client/src/locale/server.ar.json new file: client/src/locale/server.bg.json new file: client/src/locale/server.bn.json new file: client/src/locale/server.bn_BD.json new file: client/src/locale/server.ca-ES.json new file: client/src/locale/server.cs-CZ.json new file: client/src/locale/server.da-DK.json new file: client/src/locale/server.de-DE.json new file: client/src/locale/server.el-GR.json new file: client/src/locale/server.en-GB.json new file: client/src/locale/server.en-US.json new file: client/src/locale/server.eo.json new file: client/src/locale/server.es-ES.json new file: client/src/locale/server.eu-ES.json new file: client/src/locale/server.fa-IR.json new file: client/src/locale/server.fi-FI.json new file: client/src/locale/server.fr-FR.json new file: client/src/locale/server.fr.json new file: client/src/locale/server.gd.json new file: client/src/locale/server.gl-ES.json new file: client/src/locale/server.he.json new file: client/src/locale/server.hr.json new file: client/src/locale/server.hu-HU.json new file: client/src/locale/server.id.json new file: client/src/locale/server.is.json new file: client/src/locale/server.it-IT.json new file: client/src/locale/server.ja-JP.json new file: client/src/locale/server.jbo.json new file: client/src/locale/server.kab.json new file: client/src/locale/server.kk.json new file: client/src/locale/server.ko-KR.json new file: client/src/locale/server.la.json new file: client/src/locale/server.lt-LT.json new file: client/src/locale/server.nb-NO.json new file: client/src/locale/server.nl-NL.json new file: client/src/locale/server.nn.json new file: client/src/locale/server.oc.json new file: client/src/locale/server.pl-PL.json new file: client/src/locale/server.pt-BR.json new file: client/src/locale/server.pt-PT.json new file: client/src/locale/server.ro.json new file: client/src/locale/server.ru-RU.json new file: client/src/locale/server.si.json new file: client/src/locale/server.sk-SK.json new file: client/src/locale/server.sl-SI.json new file: client/src/locale/server.sq.json new file: client/src/locale/server.sr_Cyrl.json new file: client/src/locale/server.sv-SE.json new file: client/src/locale/server.th-TH.json new file: client/src/locale/server.tok.json new file: client/src/locale/server.tp.json new file: client/src/locale/server.tr-TR.json new file: client/src/locale/server.ug.json new file: client/src/locale/server.uk-UA.json new file: client/src/locale/server.vi-VN.json new file: client/src/locale/server.zh-Hans-CN.json new file: client/src/locale/server.zh-Hant-TW.json new file: client/src/locale/server.zh_HANT-TW.json new file: client/src/locale/videojs.en-US.json new file: client/src/main.ts new file: client/src/manifest.webmanifest new file: client/src/ngsw-config.json new file: client/src/polyfills.ts new file: client/src/root-helpers/bytes.ts new file: client/src/root-helpers/images.ts new file: client/src/root-helpers/index.ts new file: client/src/root-helpers/local-storage-utils.ts new file: client/src/root-helpers/logger.ts new file: client/src/root-helpers/peertube-web-storage.ts new file: client/src/root-helpers/plugins-manager.ts new file: client/src/root-helpers/string.ts new file: client/src/root-helpers/url.ts new file: client/src/root-helpers/users/index.ts new file: client/src/root-helpers/users/oauth-user-tokens.ts new file: client/src/root-helpers/users/user-local-storage-keys.ts new file: client/src/root-helpers/utils.ts new file: client/src/root-helpers/video.ts new file: client/src/root-helpers/web-browser.ts new file: client/src/sass/application.scss new file: client/src/sass/bootstrap.scss new file: client/src/sass/class-helpers/_buttons.scss new file: client/src/sass/class-helpers/_common.scss new file: client/src/sass/class-helpers/_custom-bootstrap-helpers.scss new file: client/src/sass/class-helpers/_forms.scss new file: client/src/sass/class-helpers/_images.scss new file: client/src/sass/class-helpers/_layout.scss new file: client/src/sass/class-helpers/_menu.scss new file: client/src/sass/class-helpers/_position.scss new file: client/src/sass/class-helpers/_text.scss new file: client/src/sass/class-helpers/index.scss new file: client/src/sass/custom-markup.scss new file: client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.otf.woff2 new file: client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Italic.ttf.woff2 new file: client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.otf.woff2 new file: client/src/sass/fonts/source-sans/WOFF2/VAR/SourceSans3VF-Roman.ttf.woff2 new file: client/src/sass/include/_account-channel-page.scss new file: client/src/sass/include/_actor.scss new file: client/src/sass/include/_badges.scss new file: client/src/sass/include/_bootstrap-mixins.scss new file: client/src/sass/include/_bootstrap-variables.scss new file: client/src/sass/include/_button-mixins.scss new file: client/src/sass/include/_fonts.scss new file: client/src/sass/include/_form-mixins.scss new file: client/src/sass/include/_icons.scss new file: client/src/sass/include/_miniature.scss new file: client/src/sass/include/_mixins.scss new file: client/src/sass/include/_nav.scss new file: client/src/sass/include/_variables.scss new file: client/src/sass/player/_player-variables.scss new file: client/src/sass/player/bezels.scss new file: client/src/sass/player/context-menu.scss new file: client/src/sass/player/control-bar.scss new file: client/src/sass/player/dock.scss new file: client/src/sass/player/index.scss new file: client/src/sass/player/mobile.scss new file: client/src/sass/player/offline-notification.scss new file: client/src/sass/player/peertube-skin.scss new file: client/src/sass/player/playlist.scss new file: client/src/sass/player/settings-menu.scss new file: client/src/sass/player/spinner.scss new file: client/src/sass/player/stats.scss new file: client/src/sass/player/storyboard.scss new file: client/src/sass/player/upnext.scss new file: client/src/sass/primeng-custom.scss new file: client/src/sass/z-index.scss new file: client/src/shims/noop.ts new file: client/src/standalone/embed-player-api/.npmignore new file: client/src/standalone/embed-player-api/README.md new file: client/src/standalone/embed-player-api/definitions.ts new file: client/src/standalone/embed-player-api/events.ts new file: client/src/standalone/embed-player-api/package.json new file: client/src/standalone/embed-player-api/player.ts new file: client/src/standalone/embed-player-api/tsconfig.json new file: client/src/standalone/embed-player-api/vite.config.mjs new file: client/src/standalone/videos/.env.development new file: client/src/standalone/videos/embed-api.ts new file: client/src/standalone/videos/embed.html new file: client/src/standalone/videos/embed.scss new file: client/src/standalone/videos/embed.ts new file: client/src/standalone/videos/shared/auth-http.ts new file: client/src/standalone/videos/shared/index.ts new file: client/src/standalone/videos/shared/live-manager.ts new file: client/src/standalone/videos/shared/peertube-plugin.ts new file: client/src/standalone/videos/shared/player-html.ts new file: client/src/standalone/videos/shared/player-options-builder.ts new file: client/src/standalone/videos/shared/playlist-fetcher.ts new file: client/src/standalone/videos/shared/playlist-tracker.ts new file: client/src/standalone/videos/shared/translations.ts new file: client/src/standalone/videos/shared/url.ts new file: client/src/standalone/videos/shared/video-fetcher.ts new file: client/src/standalone/videos/test-embed.html new file: client/src/standalone/videos/test-embed.scss new file: client/src/standalone/videos/test-embed.ts new file: client/src/standalone/videos/tsconfig.json new file: client/src/standalone/videos/vite.config.mjs new file: client/src/types/client-script.model.ts new file: client/src/types/index.ts new file: client/src/types/job-state-client.type.ts new file: client/src/types/job-type-client.type.ts new file: client/src/types/link.type.ts new file: client/src/types/register-client-option.model.ts new file: client/src/types/select-options-item.model.ts new file: client/src/types/server-error.model.ts new file: client/src/typings.d.ts new file: client/tsconfig.eslint.json new file: client/tsconfig.json new file: client/tsconfig.types.json new file: client/yarn.lock new file: config/default.yaml new file: config/dev-1.yaml new file: config/dev.yaml new file: config/production.yaml.example new file: config/test-1.yaml new file: config/test-2.yaml new file: config/test-3.yaml new file: config/test-4.yaml new file: config/test-5.yaml new file: config/test-6.yaml new file: config/test.yaml new file: package.json new file: packages/core-utils/package.json new file: packages/core-utils/src/abuse/abuse-predefined-reasons.ts new file: packages/core-utils/src/abuse/index.ts new file: packages/core-utils/src/common/array.ts new file: packages/core-utils/src/common/date.ts new file: packages/core-utils/src/common/index.ts new file: packages/core-utils/src/common/number.ts new file: packages/core-utils/src/common/object.ts new file: packages/core-utils/src/common/promises.ts new file: packages/core-utils/src/common/random.ts new file: packages/core-utils/src/common/regexp.ts new file: packages/core-utils/src/common/time.ts new file: packages/core-utils/src/common/url.ts new file: packages/core-utils/src/common/version.ts new file: packages/core-utils/src/i18n/i18n.ts new file: packages/core-utils/src/i18n/index.ts new file: packages/core-utils/src/index.ts new file: packages/core-utils/src/plugins/hooks.ts new file: packages/core-utils/src/plugins/index.ts new file: packages/core-utils/src/renderer/html.ts new file: packages/core-utils/src/renderer/index.ts new file: packages/core-utils/src/renderer/markdown.ts new file: packages/core-utils/src/string/chapters.ts new file: packages/core-utils/src/string/index.ts new file: packages/core-utils/src/users/index.ts new file: packages/core-utils/src/users/user-role.ts new file: packages/core-utils/src/videos/bitrate.ts new file: packages/core-utils/src/videos/common.ts new file: packages/core-utils/src/videos/index.ts new file: packages/core-utils/tsconfig.json new file: packages/ffmpeg/package.json new file: packages/ffmpeg/src/ffmpeg-command-wrapper.ts new file: packages/ffmpeg/src/ffmpeg-container.ts new file: packages/ffmpeg/src/ffmpeg-default-transcoding-profile.ts new file: packages/ffmpeg/src/ffmpeg-edition.ts new file: packages/ffmpeg/src/ffmpeg-images.ts new file: packages/ffmpeg/src/ffmpeg-live.ts new file: packages/ffmpeg/src/ffmpeg-utils.ts new file: packages/ffmpeg/src/ffmpeg-version.ts new file: packages/ffmpeg/src/ffmpeg-vod.ts new file: packages/ffmpeg/src/ffprobe.ts new file: packages/ffmpeg/src/index.ts new file: packages/ffmpeg/src/shared/encoder-options.ts new file: packages/ffmpeg/src/shared/index.ts new file: packages/ffmpeg/src/shared/presets.ts new file: packages/ffmpeg/tsconfig.json new file: packages/models/package.json new file: packages/models/src/activitypub/activity.ts new file: packages/models/src/activitypub/activitypub-actor.ts new file: packages/models/src/activitypub/activitypub-collection.ts new file: packages/models/src/activitypub/activitypub-ordered-collection.ts new file: packages/models/src/activitypub/activitypub-root.ts new file: packages/models/src/activitypub/activitypub-signature.ts new file: packages/models/src/activitypub/context.ts new file: packages/models/src/activitypub/index.ts new file: packages/models/src/activitypub/objects/abuse-object.ts new file: packages/models/src/activitypub/objects/activitypub-object.ts new file: packages/models/src/activitypub/objects/cache-file-object.ts new file: packages/models/src/activitypub/objects/common-objects.ts new file: packages/models/src/activitypub/objects/index.ts new file: packages/models/src/activitypub/objects/playlist-element-object.ts new file: packages/models/src/activitypub/objects/playlist-object.ts new file: packages/models/src/activitypub/objects/video-caption-object.ts new file: packages/models/src/activitypub/objects/video-chapters-object.ts new file: packages/models/src/activitypub/objects/video-comment-object.ts new file: packages/models/src/activitypub/objects/video-object.ts new file: packages/models/src/activitypub/objects/watch-action-object.ts new file: packages/models/src/activitypub/webfinger.ts new file: packages/models/src/actors/account.model.ts new file: packages/models/src/actors/actor-image.model.ts new file: packages/models/src/actors/actor-image.type.ts new file: packages/models/src/actors/actor.model.ts new file: packages/models/src/actors/custom-page.model.ts new file: packages/models/src/actors/follow.model.ts new file: packages/models/src/actors/index.ts new file: packages/models/src/bulk/bulk-remove-comments-of-body.model.ts new file: packages/models/src/bulk/index.ts new file: packages/models/src/common/file-storage.enum.ts new file: packages/models/src/common/index.ts new file: packages/models/src/common/result-list.model.ts new file: packages/models/src/common/simple-logger.model.ts new file: packages/models/src/custom-markup/custom-markup-data.model.ts new file: packages/models/src/custom-markup/index.ts new file: packages/models/src/feeds/feed-format.enum.ts new file: packages/models/src/feeds/index.ts new file: packages/models/src/http/http-methods.ts new file: packages/models/src/http/http-status-codes.ts new file: packages/models/src/http/index.ts new file: packages/models/src/import-export/index.ts new file: packages/models/src/import-export/peertube-export-format/account-export.model.ts new file: packages/models/src/import-export/peertube-export-format/actor-export.model.ts new file: packages/models/src/import-export/peertube-export-format/auto-tag-policies-export.ts new file: packages/models/src/import-export/peertube-export-format/blocklist-export.model.ts new file: packages/models/src/import-export/peertube-export-format/channel-export.model.ts new file: packages/models/src/import-export/peertube-export-format/comments-export.model.ts new file: packages/models/src/import-export/peertube-export-format/dislikes-export.model.ts new file: packages/models/src/import-export/peertube-export-format/followers-export.model.ts new file: packages/models/src/import-export/peertube-export-format/following-export.model.ts new file: packages/models/src/import-export/peertube-export-format/index.ts new file: packages/models/src/import-export/peertube-export-format/likes-export.model.ts new file: packages/models/src/import-export/peertube-export-format/user-settings-export.model.ts new file: packages/models/src/import-export/peertube-export-format/user-video-history-export.ts new file: packages/models/src/import-export/peertube-export-format/video-export.model.ts new file: packages/models/src/import-export/peertube-export-format/video-playlists-export.model.ts new file: packages/models/src/import-export/peertube-export-format/watched-words-lists-export.ts new file: packages/models/src/import-export/user-export-request-result.model.ts new file: packages/models/src/import-export/user-export-request.model.ts new file: packages/models/src/import-export/user-export-state.enum.ts new file: packages/models/src/import-export/user-export.model.ts new file: packages/models/src/import-export/user-import-result.model.ts new file: packages/models/src/import-export/user-import-state.enum.ts new file: packages/models/src/import-export/user-import-upload-result.model.ts new file: packages/models/src/import-export/user-import.model.ts new file: packages/models/src/index.ts new file: packages/models/src/metrics/index.ts new file: packages/models/src/metrics/playback-metric-create.model.ts new file: packages/models/src/moderation/abuse/abuse-create.model.ts new file: packages/models/src/moderation/abuse/abuse-filter.type.ts new file: packages/models/src/moderation/abuse/abuse-message.model.ts new file: packages/models/src/moderation/abuse/abuse-reason.model.ts new file: packages/models/src/moderation/abuse/abuse-state.model.ts new file: packages/models/src/moderation/abuse/abuse-update.model.ts new file: packages/models/src/moderation/abuse/abuse-video-is.type.ts new file: packages/models/src/moderation/abuse/abuse.model.ts new file: packages/models/src/moderation/abuse/index.ts new file: packages/models/src/moderation/account-block.model.ts new file: packages/models/src/moderation/automatic-tag-available.model.ts new file: packages/models/src/moderation/automatic-tag-policy.enum.ts new file: packages/models/src/moderation/block-status.model.ts new file: packages/models/src/moderation/comment-automatic-tag-policies-update.model.ts new file: packages/models/src/moderation/comment-automatic-tag-policies.model.ts new file: packages/models/src/moderation/index.ts new file: packages/models/src/moderation/server-block.model.ts new file: packages/models/src/moderation/watched-words-list.model.ts new file: packages/models/src/nodeinfo/index.ts new file: packages/models/src/nodeinfo/nodeinfo.model.ts new file: packages/models/src/overviews/index.ts new file: packages/models/src/overviews/videos-overview.model.ts new file: packages/models/src/plugins/client/client-hook.model.ts new file: packages/models/src/plugins/client/index.ts new file: packages/models/src/plugins/client/plugin-client-scope.type.ts new file: packages/models/src/plugins/client/plugin-element-placeholder.type.ts new file: packages/models/src/plugins/client/plugin-selector-id.type.ts new file: packages/models/src/plugins/client/register-client-form-field.model.ts new file: packages/models/src/plugins/client/register-client-hook.model.ts new file: packages/models/src/plugins/client/register-client-route.model.ts new file: packages/models/src/plugins/client/register-client-settings-script.model.ts new file: packages/models/src/plugins/hook-type.enum.ts new file: packages/models/src/plugins/index.ts new file: packages/models/src/plugins/plugin-index/index.ts new file: packages/models/src/plugins/plugin-index/peertube-plugin-index-list.model.ts new file: packages/models/src/plugins/plugin-index/peertube-plugin-index.model.ts new file: packages/models/src/plugins/plugin-index/peertube-plugin-latest-version.model.ts new file: packages/models/src/plugins/plugin-package-json.model.ts new file: packages/models/src/plugins/plugin.type.ts new file: packages/models/src/plugins/server/api/index.ts new file: packages/models/src/plugins/server/api/install-plugin.model.ts new file: packages/models/src/plugins/server/api/manage-plugin.model.ts new file: packages/models/src/plugins/server/api/peertube-plugin.model.ts new file: packages/models/src/plugins/server/index.ts new file: packages/models/src/plugins/server/managers/index.ts new file: packages/models/src/plugins/server/managers/plugin-playlist-privacy-manager.model.ts new file: packages/models/src/plugins/server/managers/plugin-settings-manager.model.ts new file: packages/models/src/plugins/server/managers/plugin-storage-manager.model.ts new file: packages/models/src/plugins/server/managers/plugin-transcoding-manager.model.ts new file: packages/models/src/plugins/server/managers/plugin-video-category-manager.model.ts new file: packages/models/src/plugins/server/managers/plugin-video-language-manager.model.ts new file: packages/models/src/plugins/server/managers/plugin-video-licence-manager.model.ts new file: packages/models/src/plugins/server/managers/plugin-video-privacy-manager.model.ts new file: packages/models/src/plugins/server/plugin-constant-manager.model.ts new file: packages/models/src/plugins/server/plugin-translation.model.ts new file: packages/models/src/plugins/server/register-server-hook.model.ts new file: packages/models/src/plugins/server/server-hook.model.ts new file: packages/models/src/plugins/server/settings/index.ts new file: packages/models/src/plugins/server/settings/public-server.setting.ts new file: packages/models/src/plugins/server/settings/register-server-setting.model.ts new file: packages/models/src/redundancy/index.ts new file: packages/models/src/redundancy/video-redundancies-filters.model.ts new file: packages/models/src/redundancy/video-redundancy-config-filter.type.ts new file: packages/models/src/redundancy/video-redundancy.model.ts new file: packages/models/src/redundancy/videos-redundancy-strategy.model.ts new file: packages/models/src/runners/abort-runner-job-body.model.ts new file: packages/models/src/runners/accept-runner-job-body.model.ts new file: packages/models/src/runners/accept-runner-job-result.model.ts new file: packages/models/src/runners/error-runner-job-body.model.ts new file: packages/models/src/runners/index.ts new file: packages/models/src/runners/list-runner-jobs-query.model.ts new file: packages/models/src/runners/list-runner-registration-tokens.model.ts new file: packages/models/src/runners/list-runners-query.model.ts new file: packages/models/src/runners/register-runner-body.model.ts new file: packages/models/src/runners/register-runner-result.model.ts new file: packages/models/src/runners/request-runner-job-body.model.ts new file: packages/models/src/runners/request-runner-job-result.model.ts new file: packages/models/src/runners/runner-job-payload.model.ts new file: packages/models/src/runners/runner-job-private-payload.model.ts new file: packages/models/src/runners/runner-job-state.model.ts new file: packages/models/src/runners/runner-job-success-body.model.ts new file: packages/models/src/runners/runner-job-type.type.ts new file: packages/models/src/runners/runner-job-update-body.model.ts new file: packages/models/src/runners/runner-job.model.ts new file: packages/models/src/runners/runner-registration-token.ts new file: packages/models/src/runners/runner.model.ts new file: packages/models/src/runners/unregister-runner-body.model.ts new file: packages/models/src/search/boolean-both-query.model.ts new file: packages/models/src/search/index.ts new file: packages/models/src/search/search-target-query.model.ts new file: packages/models/src/search/video-channels-search-query.model.ts new file: packages/models/src/search/video-playlists-search-query.model.ts new file: packages/models/src/search/videos-common-query.model.ts new file: packages/models/src/search/videos-search-query.model.ts new file: packages/models/src/server/about.model.ts new file: packages/models/src/server/broadcast-message-level.type.ts new file: packages/models/src/server/client-log-create.model.ts new file: packages/models/src/server/client-log-level.type.ts new file: packages/models/src/server/contact-form.model.ts new file: packages/models/src/server/custom-config.model.ts new file: packages/models/src/server/debug.model.ts new file: packages/models/src/server/emailer.model.ts new file: packages/models/src/server/index.ts new file: packages/models/src/server/job.model.ts new file: packages/models/src/server/peertube-problem-document.model.ts new file: packages/models/src/server/server-config.model.ts new file: packages/models/src/server/server-debug.model.ts new file: packages/models/src/server/server-error-code.enum.ts new file: packages/models/src/server/server-follow-create.model.ts new file: packages/models/src/server/server-log-level.type.ts new file: packages/models/src/server/server-stats.model.ts new file: packages/models/src/tokens/index.ts new file: packages/models/src/tokens/oauth-client-local.model.ts new file: packages/models/src/users/index.ts new file: packages/models/src/users/registration/index.ts new file: packages/models/src/users/registration/user-register.model.ts new file: packages/models/src/users/registration/user-registration-request.model.ts new file: packages/models/src/users/registration/user-registration-state.model.ts new file: packages/models/src/users/registration/user-registration-update-state.model.ts new file: packages/models/src/users/registration/user-registration.model.ts new file: packages/models/src/users/two-factor-enable-result.model.ts new file: packages/models/src/users/user-create-result.model.ts new file: packages/models/src/users/user-create.model.ts new file: packages/models/src/users/user-flag.model.ts new file: packages/models/src/users/user-login.model.ts new file: packages/models/src/users/user-notification-setting.model.ts new file: packages/models/src/users/user-notification.model.ts new file: packages/models/src/users/user-refresh-token.model.ts new file: packages/models/src/users/user-right.enum.ts new file: packages/models/src/users/user-role.ts new file: packages/models/src/users/user-scoped-token.ts new file: packages/models/src/users/user-update-me.model.ts new file: packages/models/src/users/user-update.model.ts new file: packages/models/src/users/user-video-quota.model.ts new file: packages/models/src/users/user.model.ts new file: packages/models/src/videos/blacklist/index.ts new file: packages/models/src/videos/blacklist/video-blacklist-create.model.ts new file: packages/models/src/videos/blacklist/video-blacklist-update.model.ts new file: packages/models/src/videos/blacklist/video-blacklist.model.ts new file: packages/models/src/videos/caption/index.ts new file: packages/models/src/videos/caption/video-caption-generate.model.ts new file: packages/models/src/videos/caption/video-caption-update.model.ts new file: packages/models/src/videos/caption/video-caption.model.ts new file: packages/models/src/videos/change-ownership/index.ts new file: packages/models/src/videos/change-ownership/video-change-ownership-accept.model.ts new file: packages/models/src/videos/change-ownership/video-change-ownership-create.model.ts new file: packages/models/src/videos/change-ownership/video-change-ownership.model.ts new file: packages/models/src/videos/channel-sync/index.ts new file: packages/models/src/videos/channel-sync/video-channel-sync-create.model.ts new file: packages/models/src/videos/channel-sync/video-channel-sync-state.enum.ts new file: packages/models/src/videos/channel-sync/video-channel-sync.model.ts new file: packages/models/src/videos/channel/index.ts new file: packages/models/src/videos/channel/video-channel-create-result.model.ts new file: packages/models/src/videos/channel/video-channel-create.model.ts new file: packages/models/src/videos/channel/video-channel-update.model.ts new file: packages/models/src/videos/channel/video-channel.model.ts new file: packages/models/src/videos/chapter/chapter-update.model.ts new file: packages/models/src/videos/chapter/chapter.model.ts new file: packages/models/src/videos/chapter/index.ts new file: packages/models/src/videos/comment/index.ts new file: packages/models/src/videos/comment/video-comment-create.model.ts new file: packages/models/src/videos/comment/video-comment-policy.enum.ts new file: packages/models/src/videos/comment/video-comment.model.ts new file: packages/models/src/videos/file/index.ts new file: packages/models/src/videos/file/video-file-format-flag.enum.ts new file: packages/models/src/videos/file/video-file-metadata.model.ts new file: packages/models/src/videos/file/video-file-stream.enum.ts new file: packages/models/src/videos/file/video-file.model.ts new file: packages/models/src/videos/file/video-resolution.enum.ts new file: packages/models/src/videos/import/index.ts new file: packages/models/src/videos/import/video-import-create.model.ts new file: packages/models/src/videos/import/video-import-state.enum.ts new file: packages/models/src/videos/import/video-import.model.ts new file: packages/models/src/videos/import/videos-import-in-channel-create.model.ts new file: packages/models/src/videos/index.ts new file: packages/models/src/videos/nsfw-policy.type.ts new file: packages/models/src/videos/playlist/index.ts new file: packages/models/src/videos/playlist/video-exist-in-playlist.model.ts new file: packages/models/src/videos/playlist/video-playlist-create-result.model.ts new file: packages/models/src/videos/playlist/video-playlist-create.model.ts new file: packages/models/src/videos/playlist/video-playlist-element-create-result.model.ts new file: packages/models/src/videos/playlist/video-playlist-element-create.model.ts new file: packages/models/src/videos/playlist/video-playlist-element-update.model.ts new file: packages/models/src/videos/playlist/video-playlist-element.model.ts new file: packages/models/src/videos/playlist/video-playlist-privacy.model.ts new file: packages/models/src/videos/playlist/video-playlist-reorder.model.ts new file: packages/models/src/videos/playlist/video-playlist-type.model.ts new file: packages/models/src/videos/playlist/video-playlist-update.model.ts new file: packages/models/src/videos/playlist/video-playlist.model.ts new file: packages/models/src/videos/rate/account-video-rate.model.ts new file: packages/models/src/videos/rate/index.ts new file: packages/models/src/videos/rate/user-video-rate-update.model.ts new file: packages/models/src/videos/rate/user-video-rate.model.ts new file: packages/models/src/videos/rate/user-video-rate.type.ts new file: packages/models/src/videos/stats/index.ts new file: packages/models/src/videos/stats/video-stats-overall-query.model.ts new file: packages/models/src/videos/stats/video-stats-overall.model.ts new file: packages/models/src/videos/stats/video-stats-retention.model.ts new file: packages/models/src/videos/stats/video-stats-timeserie-metric.type.ts new file: packages/models/src/videos/stats/video-stats-timeserie-query.model.ts new file: packages/models/src/videos/stats/video-stats-timeserie.model.ts new file: packages/models/src/videos/storyboard.model.ts new file: packages/models/src/videos/studio/index.ts new file: packages/models/src/videos/studio/video-studio-create-edit.model.ts new file: packages/models/src/videos/thumbnail.type.ts new file: packages/models/src/videos/transcoding/index.ts new file: packages/models/src/videos/transcoding/video-transcoding-create.model.ts new file: packages/models/src/videos/transcoding/video-transcoding.model.ts new file: packages/models/src/videos/video-constant.model.ts new file: packages/models/src/videos/video-create-result.model.ts new file: packages/models/src/videos/video-create.model.ts new file: packages/models/src/videos/video-include.enum.ts new file: packages/models/src/videos/video-password.model.ts new file: packages/models/src/videos/video-privacy.enum.ts new file: packages/models/src/videos/video-rate.type.ts new file: packages/models/src/videos/video-schedule-update.model.ts new file: packages/models/src/videos/video-sort-field.type.ts new file: packages/models/src/videos/video-source.model.ts new file: packages/models/src/videos/video-state.enum.ts new file: packages/models/src/videos/video-streaming-playlist.model.ts new file: packages/models/src/videos/video-streaming-playlist.type.ts new file: packages/models/src/videos/video-token.model.ts new file: packages/models/src/videos/video-update.model.ts new file: packages/models/src/videos/video-view.model.ts new file: packages/models/src/videos/video.model.ts new file: packages/models/tsconfig.json new file: packages/models/tsconfig.types.json new file: packages/node-utils/package.json new file: packages/node-utils/src/crypto.ts new file: packages/node-utils/src/env.ts new file: packages/node-utils/src/file.ts new file: packages/node-utils/src/index.ts new file: packages/node-utils/src/path.ts new file: packages/node-utils/src/uuid.ts new file: packages/node-utils/tsconfig.json new file: packages/server-commands/package.json new file: packages/server-commands/src/bulk/bulk-command.ts new file: packages/server-commands/src/bulk/index.ts new file: packages/server-commands/src/cli/cli-command.ts new file: packages/server-commands/src/cli/index.ts new file: packages/server-commands/src/custom-pages/custom-pages-command.ts new file: packages/server-commands/src/custom-pages/index.ts new file: packages/server-commands/src/feeds/feeds-command.ts new file: packages/server-commands/src/feeds/index.ts new file: packages/server-commands/src/index.ts new file: packages/server-commands/src/logs/index.ts new file: packages/server-commands/src/logs/logs-command.ts new file: packages/server-commands/src/moderation/abuses-command.ts new file: packages/server-commands/src/moderation/automatic-tags-command.ts new file: packages/server-commands/src/moderation/index.ts new file: packages/server-commands/src/moderation/watched-words-command.ts new file: packages/server-commands/src/overviews/index.ts new file: packages/server-commands/src/overviews/overviews-command.ts new file: packages/server-commands/src/requests/index.ts new file: packages/server-commands/src/requests/requests.ts new file: packages/server-commands/src/runners/index.ts new file: packages/server-commands/src/runners/runner-jobs-command.ts new file: packages/server-commands/src/runners/runner-registration-tokens-command.ts new file: packages/server-commands/src/runners/runners-command.ts new file: packages/server-commands/src/search/index.ts new file: packages/server-commands/src/search/search-command.ts new file: packages/server-commands/src/server/config-command.ts new file: packages/server-commands/src/server/contact-form-command.ts new file: packages/server-commands/src/server/debug-command.ts new file: packages/server-commands/src/server/follows-command.ts new file: packages/server-commands/src/server/follows.ts new file: packages/server-commands/src/server/index.ts new file: packages/server-commands/src/server/jobs-command.ts new file: packages/server-commands/src/server/jobs.ts new file: packages/server-commands/src/server/metrics-command.ts new file: packages/server-commands/src/server/object-storage-command.ts new file: packages/server-commands/src/server/plugins-command.ts new file: packages/server-commands/src/server/redundancy-command.ts new file: packages/server-commands/src/server/server.ts new file: packages/server-commands/src/server/servers-command.ts new file: packages/server-commands/src/server/servers.ts new file: packages/server-commands/src/server/stats-command.ts new file: packages/server-commands/src/shared/abstract-command.ts new file: packages/server-commands/src/shared/index.ts new file: packages/server-commands/src/socket/index.ts new file: packages/server-commands/src/socket/socket-io-command.ts new file: packages/server-commands/src/users/accounts-command.ts new file: packages/server-commands/src/users/accounts.ts new file: packages/server-commands/src/users/blocklist-command.ts new file: packages/server-commands/src/users/index.ts new file: packages/server-commands/src/users/login-command.ts new file: packages/server-commands/src/users/login.ts new file: packages/server-commands/src/users/notifications-command.ts new file: packages/server-commands/src/users/registrations-command.ts new file: packages/server-commands/src/users/subscriptions-command.ts new file: packages/server-commands/src/users/two-factor-command.ts new file: packages/server-commands/src/users/user-exports-command.ts new file: packages/server-commands/src/users/user-imports-command.ts new file: packages/server-commands/src/users/users-command.ts new file: packages/server-commands/src/videos/blacklist-command.ts new file: packages/server-commands/src/videos/captions-command.ts new file: packages/server-commands/src/videos/change-ownership-command.ts new file: packages/server-commands/src/videos/channel-syncs-command.ts new file: packages/server-commands/src/videos/channels-command.ts new file: packages/server-commands/src/videos/channels.ts new file: packages/server-commands/src/videos/chapters-command.ts new file: packages/server-commands/src/videos/comments-command.ts new file: packages/server-commands/src/videos/history-command.ts new file: packages/server-commands/src/videos/index.ts new file: packages/server-commands/src/videos/live-command.ts new file: packages/server-commands/src/videos/live.ts new file: packages/server-commands/src/videos/playlists-command.ts new file: packages/server-commands/src/videos/services-command.ts new file: packages/server-commands/src/videos/storyboard-command.ts new file: packages/server-commands/src/videos/streaming-playlists-command.ts new file: packages/server-commands/src/videos/video-imports-command.ts new file: packages/server-commands/src/videos/video-passwords-command.ts new file: packages/server-commands/src/videos/video-stats-command.ts new file: packages/server-commands/src/videos/video-studio-command.ts new file: packages/server-commands/src/videos/video-token-command.ts new file: packages/server-commands/src/videos/videos-command.ts new file: packages/server-commands/src/videos/views-command.ts new file: packages/server-commands/tsconfig.json new file: packages/tests/fixtures/60fps_720p_small.mp4 new file: packages/tests/fixtures/ap-json/mastodon/bad-body-http-signature.json new file: packages/tests/fixtures/ap-json/mastodon/bad-http-signature.json new file: packages/tests/fixtures/ap-json/mastodon/bad-public-key.json new file: packages/tests/fixtures/ap-json/mastodon/create-bad-signature.json new file: packages/tests/fixtures/ap-json/mastodon/create.json new file: packages/tests/fixtures/ap-json/mastodon/http-signature.json new file: packages/tests/fixtures/ap-json/mastodon/public-key.json new file: packages/tests/fixtures/ap-json/peertube/announce-without-context.json new file: packages/tests/fixtures/ap-json/peertube/invalid-keys.json new file: packages/tests/fixtures/ap-json/peertube/keys.json new file: packages/tests/fixtures/avatar-big.png new file: packages/tests/fixtures/avatar-resized-120x120.gif new file: packages/tests/fixtures/avatar-resized-120x120.png new file: packages/tests/fixtures/avatar-resized-120x120.webp new file: packages/tests/fixtures/avatar-resized-1500x1500.png new file: packages/tests/fixtures/avatar-resized-1500x1500.webp new file: packages/tests/fixtures/avatar-resized-48x48.gif new file: packages/tests/fixtures/avatar-resized-48x48.png new file: packages/tests/fixtures/avatar-resized-48x48.webp new file: packages/tests/fixtures/avatar-resized-600x600.png new file: packages/tests/fixtures/avatar-resized-600x600.webp new file: packages/tests/fixtures/avatar.gif new file: packages/tests/fixtures/avatar.png new file: packages/tests/fixtures/avatar.webp new file: packages/tests/fixtures/avatar2-resized-120x120.png new file: packages/tests/fixtures/avatar2-resized-1500x1500.png new file: packages/tests/fixtures/avatar2-resized-48x48.png new file: packages/tests/fixtures/avatar2-resized-600x600.png new file: packages/tests/fixtures/avatar2.png new file: packages/tests/fixtures/banner-resized-1920.jpg new file: packages/tests/fixtures/banner-resized-600.jpg new file: packages/tests/fixtures/banner-user-import-resized-1920.jpg new file: packages/tests/fixtures/banner-user-import-resized-600.jpg new file: packages/tests/fixtures/banner.jpg new file: packages/tests/fixtures/custom-preview-big.png new file: packages/tests/fixtures/custom-preview.jpg new file: packages/tests/fixtures/custom-thumbnail-2.jpg new file: packages/tests/fixtures/custom-thumbnail-big.jpg new file: packages/tests/fixtures/custom-thumbnail-from-preview.jpg new file: packages/tests/fixtures/custom-thumbnail.jpg new file: packages/tests/fixtures/custom-thumbnail.png new file: packages/tests/fixtures/default-live-preview.jpg new file: packages/tests/fixtures/default-live-thumbnail.jpg new file: packages/tests/fixtures/exif.jpg new file: packages/tests/fixtures/exif.png new file: packages/tests/fixtures/export-bad-structure.zip new file: packages/tests/fixtures/export-bad-video-file.zip new file: packages/tests/fixtures/export-bad-video.zip new file: packages/tests/fixtures/export-with-files.zip new file: packages/tests/fixtures/export-without-files.zip new file: packages/tests/fixtures/export-without-videos.zip new file: packages/tests/fixtures/live/0-000067.ts new file: packages/tests/fixtures/live/0-000068.ts new file: packages/tests/fixtures/live/0-000069.ts new file: packages/tests/fixtures/live/0-000070.ts new file: packages/tests/fixtures/live/0.m3u8 new file: packages/tests/fixtures/live/1-000067.ts new file: packages/tests/fixtures/live/1-000068.ts new file: packages/tests/fixtures/live/1-000069.ts new file: packages/tests/fixtures/live/1-000070.ts new file: packages/tests/fixtures/live/1.m3u8 new file: packages/tests/fixtures/live/master.m3u8 new file: packages/tests/fixtures/low-bitrate.mp4 new file: packages/tests/fixtures/peertube-plugin-test-broken/main.js new file: packages/tests/fixtures/peertube-plugin-test-broken/package.json new file: packages/tests/fixtures/peertube-plugin-test-external-auth-one/main.js new file: packages/tests/fixtures/peertube-plugin-test-external-auth-one/package.json new file: packages/tests/fixtures/peertube-plugin-test-external-auth-three/main.js new file: packages/tests/fixtures/peertube-plugin-test-external-auth-three/package.json new file: packages/tests/fixtures/peertube-plugin-test-external-auth-two/main.js new file: packages/tests/fixtures/peertube-plugin-test-external-auth-two/package.json new file: packages/tests/fixtures/peertube-plugin-test-filter-translations/languages/fr.json new file: packages/tests/fixtures/peertube-plugin-test-filter-translations/languages/it.json new file: packages/tests/fixtures/peertube-plugin-test-filter-translations/main.js new file: packages/tests/fixtures/peertube-plugin-test-filter-translations/package.json new file: packages/tests/fixtures/peertube-plugin-test-five/main.js new file: packages/tests/fixtures/peertube-plugin-test-five/package.json new file: packages/tests/fixtures/peertube-plugin-test-four/main.js new file: packages/tests/fixtures/peertube-plugin-test-four/package.json new file: packages/tests/fixtures/peertube-plugin-test-id-pass-auth-one/main.js new file: packages/tests/fixtures/peertube-plugin-test-id-pass-auth-one/package.json new file: packages/tests/fixtures/peertube-plugin-test-id-pass-auth-three/main.js new file: packages/tests/fixtures/peertube-plugin-test-id-pass-auth-three/package.json new file: packages/tests/fixtures/peertube-plugin-test-id-pass-auth-two/main.js new file: packages/tests/fixtures/peertube-plugin-test-id-pass-auth-two/package.json new file: packages/tests/fixtures/peertube-plugin-test-native/main.js new file: packages/tests/fixtures/peertube-plugin-test-native/package.json new file: packages/tests/fixtures/peertube-plugin-test-podcast-custom-tags/main.js new file: packages/tests/fixtures/peertube-plugin-test-podcast-custom-tags/package.json new file: packages/tests/fixtures/peertube-plugin-test-six/main.js new file: packages/tests/fixtures/peertube-plugin-test-six/package.json new file: packages/tests/fixtures/peertube-plugin-test-transcoding-one/main.js new file: packages/tests/fixtures/peertube-plugin-test-transcoding-one/package.json new file: packages/tests/fixtures/peertube-plugin-test-transcoding-two/main.js new file: packages/tests/fixtures/peertube-plugin-test-transcoding-two/package.json new file: packages/tests/fixtures/peertube-plugin-test-unloading/lib.js new file: packages/tests/fixtures/peertube-plugin-test-unloading/main.js new file: packages/tests/fixtures/peertube-plugin-test-unloading/package.json new file: packages/tests/fixtures/peertube-plugin-test-video-constants/main.js new file: packages/tests/fixtures/peertube-plugin-test-video-constants/package.json new file: packages/tests/fixtures/peertube-plugin-test-websocket/main.js new file: packages/tests/fixtures/peertube-plugin-test-websocket/package.json new file: packages/tests/fixtures/peertube-plugin-test/languages/fr.json new file: packages/tests/fixtures/peertube-plugin-test/main.js new file: packages/tests/fixtures/peertube-plugin-test/package.json new file: packages/tests/fixtures/rtmps.cert new file: packages/tests/fixtures/rtmps.key new file: packages/tests/fixtures/sample.ogg new file: packages/tests/fixtures/subtitle-bad.txt new file: packages/tests/fixtures/subtitle-good.srt new file: packages/tests/fixtures/subtitle-good1.vtt new file: packages/tests/fixtures/subtitle-good2.vtt new file: packages/tests/fixtures/thumbnail-playlist.jpg new file: packages/tests/fixtures/transcription/hello_world.zip new file: packages/tests/fixtures/transcription/videos/README.md new file: packages/tests/fixtures/transcription/videos/communiquer-lors-dune-classe-transplantee.mp4 new file: packages/tests/fixtures/transcription/videos/communiquer-lors-dune-classe-transplantee.txt new file: packages/tests/fixtures/transcription/videos/derive_sectaire.mp4 new file: packages/tests/fixtures/transcription/videos/derive_sectaire.srt new file: packages/tests/fixtures/transcription/videos/derive_sectaire.txt new file: packages/tests/fixtures/transcription/videos/the_last_man_on_earth.mp4 new file: packages/tests/fixtures/transcription/videos/the_last_man_on_earth.srt new file: packages/tests/fixtures/transcription/videos/the_last_man_on_earth.txt new file: packages/tests/fixtures/transcription/videos/the_last_man_on_earth.vtt new file: packages/tests/fixtures/video-720p.torrent new file: packages/tests/fixtures/video_chapters.mp4 new file: packages/tests/fixtures/video_import_preview.jpg new file: packages/tests/fixtures/video_import_preview_yt_dlp.jpg new file: packages/tests/fixtures/video_import_thumbnail.jpg new file: packages/tests/fixtures/video_import_thumbnail_yt_dlp.jpg new file: packages/tests/fixtures/video_short.avi new file: packages/tests/fixtures/video_short.mkv new file: packages/tests/fixtures/video_short.mp4 new file: packages/tests/fixtures/video_short.mp4.jpg new file: packages/tests/fixtures/video_short.ogv new file: packages/tests/fixtures/video_short.ogv.jpg new file: packages/tests/fixtures/video_short.webm new file: packages/tests/fixtures/video_short.webm.jpg new file: packages/tests/fixtures/video_short1-preview.webm.jpg new file: packages/tests/fixtures/video_short1.webm new file: packages/tests/fixtures/video_short1.webm.jpg new file: packages/tests/fixtures/video_short2.webm new file: packages/tests/fixtures/video_short2.webm.jpg new file: packages/tests/fixtures/video_short3.webm new file: packages/tests/fixtures/video_short3.webm.jpg new file: packages/tests/fixtures/video_short_0p.mp4 new file: packages/tests/fixtures/video_short_144p.m3u8 new file: packages/tests/fixtures/video_short_144p.mp4 new file: packages/tests/fixtures/video_short_240p.m3u8 new file: packages/tests/fixtures/video_short_240p.mp4 new file: packages/tests/fixtures/video_short_360p.m3u8 new file: packages/tests/fixtures/video_short_360p.mp4 new file: packages/tests/fixtures/video_short_480.webm new file: packages/tests/fixtures/video_short_480p.m3u8 new file: packages/tests/fixtures/video_short_480p.mp4 new file: packages/tests/fixtures/video_short_4k.mp4 new file: packages/tests/fixtures/video_short_720p.m3u8 new file: packages/tests/fixtures/video_short_720p.mp4 new file: packages/tests/fixtures/video_short_fake.webm new file: packages/tests/fixtures/video_short_mp3_256k.mp4 new file: packages/tests/fixtures/video_short_no_audio.mp4 new file: packages/tests/fixtures/video_very_long_10p.mp4 new file: packages/tests/fixtures/video_very_short_240p.mp4 new file: packages/tests/package.json new file: packages/tests/requirements.txt new file: packages/tests/src/api/activitypub/cleaner.ts new file: packages/tests/src/api/activitypub/client.ts new file: packages/tests/src/api/activitypub/fetch.ts new file: packages/tests/src/api/activitypub/index.ts new file: packages/tests/src/api/activitypub/refresher.ts new file: packages/tests/src/api/activitypub/security.ts new file: packages/tests/src/api/check-params/abuses.ts new file: packages/tests/src/api/check-params/accounts.ts new file: packages/tests/src/api/check-params/auto-tags.ts new file: packages/tests/src/api/check-params/blocklist.ts new file: packages/tests/src/api/check-params/bulk.ts new file: packages/tests/src/api/check-params/channel-import-videos.ts new file: packages/tests/src/api/check-params/config.ts new file: packages/tests/src/api/check-params/contact-form.ts new file: packages/tests/src/api/check-params/custom-pages.ts new file: packages/tests/src/api/check-params/debug.ts new file: packages/tests/src/api/check-params/follows.ts new file: packages/tests/src/api/check-params/generate-download.ts new file: packages/tests/src/api/check-params/index.ts new file: packages/tests/src/api/check-params/jobs.ts new file: packages/tests/src/api/check-params/live.ts new file: packages/tests/src/api/check-params/logs.ts new file: packages/tests/src/api/check-params/metrics.ts new file: packages/tests/src/api/check-params/my-user.ts new file: packages/tests/src/api/check-params/plugins.ts new file: packages/tests/src/api/check-params/redundancy.ts new file: packages/tests/src/api/check-params/registrations.ts new file: packages/tests/src/api/check-params/runners.ts new file: packages/tests/src/api/check-params/search.ts new file: packages/tests/src/api/check-params/services.ts new file: packages/tests/src/api/check-params/transcoding.ts new file: packages/tests/src/api/check-params/two-factor.ts new file: packages/tests/src/api/check-params/upload-quota.ts new file: packages/tests/src/api/check-params/user-export.ts new file: packages/tests/src/api/check-params/user-import.ts new file: packages/tests/src/api/check-params/user-notifications.ts new file: packages/tests/src/api/check-params/user-subscriptions.ts new file: packages/tests/src/api/check-params/users-admin.ts new file: packages/tests/src/api/check-params/users-emails.ts new file: packages/tests/src/api/check-params/video-blacklist.ts new file: packages/tests/src/api/check-params/video-captions.ts new file: packages/tests/src/api/check-params/video-channel-syncs.ts new file: packages/tests/src/api/check-params/video-channels.ts new file: packages/tests/src/api/check-params/video-chapters.ts new file: packages/tests/src/api/check-params/video-comments.ts new file: packages/tests/src/api/check-params/video-files.ts new file: packages/tests/src/api/check-params/video-imports.ts new file: packages/tests/src/api/check-params/video-passwords.ts new file: packages/tests/src/api/check-params/video-playlists.ts new file: packages/tests/src/api/check-params/video-source.ts new file: packages/tests/src/api/check-params/video-storyboards.ts new file: packages/tests/src/api/check-params/video-studio.ts new file: packages/tests/src/api/check-params/video-token.ts new file: packages/tests/src/api/check-params/video-transcription.ts new file: packages/tests/src/api/check-params/videos-common-filters.ts new file: packages/tests/src/api/check-params/videos-history.ts new file: packages/tests/src/api/check-params/videos-overviews.ts new file: packages/tests/src/api/check-params/videos.ts new file: packages/tests/src/api/check-params/views.ts new file: packages/tests/src/api/check-params/watched-words.ts new file: packages/tests/src/api/live/index.ts new file: packages/tests/src/api/live/live-audio-or-video-only.ts new file: packages/tests/src/api/live/live-constraints.ts new file: packages/tests/src/api/live/live-fast-restream.ts new file: packages/tests/src/api/live/live-permanent.ts new file: packages/tests/src/api/live/live-privacy-update.ts new file: packages/tests/src/api/live/live-rtmps.ts new file: packages/tests/src/api/live/live-save-replay.ts new file: packages/tests/src/api/live/live-socket-messages.ts new file: packages/tests/src/api/live/live.ts new file: packages/tests/src/api/moderation/abuses.ts new file: packages/tests/src/api/moderation/automatic-tags.ts new file: packages/tests/src/api/moderation/blocklist-notification.ts new file: packages/tests/src/api/moderation/blocklist.ts new file: packages/tests/src/api/moderation/comment-approval.ts new file: packages/tests/src/api/moderation/index.ts new file: packages/tests/src/api/moderation/video-blacklist.ts new file: packages/tests/src/api/moderation/watched-words.ts new file: packages/tests/src/api/notifications/admin-notifications.ts new file: packages/tests/src/api/notifications/caption-notifications.ts new file: packages/tests/src/api/notifications/comments-notifications.ts new file: packages/tests/src/api/notifications/index.ts new file: packages/tests/src/api/notifications/moderation-notifications.ts new file: packages/tests/src/api/notifications/notifications-api.ts new file: packages/tests/src/api/notifications/registrations-notifications.ts new file: packages/tests/src/api/notifications/user-notifications.ts new file: packages/tests/src/api/object-storage/index.ts new file: packages/tests/src/api/object-storage/live.ts new file: packages/tests/src/api/object-storage/video-imports.ts new file: packages/tests/src/api/object-storage/video-static-file-privacy.ts new file: packages/tests/src/api/object-storage/videos.ts new file: packages/tests/src/api/redundancy/index.ts new file: packages/tests/src/api/redundancy/manage-redundancy.ts new file: packages/tests/src/api/redundancy/redundancy-constraints.ts new file: packages/tests/src/api/redundancy/redundancy.ts new file: packages/tests/src/api/runners/index.ts new file: packages/tests/src/api/runners/runner-common.ts new file: packages/tests/src/api/runners/runner-live-transcoding.ts new file: packages/tests/src/api/runners/runner-socket.ts new file: packages/tests/src/api/runners/runner-studio-transcoding.ts new file: packages/tests/src/api/runners/runner-transcription.ts new file: packages/tests/src/api/runners/runner-vod-transcoding.ts new file: packages/tests/src/api/search/index.ts new file: packages/tests/src/api/search/search-activitypub-video-channels.ts new file: packages/tests/src/api/search/search-activitypub-video-playlists.ts new file: packages/tests/src/api/search/search-activitypub-videos.ts new file: packages/tests/src/api/search/search-channels.ts new file: packages/tests/src/api/search/search-index.ts new file: packages/tests/src/api/search/search-playlists.ts new file: packages/tests/src/api/search/search-videos.ts new file: packages/tests/src/api/server/auto-follows.ts new file: packages/tests/src/api/server/bulk.ts new file: packages/tests/src/api/server/config-defaults.ts new file: packages/tests/src/api/server/config.ts new file: packages/tests/src/api/server/contact-form.ts new file: packages/tests/src/api/server/email.ts new file: packages/tests/src/api/server/follow-constraints.ts new file: packages/tests/src/api/server/follows-moderation.ts new file: packages/tests/src/api/server/follows.ts new file: packages/tests/src/api/server/handle-down.ts new file: packages/tests/src/api/server/homepage.ts new file: packages/tests/src/api/server/index.ts new file: packages/tests/src/api/server/jobs.ts new file: packages/tests/src/api/server/logs.ts new file: packages/tests/src/api/server/no-client.ts new file: packages/tests/src/api/server/open-telemetry.ts new file: packages/tests/src/api/server/plugins.ts new file: packages/tests/src/api/server/proxy.ts new file: packages/tests/src/api/server/reverse-proxy.ts new file: packages/tests/src/api/server/services.ts new file: packages/tests/src/api/server/slow-follows.ts new file: packages/tests/src/api/server/ssrf.ts new file: packages/tests/src/api/server/stats.ts new file: packages/tests/src/api/server/tracker.ts new file: packages/tests/src/api/transcoding/audio-only.ts new file: packages/tests/src/api/transcoding/create-transcoding.ts new file: packages/tests/src/api/transcoding/hls.ts new file: packages/tests/src/api/transcoding/index.ts new file: packages/tests/src/api/transcoding/split-audio-and-video.ts new file: packages/tests/src/api/transcoding/transcoder-limits.ts new file: packages/tests/src/api/transcoding/transcoder.ts new file: packages/tests/src/api/transcoding/update-while-transcoding.ts new file: packages/tests/src/api/transcoding/video-studio.ts new file: packages/tests/src/api/users/index.ts new file: packages/tests/src/api/users/oauth.ts new file: packages/tests/src/api/users/registrations.ts new file: packages/tests/src/api/users/two-factor.ts new file: packages/tests/src/api/users/user-export.ts new file: packages/tests/src/api/users/user-import.ts new file: packages/tests/src/api/users/user-subscriptions.ts new file: packages/tests/src/api/users/user-videos.ts new file: packages/tests/src/api/users/users-email-verification.ts new file: packages/tests/src/api/users/users-multiple-servers.ts new file: packages/tests/src/api/users/users.ts new file: packages/tests/src/api/videos/channel-import-videos.ts new file: packages/tests/src/api/videos/generate-download.ts new file: packages/tests/src/api/videos/index.ts new file: packages/tests/src/api/videos/multiple-servers.ts new file: packages/tests/src/api/videos/resumable-upload.ts new file: packages/tests/src/api/videos/single-server.ts new file: packages/tests/src/api/videos/video-captions.ts new file: packages/tests/src/api/videos/video-change-ownership.ts new file: packages/tests/src/api/videos/video-channel-syncs.ts new file: packages/tests/src/api/videos/video-channels.ts new file: packages/tests/src/api/videos/video-chapters.ts new file: packages/tests/src/api/videos/video-comments.ts new file: packages/tests/src/api/videos/video-description.ts new file: packages/tests/src/api/videos/video-files.ts new file: packages/tests/src/api/videos/video-imports.ts new file: packages/tests/src/api/videos/video-nsfw.ts new file: packages/tests/src/api/videos/video-passwords.ts new file: packages/tests/src/api/videos/video-playlist-thumbnails.ts new file: packages/tests/src/api/videos/video-playlists.ts new file: packages/tests/src/api/videos/video-privacy.ts new file: packages/tests/src/api/videos/video-schedule-update.ts new file: packages/tests/src/api/videos/video-source.ts new file: packages/tests/src/api/videos/video-static-file-privacy.ts new file: packages/tests/src/api/videos/video-storyboard.ts new file: packages/tests/src/api/videos/video-transcription.ts new file: packages/tests/src/api/videos/videos-common-filters.ts new file: packages/tests/src/api/videos/videos-history.ts new file: packages/tests/src/api/videos/videos-overview.ts new file: packages/tests/src/api/views/index.ts new file: packages/tests/src/api/views/video-views-counter.ts new file: packages/tests/src/api/views/video-views-overall-stats.ts new file: packages/tests/src/api/views/video-views-retention-stats.ts new file: packages/tests/src/api/views/video-views-timeserie-stats.ts new file: packages/tests/src/api/views/videos-views-cleaner.ts new file: packages/tests/src/cli/create-generate-storyboard-job.ts new file: packages/tests/src/cli/create-import-video-file-job.ts new file: packages/tests/src/cli/create-move-video-storage-job.ts new file: packages/tests/src/cli/house-keeping.ts new file: packages/tests/src/cli/index.ts new file: packages/tests/src/cli/peertube.ts new file: packages/tests/src/cli/plugins.ts new file: packages/tests/src/cli/prune-storage.ts new file: packages/tests/src/cli/regenerate-thumbnails.ts new file: packages/tests/src/cli/reset-password.ts new file: packages/tests/src/cli/update-host.ts new file: packages/tests/src/cli/update-object-storage-url.ts new file: packages/tests/src/client/embed-html.ts new file: packages/tests/src/client/index-html.ts new file: packages/tests/src/client/index.ts new file: packages/tests/src/client/oembed.ts new file: packages/tests/src/client/og-twitter-tags.ts new file: packages/tests/src/core-utils/date.ts new file: packages/tests/src/external-plugins/akismet.ts new file: packages/tests/src/external-plugins/auth-ldap.ts new file: packages/tests/src/external-plugins/auto-block-videos.ts new file: packages/tests/src/external-plugins/auto-mute.ts new file: packages/tests/src/external-plugins/index.ts new file: packages/tests/src/external-plugins/privacy-remover.ts new file: packages/tests/src/feeds/feeds.ts new file: packages/tests/src/feeds/index.ts new file: packages/tests/src/jiwer/jiwer-cli.spec.ts new file: packages/tests/src/misc-endpoints.ts new file: packages/tests/src/nginx.ts new file: packages/tests/src/peertube-runner/client-cli.ts new file: packages/tests/src/peertube-runner/index.ts new file: packages/tests/src/peertube-runner/live-transcoding.ts new file: packages/tests/src/peertube-runner/replace-file.ts new file: packages/tests/src/peertube-runner/studio-transcoding.ts new file: packages/tests/src/peertube-runner/video-transcription.ts new file: packages/tests/src/peertube-runner/vod-transcoding.ts new file: packages/tests/src/plugins/action-hooks.ts new file: packages/tests/src/plugins/external-auth.ts new file: packages/tests/src/plugins/filter-hooks.ts new file: packages/tests/src/plugins/html-injection.ts new file: packages/tests/src/plugins/id-and-pass-auth.ts new file: packages/tests/src/plugins/index.ts new file: packages/tests/src/plugins/plugin-helpers.ts new file: packages/tests/src/plugins/plugin-router.ts new file: packages/tests/src/plugins/plugin-settings.ts new file: packages/tests/src/plugins/plugin-storage.ts new file: packages/tests/src/plugins/plugin-transcoding.ts new file: packages/tests/src/plugins/plugin-unloading.ts new file: packages/tests/src/plugins/plugin-websocket.ts new file: packages/tests/src/plugins/translations.ts new file: packages/tests/src/plugins/video-constants.ts new file: packages/tests/src/server-helpers/activitypub.ts new file: packages/tests/src/server-helpers/core-utils.ts new file: packages/tests/src/server-helpers/crypto.ts new file: packages/tests/src/server-helpers/dns.ts new file: packages/tests/src/server-helpers/image.ts new file: packages/tests/src/server-helpers/index.ts new file: packages/tests/src/server-helpers/markdown.ts new file: packages/tests/src/server-helpers/mentions.ts new file: packages/tests/src/server-helpers/regexp.ts new file: packages/tests/src/server-helpers/request.ts new file: packages/tests/src/server-helpers/validator.ts new file: packages/tests/src/server-helpers/version.ts new file: packages/tests/src/server-lib/index.ts new file: packages/tests/src/server-lib/video-constant-registry-factory.ts new file: packages/tests/src/shared/actors.ts new file: packages/tests/src/shared/captions.ts new file: packages/tests/src/shared/checks.ts new file: packages/tests/src/shared/client.ts new file: packages/tests/src/shared/common.ts new file: packages/tests/src/shared/directories.ts new file: packages/tests/src/shared/fixture-urls.ts new file: packages/tests/src/shared/generate.ts new file: packages/tests/src/shared/import-export.ts new file: packages/tests/src/shared/live.ts new file: packages/tests/src/shared/mock-servers/index.ts new file: packages/tests/src/shared/mock-servers/mock-429.ts new file: packages/tests/src/shared/mock-servers/mock-email.ts new file: packages/tests/src/shared/mock-servers/mock-http.ts new file: packages/tests/src/shared/mock-servers/mock-instances-index.ts new file: packages/tests/src/shared/mock-servers/mock-joinpeertube-versions.ts new file: packages/tests/src/shared/mock-servers/mock-object-storage.ts new file: packages/tests/src/shared/mock-servers/mock-plugin-blocklist.ts new file: packages/tests/src/shared/mock-servers/mock-proxy.ts new file: packages/tests/src/shared/mock-servers/shared.ts new file: packages/tests/src/shared/notifications.ts new file: packages/tests/src/shared/peertube-runner-process.ts new file: packages/tests/src/shared/plugins.ts new file: packages/tests/src/shared/requests.ts new file: packages/tests/src/shared/sql-command.ts new file: packages/tests/src/shared/streaming-playlists.ts new file: packages/tests/src/shared/tracker.ts new file: packages/tests/src/shared/transcription.ts new file: packages/tests/src/shared/video-playlists.ts new file: packages/tests/src/shared/videos.ts new file: packages/tests/src/shared/views.ts new file: packages/tests/src/shared/webtorrent.ts new file: packages/tests/src/transcription/levenshtein-distance.spec.ts new file: packages/tests/src/transcription/subtitle.spec.ts new file: packages/tests/src/transcription/transcriber-factory.spec.ts new file: packages/tests/src/transcription/transcript/transcript-file-evaluator.spec.ts new file: packages/tests/src/transcription/transcript/transcript-file.spec.ts new file: packages/tests/src/transcription/utils.spec.ts new file: packages/tests/src/transcription/whisper/openai-transcriber.spec.ts new file: packages/tests/src/transcription/whisper/whisper-ctranslate2.spec.ts new file: packages/tests/tsconfig.json new file: packages/transcription-devtools/README.md new file: packages/transcription-devtools/package.json new file: packages/transcription-devtools/requirements.txt new file: packages/transcription-devtools/src/benchmark.ts new file: packages/transcription-devtools/src/index.ts new file: packages/transcription-devtools/src/jiwer-cli.ts new file: packages/transcription-devtools/src/levenshtein.ts new file: packages/transcription-devtools/src/transcript-file-evaluator-interface.ts new file: packages/transcription-devtools/src/transcript-file-evaluator.ts new file: packages/transcription-devtools/src/utils.ts new file: packages/transcription-devtools/tsconfig.json new file: packages/transcription/README.md new file: packages/transcription/package.json new file: packages/transcription/src/abstract-transcriber.ts new file: packages/transcription/src/index.ts new file: packages/transcription/src/subtitle.ts new file: packages/transcription/src/transcriber-factory.ts new file: packages/transcription/src/transcript-file.ts new file: packages/transcription/src/transcription-engine.ts new file: packages/transcription/src/transcription-model.ts new file: packages/transcription/src/transcription-run.ts new file: packages/transcription/src/whisper/engines.ts new file: packages/transcription/src/whisper/index.ts new file: packages/transcription/src/whisper/transcriber/ctranslate2-transcriber.ts new file: packages/transcription/src/whisper/transcriber/index.ts new file: packages/transcription/src/whisper/transcriber/openai-transcriber.ts new file: packages/transcription/src/whisper/whisper-builtin-model.ts new file: packages/transcription/tsconfig.json new file: packages/transcription/tsconfig.types.json new file: packages/types-generator/README.md new file: packages/types-generator/generate-package.ts new file: packages/types-generator/package.json new file: packages/types-generator/rollup.config.js new file: packages/types-generator/src/client/index.ts new file: packages/types-generator/src/client/tsconfig.types.json new file: packages/types-generator/src/index.ts new file: packages/types-generator/tests/test.ts new file: packages/types-generator/tsconfig.dist-tmp.json new file: packages/types-generator/tsconfig.json new file: packages/types-generator/tsconfig.types.json new file: packages/typescript-utils/package.json new file: packages/typescript-utils/src/index.ts new file: packages/typescript-utils/src/types.ts new file: packages/typescript-utils/tsconfig.json new file: packages/typescript-utils/tsconfig.types.json new file: scripts/benchmark.ts new file: scripts/build/client.sh new file: scripts/build/embed.sh new file: scripts/build/index.sh new file: scripts/build/peertube-cli.sh new file: scripts/build/peertube-runner.sh new file: scripts/build/server.sh new file: scripts/build/tests.sh new file: scripts/ci.sh new file: scripts/clean/client/index.sh new file: scripts/clean/server/test.sh new file: scripts/client-build-stats.ts new file: scripts/client-report.sh new file: scripts/dev/client.sh new file: scripts/dev/embed.sh new file: scripts/dev/index.sh new file: scripts/dev/peertube-cli.sh new file: scripts/dev/peertube-runner.sh new file: scripts/dev/server.sh new file: scripts/e2e/browserstack.sh new file: scripts/e2e/local.sh new file: scripts/generate-code-contributors.ts new file: scripts/i18n/create-custom-files.ts new file: scripts/i18n/update.sh new file: scripts/nightly.sh new file: scripts/openapi-clients.sh new file: scripts/openapi-peertube-version.sh new file: scripts/release-embed-api.sh new file: scripts/release.sh new file: scripts/simulate-many-viewers-worker.js new file: scripts/simulate-many-viewers-worker.ts new file: scripts/simulate-many-viewers.ts new file: scripts/test.sh new file: scripts/tsconfig.json new file: scripts/upgrade.sh new file: server/core/assets/default-audio-background.jpg new file: server/core/assets/email-templates/abuse-new-message/html.pug new file: server/core/assets/email-templates/abuse-state-change/html.pug new file: server/core/assets/email-templates/account-abuse-new/html.pug new file: server/core/assets/email-templates/common/base.pug new file: server/core/assets/email-templates/common/greetings.pug new file: server/core/assets/email-templates/common/html.pug new file: server/core/assets/email-templates/common/mixins.pug new file: server/core/assets/email-templates/contact-form/html.pug new file: server/core/assets/email-templates/follower-on-channel/html.pug new file: server/core/assets/email-templates/password-create/html.pug new file: server/core/assets/email-templates/password-reset/html.pug new file: server/core/assets/email-templates/peertube-version-new/html.pug new file: server/core/assets/email-templates/plugin-version-new/html.pug new file: server/core/assets/email-templates/user-export-completed/html.pug new file: server/core/assets/email-templates/user-export-errored/html.pug new file: server/core/assets/email-templates/user-import-completed/html.pug new file: server/core/assets/email-templates/user-import-errored/html.pug new file: server/core/assets/email-templates/user-registered/html.pug new file: server/core/assets/email-templates/user-registration-request-accepted/html.pug new file: server/core/assets/email-templates/user-registration-request-rejected/html.pug new file: server/core/assets/email-templates/user-registration-request/html.pug new file: server/core/assets/email-templates/verify-email/html.pug new file: server/core/assets/email-templates/video-abuse-new/html.pug new file: server/core/assets/email-templates/video-auto-blacklist-new/html.pug new file: server/core/assets/email-templates/video-comment-abuse-new/html.pug new file: server/core/assets/email-templates/video-comment-mention/html.pug new file: server/core/assets/email-templates/video-comment-new/html.pug new file: server/core/controllers/activitypub/client.ts new file: server/core/controllers/activitypub/inbox.ts new file: server/core/controllers/activitypub/index.ts new file: server/core/controllers/activitypub/outbox.ts new file: server/core/controllers/activitypub/utils.ts new file: server/core/controllers/api/abuse.ts new file: server/core/controllers/api/accounts.ts new file: server/core/controllers/api/automatic-tags.ts new file: server/core/controllers/api/blocklist.ts new file: server/core/controllers/api/bulk.ts new file: server/core/controllers/api/config.ts new file: server/core/controllers/api/custom-page.ts new file: server/core/controllers/api/index.ts new file: server/core/controllers/api/jobs.ts new file: server/core/controllers/api/metrics.ts new file: server/core/controllers/api/oauth-clients.ts new file: server/core/controllers/api/overviews.ts new file: server/core/controllers/api/plugins.ts new file: server/core/controllers/api/runners/index.ts new file: server/core/controllers/api/runners/jobs-files.ts new file: server/core/controllers/api/runners/jobs.ts new file: server/core/controllers/api/runners/manage-runners.ts new file: server/core/controllers/api/runners/registration-tokens.ts new file: server/core/controllers/api/search/index.ts new file: server/core/controllers/api/search/search-video-channels.ts new file: server/core/controllers/api/search/search-video-playlists.ts new file: server/core/controllers/api/search/search-videos.ts new file: server/core/controllers/api/search/shared/index.ts new file: server/core/controllers/api/search/shared/utils.ts new file: server/core/controllers/api/server/contact.ts new file: server/core/controllers/api/server/debug.ts new file: server/core/controllers/api/server/follows.ts new file: server/core/controllers/api/server/index.ts new file: server/core/controllers/api/server/logs.ts new file: server/core/controllers/api/server/redundancy.ts new file: server/core/controllers/api/server/server-blocklist.ts new file: server/core/controllers/api/server/stats.ts new file: server/core/controllers/api/users/email-verification.ts new file: server/core/controllers/api/users/index.ts new file: server/core/controllers/api/users/me.ts new file: server/core/controllers/api/users/my-abuses.ts new file: server/core/controllers/api/users/my-blocklist.ts new file: server/core/controllers/api/users/my-history.ts new file: server/core/controllers/api/users/my-notifications.ts new file: server/core/controllers/api/users/my-subscriptions.ts new file: server/core/controllers/api/users/my-video-playlists.ts new file: server/core/controllers/api/users/registrations.ts new file: server/core/controllers/api/users/token.ts new file: server/core/controllers/api/users/two-factor.ts new file: server/core/controllers/api/users/user-exports.ts new file: server/core/controllers/api/users/user-imports.ts new file: server/core/controllers/api/video-channel-sync.ts new file: server/core/controllers/api/video-channel.ts new file: server/core/controllers/api/video-playlist.ts new file: server/core/controllers/api/videos/blacklist.ts new file: server/core/controllers/api/videos/captions.ts new file: server/core/controllers/api/videos/chapters.ts new file: server/core/controllers/api/videos/comment.ts new file: server/core/controllers/api/videos/files.ts new file: server/core/controllers/api/videos/import.ts new file: server/core/controllers/api/videos/index.ts new file: server/core/controllers/api/videos/live.ts new file: server/core/controllers/api/videos/ownership.ts new file: server/core/controllers/api/videos/passwords.ts new file: server/core/controllers/api/videos/rate.ts new file: server/core/controllers/api/videos/source.ts new file: server/core/controllers/api/videos/stats.ts new file: server/core/controllers/api/videos/storyboard.ts new file: server/core/controllers/api/videos/studio.ts new file: server/core/controllers/api/videos/token.ts new file: server/core/controllers/api/videos/transcoding.ts new file: server/core/controllers/api/videos/update.ts new file: server/core/controllers/api/videos/upload.ts new file: server/core/controllers/api/videos/view.ts new file: server/core/controllers/api/watched-words.ts new file: server/core/controllers/client.ts new file: server/core/controllers/download.ts new file: server/core/controllers/feeds/comment-feeds.ts new file: server/core/controllers/feeds/index.ts new file: server/core/controllers/feeds/shared/common-feed-utils.ts new file: server/core/controllers/feeds/shared/index.ts new file: server/core/controllers/feeds/shared/video-feed-utils.ts new file: server/core/controllers/feeds/video-feeds.ts new file: server/core/controllers/feeds/video-podcast-feeds.ts new file: server/core/controllers/index.ts new file: server/core/controllers/lazy-static.ts new file: server/core/controllers/misc.ts new file: server/core/controllers/object-storage-proxy.ts new file: server/core/controllers/plugins.ts new file: server/core/controllers/services.ts new file: server/core/controllers/shared/m3u8-playlist.ts new file: server/core/controllers/sitemap.ts new file: server/core/controllers/static.ts new file: server/core/controllers/tracker.ts new file: server/core/controllers/well-known.ts new file: server/core/helpers/activity-pub-utils.ts new file: server/core/helpers/actors.ts new file: server/core/helpers/audit-logger.ts new file: server/core/helpers/captions-utils.ts new file: server/core/helpers/core-utils.ts new file: server/core/helpers/custom-jsonld-signature.ts new file: server/core/helpers/custom-validators/abuses.ts new file: server/core/helpers/custom-validators/accounts.ts new file: server/core/helpers/custom-validators/activitypub/activity.ts new file: server/core/helpers/custom-validators/activitypub/actor.ts new file: server/core/helpers/custom-validators/activitypub/cache-file.ts new file: server/core/helpers/custom-validators/activitypub/misc.ts new file: server/core/helpers/custom-validators/activitypub/playlist.ts new file: server/core/helpers/custom-validators/activitypub/signature.ts new file: server/core/helpers/custom-validators/activitypub/video-chapters.ts new file: server/core/helpers/custom-validators/activitypub/video-comments.ts new file: server/core/helpers/custom-validators/activitypub/videos.ts new file: server/core/helpers/custom-validators/activitypub/watch-action.ts new file: server/core/helpers/custom-validators/actor-images.ts new file: server/core/helpers/custom-validators/bulk.ts new file: server/core/helpers/custom-validators/feeds.ts new file: server/core/helpers/custom-validators/follows.ts new file: server/core/helpers/custom-validators/jobs.ts new file: server/core/helpers/custom-validators/logs.ts new file: server/core/helpers/custom-validators/metrics.ts new file: server/core/helpers/custom-validators/misc.ts new file: server/core/helpers/custom-validators/plugins.ts new file: server/core/helpers/custom-validators/runners/jobs.ts new file: server/core/helpers/custom-validators/runners/runners.ts new file: server/core/helpers/custom-validators/search.ts new file: server/core/helpers/custom-validators/servers.ts new file: server/core/helpers/custom-validators/user-notifications.ts new file: server/core/helpers/custom-validators/user-registration.ts new file: server/core/helpers/custom-validators/users.ts new file: server/core/helpers/custom-validators/video-blacklist.ts new file: server/core/helpers/custom-validators/video-captions.ts new file: server/core/helpers/custom-validators/video-channel-syncs.ts new file: server/core/helpers/custom-validators/video-channels.ts new file: server/core/helpers/custom-validators/video-chapters.ts new file: server/core/helpers/custom-validators/video-comments.ts new file: server/core/helpers/custom-validators/video-imports.ts new file: server/core/helpers/custom-validators/video-lives.ts new file: server/core/helpers/custom-validators/video-ownership.ts new file: server/core/helpers/custom-validators/video-playlists.ts new file: server/core/helpers/custom-validators/video-rates.ts new file: server/core/helpers/custom-validators/video-redundancies.ts new file: server/core/helpers/custom-validators/video-stats.ts new file: server/core/helpers/custom-validators/video-studio.ts new file: server/core/helpers/custom-validators/video-transcoding.ts new file: server/core/helpers/custom-validators/video-view.ts new file: server/core/helpers/custom-validators/videos.ts new file: server/core/helpers/custom-validators/watched-words.ts new file: server/core/helpers/custom-validators/webfinger.ts new file: server/core/helpers/database-utils.ts new file: server/core/helpers/debounce.ts new file: server/core/helpers/decache.ts new file: server/core/helpers/dns.ts new file: server/core/helpers/express-utils.ts new file: server/core/helpers/ffmpeg/codecs.ts new file: server/core/helpers/ffmpeg/ffmpeg-image.ts new file: server/core/helpers/ffmpeg/ffmpeg-options.ts new file: server/core/helpers/ffmpeg/framerate.ts new file: server/core/helpers/ffmpeg/index.ts new file: server/core/helpers/fs.ts new file: server/core/helpers/geo-ip.ts new file: server/core/helpers/hpagent.ts new file: server/core/helpers/image-utils.ts new file: server/core/helpers/logger.ts new file: server/core/helpers/markdown.ts new file: server/core/helpers/memoize.ts new file: server/core/helpers/mentions.ts new file: server/core/helpers/otp.ts new file: server/core/helpers/peertube-crypto.ts new file: server/core/helpers/peertube-jsonld.ts new file: server/core/helpers/promise-cache.ts new file: server/core/helpers/proxy.ts new file: server/core/helpers/query.ts new file: server/core/helpers/regexp.ts new file: server/core/helpers/requests.ts new file: server/core/helpers/stream-replacer.ts new file: server/core/helpers/threads.ts new file: server/core/helpers/token-generator.ts new file: server/core/helpers/unzip.ts new file: server/core/helpers/upload.ts new file: server/core/helpers/utils.ts new file: server/core/helpers/version.ts new file: server/core/helpers/video.ts new file: server/core/helpers/webtorrent.ts new file: server/core/initializers/checker-after-init.ts new file: server/core/initializers/checker-before-init.ts new file: server/core/initializers/config.ts new file: server/core/initializers/constants.ts new file: server/core/initializers/database.ts new file: server/core/initializers/installer.ts new file: server/core/initializers/migrations/0505-user-last-login-date.ts new file: server/core/initializers/migrations/0510-video-file-metadata.ts new file: server/core/initializers/migrations/0515-video-abuse-reason-timestamps.ts new file: server/core/initializers/migrations/0520-abuses-split.ts new file: server/core/initializers/migrations/0525-abuse-messages.ts new file: server/core/initializers/migrations/0530-playlist-multiple-video.ts new file: server/core/initializers/migrations/0535-video-live.ts new file: server/core/initializers/migrations/0540-video-file-infohash.ts new file: server/core/initializers/migrations/0545-video-live-save-replay.ts new file: server/core/initializers/migrations/0550-actor-follow-cleanup.ts new file: server/core/initializers/migrations/0555-actor-follow-url.ts new file: server/core/initializers/migrations/0560-user-feed-token.ts new file: server/core/initializers/migrations/0565-actor-follow-local-url.ts new file: server/core/initializers/migrations/0570-permanent-live.ts new file: server/core/initializers/migrations/0575-duplicate-thumbnail.ts new file: server/core/initializers/migrations/0580-caption-filename.ts new file: server/core/initializers/migrations/0585-video-file-names.ts new file: server/core/initializers/migrations/0590-trackers.ts new file: server/core/initializers/migrations/0595-remote-url.ts new file: server/core/initializers/migrations/0600-duplicate-video-files.ts new file: server/core/initializers/migrations/0605-actor-missing-keys.ts new file: server/core/initializers/migrations/0610-views-index copy.ts new file: server/core/initializers/migrations/0612-captions-unique.ts new file: server/core/initializers/migrations/0615-latest-versions-notification-settings.ts new file: server/core/initializers/migrations/0620-latest-versions-application.ts new file: server/core/initializers/migrations/0625-latest-versions-notification.ts new file: server/core/initializers/migrations/0630-banner.ts new file: server/core/initializers/migrations/0635-actor-image-size.ts new file: server/core/initializers/migrations/0640-unique-keys.ts new file: server/core/initializers/migrations/0645-actor-remote-creation-date.ts new file: server/core/initializers/migrations/0650-actor-custom-pages.ts new file: server/core/initializers/migrations/0655-streaming-playlist-filenames.ts new file: server/core/initializers/migrations/0660-object-storage.ts new file: server/core/initializers/migrations/0665-no-account-warning-modal.ts new file: server/core/initializers/migrations/0670-pending-job-default.ts new file: server/core/initializers/migrations/0675-p2p-enabled.ts new file: server/core/initializers/migrations/0680-files-storage-default.ts new file: server/core/initializers/migrations/0685-multiple-actor-images.ts new file: server/core/initializers/migrations/0690-live-latency-mode.ts new file: server/core/initializers/migrations/0695-remove-remote-rates.ts new file: server/core/initializers/migrations/0700-edition-finished-notification.ts new file: server/core/initializers/migrations/0705-local-video-viewers.ts new file: server/core/initializers/migrations/0710-live-sessions.ts new file: server/core/initializers/migrations/0715-video-source.ts new file: server/core/initializers/migrations/0720-session-ending-processed.ts new file: server/core/initializers/migrations/0725-node-version.ts new file: server/core/initializers/migrations/0730-video-channel-sync.ts new file: server/core/initializers/migrations/0735-video-channel-sync-import-foreign-key.ts new file: server/core/initializers/migrations/0740-fix-old-enums.ts new file: server/core/initializers/migrations/0745-user-otp.ts new file: server/core/initializers/migrations/0750-user-registration.ts new file: server/core/initializers/migrations/0755-unique-viewer-url.ts new file: server/core/initializers/migrations/0760-video-live-replay-setting.ts new file: server/core/initializers/migrations/0765-remote-transcoding.ts new file: server/core/initializers/migrations/0770-actor-preferred-username.ts new file: server/core/initializers/migrations/0775-add-user-is-email-public.ts new file: server/core/initializers/migrations/0780-notification-registration.ts new file: server/core/initializers/migrations/0785-video-password-protection.ts new file: server/core/initializers/migrations/0790-thumbnail-disk.ts new file: server/core/initializers/migrations/0795-duplicate-runner-name.ts new file: server/core/initializers/migrations/0800-video-replace-file.ts new file: server/core/initializers/migrations/0805-viewer-subdivision.ts new file: server/core/initializers/migrations/0810-user-export.ts new file: server/core/initializers/migrations/0815-user-import.ts new file: server/core/initializers/migrations/0820-abuse-registration-stats.ts new file: server/core/initializers/migrations/0825-video-ratio.ts new file: server/core/initializers/migrations/0830-keep-original-file.ts new file: server/core/initializers/migrations/0835-video-source-size.ts new file: server/core/initializers/migrations/0840-user-export-size.ts new file: server/core/initializers/migrations/0845-auto-tags.ts new file: server/core/initializers/migrations/0850-streaming-playlist-sha-nullable.ts new file: server/core/initializers/migrations/0855-transcription.ts new file: server/core/initializers/migrations/0860-caption-generated.ts new file: server/core/initializers/migrations/0865-video-file-streams.ts new file: server/core/initializers/migrator.ts new file: server/core/lib/activitypub/activity.ts new file: server/core/lib/activitypub/actors/get.ts new file: server/core/lib/activitypub/actors/image.ts new file: server/core/lib/activitypub/actors/index.ts new file: server/core/lib/activitypub/actors/keys.ts new file: server/core/lib/activitypub/actors/refresh.ts new file: server/core/lib/activitypub/actors/shared/creator.ts new file: server/core/lib/activitypub/actors/shared/index.ts new file: server/core/lib/activitypub/actors/shared/object-to-model-attributes.ts new file: server/core/lib/activitypub/actors/shared/url-to-object.ts new file: server/core/lib/activitypub/actors/updater.ts new file: server/core/lib/activitypub/actors/webfinger.ts new file: server/core/lib/activitypub/audience.ts new file: server/core/lib/activitypub/cache-file.ts new file: server/core/lib/activitypub/collection.ts new file: server/core/lib/activitypub/context.ts new file: server/core/lib/activitypub/crawl.ts new file: server/core/lib/activitypub/follow.ts new file: server/core/lib/activitypub/inbox-manager.ts new file: server/core/lib/activitypub/local-video-viewer.ts new file: server/core/lib/activitypub/outbox.ts new file: server/core/lib/activitypub/playlists/create-update.ts new file: server/core/lib/activitypub/playlists/get.ts new file: server/core/lib/activitypub/playlists/index.ts new file: server/core/lib/activitypub/playlists/refresh.ts new file: server/core/lib/activitypub/playlists/shared/index.ts new file: server/core/lib/activitypub/playlists/shared/object-to-model-attributes.ts new file: server/core/lib/activitypub/playlists/shared/url-to-object.ts new file: server/core/lib/activitypub/process/index.ts new file: server/core/lib/activitypub/process/process-accept.ts new file: server/core/lib/activitypub/process/process-announce.ts new file: server/core/lib/activitypub/process/process-create.ts new file: server/core/lib/activitypub/process/process-delete.ts new file: server/core/lib/activitypub/process/process-dislike.ts new file: server/core/lib/activitypub/process/process-flag.ts new file: server/core/lib/activitypub/process/process-follow.ts new file: server/core/lib/activitypub/process/process-like.ts new file: server/core/lib/activitypub/process/process-reject.ts new file: server/core/lib/activitypub/process/process-reply-approval.ts new file: server/core/lib/activitypub/process/process-undo.ts new file: server/core/lib/activitypub/process/process-update.ts new file: server/core/lib/activitypub/process/process-view.ts new file: server/core/lib/activitypub/process/process.ts new file: server/core/lib/activitypub/send/http.ts new file: server/core/lib/activitypub/send/index.ts new file: server/core/lib/activitypub/send/send-accept.ts new file: server/core/lib/activitypub/send/send-announce.ts new file: server/core/lib/activitypub/send/send-create.ts new file: server/core/lib/activitypub/send/send-delete.ts new file: server/core/lib/activitypub/send/send-dislike.ts new file: server/core/lib/activitypub/send/send-flag.ts new file: server/core/lib/activitypub/send/send-follow.ts new file: server/core/lib/activitypub/send/send-like.ts new file: server/core/lib/activitypub/send/send-reject.ts new file: server/core/lib/activitypub/send/send-reply-approval.ts new file: server/core/lib/activitypub/send/send-undo.ts new file: server/core/lib/activitypub/send/send-update.ts new file: server/core/lib/activitypub/send/send-view.ts new file: server/core/lib/activitypub/send/shared/audience-utils.ts new file: server/core/lib/activitypub/send/shared/index.ts new file: server/core/lib/activitypub/send/shared/send-utils.ts new file: server/core/lib/activitypub/share.ts new file: server/core/lib/activitypub/url.ts new file: server/core/lib/activitypub/video-chapters.ts new file: server/core/lib/activitypub/video-comments.ts new file: server/core/lib/activitypub/video-rates.ts new file: server/core/lib/activitypub/videos/federate.ts new file: server/core/lib/activitypub/videos/get.ts new file: server/core/lib/activitypub/videos/index.ts new file: server/core/lib/activitypub/videos/refresh.ts new file: server/core/lib/activitypub/videos/shared/abstract-builder.ts new file: server/core/lib/activitypub/videos/shared/creator.ts new file: server/core/lib/activitypub/videos/shared/index.ts new file: server/core/lib/activitypub/videos/shared/object-to-model-attributes.ts new file: server/core/lib/activitypub/videos/shared/trackers.ts new file: server/core/lib/activitypub/videos/shared/url-to-object.ts new file: server/core/lib/activitypub/videos/shared/video-sync-attributes.ts new file: server/core/lib/activitypub/videos/updater.ts new file: server/core/lib/actor-follow-health-cache.ts new file: server/core/lib/auth/external-auth.ts new file: server/core/lib/auth/oauth-model.ts new file: server/core/lib/auth/oauth.ts new file: server/core/lib/auth/tokens-cache.ts new file: server/core/lib/automatic-tags/automatic-tagger.ts new file: server/core/lib/automatic-tags/automatic-tags.ts new file: server/core/lib/blocklist.ts new file: server/core/lib/emailer.ts new file: server/core/lib/files-cache/avatar-permanent-file-cache.ts new file: server/core/lib/files-cache/index.ts new file: server/core/lib/files-cache/shared/abstract-permanent-file-cache.ts new file: server/core/lib/files-cache/shared/abstract-simple-file-cache.ts new file: server/core/lib/files-cache/shared/index.ts new file: server/core/lib/files-cache/video-captions-simple-file-cache.ts new file: server/core/lib/files-cache/video-miniature-permanent-file-cache.ts new file: server/core/lib/files-cache/video-previews-simple-file-cache.ts new file: server/core/lib/files-cache/video-storyboards-simple-file-cache.ts new file: server/core/lib/files-cache/video-torrents-simple-file-cache.ts new file: server/core/lib/hls.ts new file: server/core/lib/html/client-html.ts new file: server/core/lib/html/shared/actor-html.ts new file: server/core/lib/html/shared/common-embed-html.ts new file: server/core/lib/html/shared/index.ts new file: server/core/lib/html/shared/page-html.ts new file: server/core/lib/html/shared/playlist-html.ts new file: server/core/lib/html/shared/tags-html.ts new file: server/core/lib/html/shared/video-html.ts new file: server/core/lib/internal-event-emitter.ts new file: server/core/lib/job-queue/handlers/activitypub-cleaner.ts new file: server/core/lib/job-queue/handlers/activitypub-follow.ts new file: server/core/lib/job-queue/handlers/activitypub-http-broadcast.ts new file: server/core/lib/job-queue/handlers/activitypub-http-fetcher.ts new file: server/core/lib/job-queue/handlers/activitypub-http-unicast.ts new file: server/core/lib/job-queue/handlers/activitypub-refresher.ts new file: server/core/lib/job-queue/handlers/actor-keys.ts new file: server/core/lib/job-queue/handlers/after-video-channel-import.ts new file: server/core/lib/job-queue/handlers/create-user-export.ts new file: server/core/lib/job-queue/handlers/email.ts new file: server/core/lib/job-queue/handlers/federate-video.ts new file: server/core/lib/job-queue/handlers/generate-storyboard.ts new file: server/core/lib/job-queue/handlers/import-user-archive.ts new file: server/core/lib/job-queue/handlers/manage-video-torrent.ts new file: server/core/lib/job-queue/handlers/move-to-file-system.ts new file: server/core/lib/job-queue/handlers/move-to-object-storage.ts new file: server/core/lib/job-queue/handlers/notify.ts new file: server/core/lib/job-queue/handlers/shared/move-video.ts new file: server/core/lib/job-queue/handlers/transcoding-job-builder.ts new file: server/core/lib/job-queue/handlers/video-channel-import.ts new file: server/core/lib/job-queue/handlers/video-file-import.ts new file: server/core/lib/job-queue/handlers/video-import.ts new file: server/core/lib/job-queue/handlers/video-live-ending.ts new file: server/core/lib/job-queue/handlers/video-redundancy.ts new file: server/core/lib/job-queue/handlers/video-studio-edition.ts new file: server/core/lib/job-queue/handlers/video-transcoding.ts new file: server/core/lib/job-queue/handlers/video-transcription.ts new file: server/core/lib/job-queue/handlers/video-views-stats.ts new file: server/core/lib/job-queue/index.ts new file: server/core/lib/job-queue/job-queue.ts new file: server/core/lib/live/index.ts new file: server/core/lib/live/live-manager.ts new file: server/core/lib/live/live-quota-store.ts new file: server/core/lib/live/live-segment-sha-store.ts new file: server/core/lib/live/live-utils.ts new file: server/core/lib/live/shared/index.ts new file: server/core/lib/live/shared/muxing-session.ts new file: server/core/lib/live/shared/transcoding-wrapper/abstract-transcoding-wrapper.ts new file: server/core/lib/live/shared/transcoding-wrapper/ffmpeg-transcoding-wrapper.ts new file: server/core/lib/live/shared/transcoding-wrapper/index.ts new file: server/core/lib/live/shared/transcoding-wrapper/remote-transcoding-wrapper.ts new file: server/core/lib/local-actor.ts new file: server/core/lib/local-video-creator.ts new file: server/core/lib/model-loaders/actor.ts new file: server/core/lib/model-loaders/index.ts new file: server/core/lib/model-loaders/video.ts new file: server/core/lib/moderation.ts new file: server/core/lib/notifier/index.ts new file: server/core/lib/notifier/notifier.ts new file: server/core/lib/notifier/shared/abuse/abstract-new-abuse-message.ts new file: server/core/lib/notifier/shared/abuse/abuse-state-change-for-reporter.ts new file: server/core/lib/notifier/shared/abuse/index.ts new file: server/core/lib/notifier/shared/abuse/new-abuse-for-moderators.ts new file: server/core/lib/notifier/shared/abuse/new-abuse-message-for-moderators.ts new file: server/core/lib/notifier/shared/abuse/new-abuse-message-for-reporter.ts new file: server/core/lib/notifier/shared/blacklist/index.ts new file: server/core/lib/notifier/shared/blacklist/new-auto-blacklist-for-moderators.ts new file: server/core/lib/notifier/shared/blacklist/new-blacklist-for-owner.ts new file: server/core/lib/notifier/shared/blacklist/unblacklist-for-owner.ts new file: server/core/lib/notifier/shared/caption/index.ts new file: server/core/lib/notifier/shared/caption/video-transcription-generated-for-owner.ts new file: server/core/lib/notifier/shared/comment/comment-mention.ts new file: server/core/lib/notifier/shared/comment/index.ts new file: server/core/lib/notifier/shared/comment/new-comment-for-video-owner.ts new file: server/core/lib/notifier/shared/common/abstract-notification.ts new file: server/core/lib/notifier/shared/common/index.ts new file: server/core/lib/notifier/shared/follow/auto-follow-for-instance.ts new file: server/core/lib/notifier/shared/follow/follow-for-instance.ts new file: server/core/lib/notifier/shared/follow/follow-for-user.ts new file: server/core/lib/notifier/shared/follow/index.ts new file: server/core/lib/notifier/shared/index.ts new file: server/core/lib/notifier/shared/instance/direct-registration-for-moderators.ts new file: server/core/lib/notifier/shared/instance/index.ts new file: server/core/lib/notifier/shared/instance/new-peertube-version-for-admins.ts new file: server/core/lib/notifier/shared/instance/new-plugin-version-for-admins.ts new file: server/core/lib/notifier/shared/instance/registration-request-for-moderators.ts new file: server/core/lib/notifier/shared/video-publication/abstract-owned-video-publication.ts new file: server/core/lib/notifier/shared/video-publication/import-finished-for-owner.ts new file: server/core/lib/notifier/shared/video-publication/index.ts new file: server/core/lib/notifier/shared/video-publication/new-video-or-live-for-subscribers.ts new file: server/core/lib/notifier/shared/video-publication/owned-publication-after-auto-unblacklist.ts new file: server/core/lib/notifier/shared/video-publication/owned-publication-after-schedule-update.ts new file: server/core/lib/notifier/shared/video-publication/owned-publication-after-transcoding.ts new file: server/core/lib/notifier/shared/video-publication/studio-edition-finished-for-owner.ts new file: server/core/lib/object-storage/index.ts new file: server/core/lib/object-storage/keys.ts new file: server/core/lib/object-storage/object-storage-helpers.ts new file: server/core/lib/object-storage/pre-signed-urls.ts new file: server/core/lib/object-storage/proxy.ts new file: server/core/lib/object-storage/shared/client.ts new file: server/core/lib/object-storage/shared/index.ts new file: server/core/lib/object-storage/shared/logger.ts new file: server/core/lib/object-storage/urls.ts new file: server/core/lib/object-storage/user-export.ts new file: server/core/lib/object-storage/videos.ts new file: server/core/lib/opentelemetry/metric-helpers/bittorrent-tracker-observers-builder.ts new file: server/core/lib/opentelemetry/metric-helpers/index.ts new file: server/core/lib/opentelemetry/metric-helpers/job-queue-observers-builder.ts new file: server/core/lib/opentelemetry/metric-helpers/lives-observers-builder.ts new file: server/core/lib/opentelemetry/metric-helpers/nodejs-observers-builder.ts new file: server/core/lib/opentelemetry/metric-helpers/playback-metrics.ts new file: server/core/lib/opentelemetry/metric-helpers/stats-observers-builder.ts new file: server/core/lib/opentelemetry/metric-helpers/viewers-observers-builder.ts new file: server/core/lib/opentelemetry/metric-helpers/worker-threads-observers.ts new file: server/core/lib/opentelemetry/metrics.ts new file: server/core/lib/opentelemetry/tracing.ts new file: server/core/lib/paths.ts new file: server/core/lib/peertube-socket.ts new file: server/core/lib/plugins/hooks.ts new file: server/core/lib/plugins/plugin-helpers-builder.ts new file: server/core/lib/plugins/plugin-index.ts new file: server/core/lib/plugins/plugin-manager.ts new file: server/core/lib/plugins/register-helpers.ts new file: server/core/lib/plugins/theme-utils.ts new file: server/core/lib/plugins/video-constant-manager-factory.ts new file: server/core/lib/plugins/yarn.ts new file: server/core/lib/rate.ts new file: server/core/lib/redis.ts new file: server/core/lib/redundancy.ts new file: server/core/lib/runners/index.ts new file: server/core/lib/runners/job-handlers/abstract-job-handler.ts new file: server/core/lib/runners/job-handlers/abstract-vod-transcoding-job-handler.ts new file: server/core/lib/runners/job-handlers/index.ts new file: server/core/lib/runners/job-handlers/live-rtmp-hls-transcoding-job-handler.ts new file: server/core/lib/runners/job-handlers/runner-job-handlers.ts new file: server/core/lib/runners/job-handlers/shared/utils.ts new file: server/core/lib/runners/job-handlers/transcription-job-handler.ts new file: server/core/lib/runners/job-handlers/video-studio-transcoding-job-handler.ts new file: server/core/lib/runners/job-handlers/vod-audio-merge-transcoding-job-handler.ts new file: server/core/lib/runners/job-handlers/vod-hls-transcoding-job-handler.ts new file: server/core/lib/runners/job-handlers/vod-web-video-transcoding-job-handler.ts new file: server/core/lib/runners/runner-urls.ts new file: server/core/lib/runners/runner.ts new file: server/core/lib/schedulers/abstract-scheduler.ts new file: server/core/lib/schedulers/actor-follow-scheduler.ts new file: server/core/lib/schedulers/auto-follow-index-instances.ts new file: server/core/lib/schedulers/geo-ip-update-scheduler.ts new file: server/core/lib/schedulers/peertube-version-check-scheduler.ts new file: server/core/lib/schedulers/plugins-check-scheduler.ts new file: server/core/lib/schedulers/remove-dangling-resumable-uploads-scheduler.ts new file: server/core/lib/schedulers/remove-expired-user-exports-scheduler.ts new file: server/core/lib/schedulers/remove-old-history-scheduler.ts new file: server/core/lib/schedulers/remove-old-views-scheduler.ts new file: server/core/lib/schedulers/runner-job-watch-dog-scheduler.ts new file: server/core/lib/schedulers/update-videos-scheduler.ts new file: server/core/lib/schedulers/video-channel-sync-latest-scheduler.ts new file: server/core/lib/schedulers/video-views-buffer-scheduler.ts new file: server/core/lib/schedulers/videos-redundancy-scheduler.ts new file: server/core/lib/schedulers/youtube-dl-update-scheduler.ts new file: server/core/lib/search.ts new file: server/core/lib/server-config-manager.ts new file: server/core/lib/signup.ts new file: server/core/lib/stat-manager.ts new file: server/core/lib/sync-channel.ts new file: server/core/lib/thumbnail.ts new file: server/core/lib/timeserie.ts new file: server/core/lib/transcoding/create-transcoding-job.ts new file: server/core/lib/transcoding/default-transcoding-profiles.ts new file: server/core/lib/transcoding/ended-transcoding.ts new file: server/core/lib/transcoding/hls-transcoding.ts new file: server/core/lib/transcoding/shared/ffmpeg-builder.ts new file: server/core/lib/transcoding/shared/index.ts new file: server/core/lib/transcoding/shared/job-builders/abstract-job-builder.ts new file: server/core/lib/transcoding/shared/job-builders/index.ts new file: server/core/lib/transcoding/shared/job-builders/transcoding-job-queue-builder.ts new file: server/core/lib/transcoding/shared/job-builders/transcoding-runner-job-builder.ts new file: server/core/lib/transcoding/transcoding-priority.ts new file: server/core/lib/transcoding/transcoding-quick-transcode.ts new file: server/core/lib/transcoding/transcoding-resolutions.ts new file: server/core/lib/transcoding/web-transcoding.ts new file: server/core/lib/uploadx.ts new file: server/core/lib/user-import-export/exporters/abstract-user-exporter.ts new file: server/core/lib/user-import-export/exporters/account-exporter.ts new file: server/core/lib/user-import-export/exporters/actor-exporter.ts new file: server/core/lib/user-import-export/exporters/auto-tag-policies.ts new file: server/core/lib/user-import-export/exporters/blocklist-exporter.ts new file: server/core/lib/user-import-export/exporters/channels-exporter.ts new file: server/core/lib/user-import-export/exporters/comments-exporter.ts new file: server/core/lib/user-import-export/exporters/dislikes-exporter.ts new file: server/core/lib/user-import-export/exporters/followers-exporter.ts new file: server/core/lib/user-import-export/exporters/following-exporter.ts new file: server/core/lib/user-import-export/exporters/index.ts new file: server/core/lib/user-import-export/exporters/likes-exporter.ts new file: server/core/lib/user-import-export/exporters/user-settings-exporter.ts new file: server/core/lib/user-import-export/exporters/user-video-history-exporter.ts new file: server/core/lib/user-import-export/exporters/video-playlists-exporter.ts new file: server/core/lib/user-import-export/exporters/videos-exporter.ts new file: server/core/lib/user-import-export/exporters/watched-words-lists-exporter.ts new file: server/core/lib/user-import-export/importers/abstract-rates-importer.ts new file: server/core/lib/user-import-export/importers/abstract-user-importer.ts new file: server/core/lib/user-import-export/importers/account-blocklist-importer.ts new file: server/core/lib/user-import-export/importers/account-importer.ts new file: server/core/lib/user-import-export/importers/channels-importer.ts new file: server/core/lib/user-import-export/importers/dislikes-importer.ts new file: server/core/lib/user-import-export/importers/following-importer.ts new file: server/core/lib/user-import-export/importers/index.ts new file: server/core/lib/user-import-export/importers/likes-importer.ts new file: server/core/lib/user-import-export/importers/review-comments-tag-policies-importer.ts new file: server/core/lib/user-import-export/importers/user-settings-importer.ts new file: server/core/lib/user-import-export/importers/user-video-history-importer.ts new file: server/core/lib/user-import-export/importers/video-playlists-importer.ts new file: server/core/lib/user-import-export/importers/videos-importer.ts new file: server/core/lib/user-import-export/importers/watched-words-lists-importer.ts new file: server/core/lib/user-import-export/user-exporter.ts new file: server/core/lib/user-import-export/user-importer.ts new file: server/core/lib/user.ts new file: server/core/lib/video-blacklist.ts new file: server/core/lib/video-captions.ts new file: server/core/lib/video-channel.ts new file: server/core/lib/video-chapters.ts new file: server/core/lib/video-comment.ts new file: server/core/lib/video-file.ts new file: server/core/lib/video-jobs.ts new file: server/core/lib/video-path-manager.ts new file: server/core/lib/video-playlist.ts new file: server/core/lib/video-pre-import.ts new file: server/core/lib/video-privacy.ts new file: server/core/lib/video-state.ts new file: server/core/lib/video-studio.ts new file: server/core/lib/video-tokens-manager.ts new file: server/core/lib/video-urls.ts new file: server/core/lib/video.ts new file: server/core/lib/views/shared/index.ts new file: server/core/lib/views/shared/video-viewer-counters.ts new file: server/core/lib/views/shared/video-viewer-stats.ts new file: server/core/lib/views/shared/video-views.ts new file: server/core/lib/views/video-views-manager.ts new file: server/core/lib/worker/parent-process.ts new file: server/core/lib/worker/workers/build-digest.ts new file: server/core/lib/worker/workers/get-image-size.ts new file: server/core/lib/worker/workers/http-broadcast.ts new file: server/core/lib/worker/workers/http-unicast.ts new file: server/core/lib/worker/workers/image-downloader.ts new file: server/core/lib/worker/workers/image-processor.ts new file: server/core/lib/worker/workers/sign-json-ld-object.ts new file: server/core/middlewares/activitypub.ts new file: server/core/middlewares/async.ts new file: server/core/middlewares/auth.ts new file: server/core/middlewares/cache/cache.ts new file: server/core/middlewares/cache/index.ts new file: server/core/middlewares/cache/shared/api-cache.ts new file: server/core/middlewares/cache/shared/index.ts new file: server/core/middlewares/csp.ts new file: server/core/middlewares/dnt.ts new file: server/core/middlewares/doc.ts new file: server/core/middlewares/error.ts new file: server/core/middlewares/express.ts new file: server/core/middlewares/index.ts new file: server/core/middlewares/pagination.ts new file: server/core/middlewares/rate-limiter.ts new file: server/core/middlewares/servers.ts new file: server/core/middlewares/sort.ts new file: server/core/middlewares/user-right.ts new file: server/core/middlewares/validators/abuse.ts new file: server/core/middlewares/validators/account.ts new file: server/core/middlewares/validators/activitypub/activity.ts new file: server/core/middlewares/validators/activitypub/index.ts new file: server/core/middlewares/validators/activitypub/pagination.ts new file: server/core/middlewares/validators/activitypub/signature.ts new file: server/core/middlewares/validators/actor-image.ts new file: server/core/middlewares/validators/automatic-tags.ts new file: server/core/middlewares/validators/blocklist.ts new file: server/core/middlewares/validators/bulk.ts new file: server/core/middlewares/validators/config.ts new file: server/core/middlewares/validators/express.ts new file: server/core/middlewares/validators/feeds.ts new file: server/core/middlewares/validators/follows.ts new file: server/core/middlewares/validators/index.ts new file: server/core/middlewares/validators/jobs.ts new file: server/core/middlewares/validators/logs.ts new file: server/core/middlewares/validators/metrics.ts new file: server/core/middlewares/validators/object-storage-proxy.ts new file: server/core/middlewares/validators/oembed.ts new file: server/core/middlewares/validators/pagination.ts new file: server/core/middlewares/validators/plugins.ts new file: server/core/middlewares/validators/redundancy.ts new file: server/core/middlewares/validators/resumable-upload.ts new file: server/core/middlewares/validators/runners/index.ts new file: server/core/middlewares/validators/runners/job-files.ts new file: server/core/middlewares/validators/runners/jobs.ts new file: server/core/middlewares/validators/runners/registration-token.ts new file: server/core/middlewares/validators/runners/runners.ts new file: server/core/middlewares/validators/search.ts new file: server/core/middlewares/validators/server.ts new file: server/core/middlewares/validators/shared/abuses.ts new file: server/core/middlewares/validators/shared/accounts.ts new file: server/core/middlewares/validators/shared/index.ts new file: server/core/middlewares/validators/shared/users.ts new file: server/core/middlewares/validators/shared/utils.ts new file: server/core/middlewares/validators/shared/video-blacklists.ts new file: server/core/middlewares/validators/shared/video-captions.ts new file: server/core/middlewares/validators/shared/video-channel-syncs.ts new file: server/core/middlewares/validators/shared/video-channels.ts new file: server/core/middlewares/validators/shared/video-comments.ts new file: server/core/middlewares/validators/shared/video-imports.ts new file: server/core/middlewares/validators/shared/video-ownerships.ts new file: server/core/middlewares/validators/shared/video-passwords.ts new file: server/core/middlewares/validators/shared/video-playlists.ts new file: server/core/middlewares/validators/shared/videos.ts new file: server/core/middlewares/validators/sort.ts new file: server/core/middlewares/validators/static.ts new file: server/core/middlewares/validators/themes.ts new file: server/core/middlewares/validators/two-factor.ts new file: server/core/middlewares/validators/users/index.ts new file: server/core/middlewares/validators/users/shared/index.ts new file: server/core/middlewares/validators/users/shared/user-registrations.ts new file: server/core/middlewares/validators/users/user-email-verification.ts new file: server/core/middlewares/validators/users/user-exports.ts new file: server/core/middlewares/validators/users/user-history.ts new file: server/core/middlewares/validators/users/user-import.ts new file: server/core/middlewares/validators/users/user-notifications.ts new file: server/core/middlewares/validators/users/user-registrations.ts new file: server/core/middlewares/validators/users/user-subscriptions.ts new file: server/core/middlewares/validators/users/users.ts new file: server/core/middlewares/validators/videos/index.ts new file: server/core/middlewares/validators/videos/shared/index.ts new file: server/core/middlewares/validators/videos/shared/upload.ts new file: server/core/middlewares/validators/videos/shared/video-validators.ts new file: server/core/middlewares/validators/videos/video-blacklist.ts new file: server/core/middlewares/validators/videos/video-captions.ts new file: server/core/middlewares/validators/videos/video-channel-sync.ts new file: server/core/middlewares/validators/videos/video-channels.ts new file: server/core/middlewares/validators/videos/video-chapters.ts new file: server/core/middlewares/validators/videos/video-comments.ts new file: server/core/middlewares/validators/videos/video-files.ts new file: server/core/middlewares/validators/videos/video-imports.ts new file: server/core/middlewares/validators/videos/video-live.ts new file: server/core/middlewares/validators/videos/video-ownership-changes.ts new file: server/core/middlewares/validators/videos/video-passwords.ts new file: server/core/middlewares/validators/videos/video-playlists.ts new file: server/core/middlewares/validators/videos/video-rates.ts new file: server/core/middlewares/validators/videos/video-shares.ts new file: server/core/middlewares/validators/videos/video-source.ts new file: server/core/middlewares/validators/videos/video-stats.ts new file: server/core/middlewares/validators/videos/video-studio.ts new file: server/core/middlewares/validators/videos/video-token.ts new file: server/core/middlewares/validators/videos/video-transcoding.ts new file: server/core/middlewares/validators/videos/video-view.ts new file: server/core/middlewares/validators/videos/videos.ts new file: server/core/middlewares/validators/watched-words.ts new file: server/core/middlewares/validators/webfinger.ts new file: server/core/models/abuse/abuse-message.ts new file: server/core/models/abuse/abuse.ts new file: server/core/models/abuse/sql/abuse-query-builder.ts new file: server/core/models/abuse/video-abuse.ts new file: server/core/models/abuse/video-comment-abuse.ts new file: server/core/models/account/account-blocklist.ts new file: server/core/models/account/account-video-rate.ts new file: server/core/models/account/account.ts new file: server/core/models/account/actor-custom-page.ts new file: server/core/models/actor/actor-follow.ts new file: server/core/models/actor/actor-image.ts new file: server/core/models/actor/actor.ts new file: server/core/models/actor/sql/instance-list-followers-query-builder.ts new file: server/core/models/actor/sql/instance-list-following-query-builder.ts new file: server/core/models/actor/sql/shared/actor-follow-table-attributes.ts new file: server/core/models/actor/sql/shared/instance-list-follows-query-builder.ts new file: server/core/models/application/application.ts new file: server/core/models/automatic-tag/account-automatic-tag-policy.ts new file: server/core/models/automatic-tag/automatic-tag.ts new file: server/core/models/automatic-tag/comment-automatic-tag.ts new file: server/core/models/automatic-tag/video-automatic-tag.ts new file: server/core/models/oauth/oauth-client.ts new file: server/core/models/oauth/oauth-token.ts new file: server/core/models/redundancy/video-redundancy.ts new file: server/core/models/runner/runner-job.ts new file: server/core/models/runner/runner-registration-token.ts new file: server/core/models/runner/runner.ts new file: server/core/models/server/plugin.ts new file: server/core/models/server/server-blocklist.ts new file: server/core/models/server/server.ts new file: server/core/models/server/tracker.ts new file: server/core/models/server/video-tracker.ts new file: server/core/models/shared/abstract-run-query.ts new file: server/core/models/shared/index.ts new file: server/core/models/shared/model-builder.ts new file: server/core/models/shared/model-cache.ts new file: server/core/models/shared/query.ts new file: server/core/models/shared/sequelize-helpers.ts new file: server/core/models/shared/sequelize-type.ts new file: server/core/models/shared/sort.ts new file: server/core/models/shared/sql.ts new file: server/core/models/shared/update.ts new file: server/core/models/user/sql/user-notitication-list-query-builder.ts new file: server/core/models/user/user-export.ts new file: server/core/models/user/user-import.ts new file: server/core/models/user/user-notification-setting.ts new file: server/core/models/user/user-notification.ts new file: server/core/models/user/user-registration.ts new file: server/core/models/user/user-video-history.ts new file: server/core/models/user/user.ts new file: server/core/models/video/formatter/index.ts new file: server/core/models/video/formatter/shared/index.ts new file: server/core/models/video/formatter/shared/video-format-utils.ts new file: server/core/models/video/formatter/video-activity-pub-format.ts new file: server/core/models/video/formatter/video-api-format.ts new file: server/core/models/video/schedule-video-update.ts new file: server/core/models/video/sql/comment/video-comment-list-query-builder.ts new file: server/core/models/video/sql/comment/video-comment-table-attributes.ts new file: server/core/models/video/sql/video/index.ts new file: server/core/models/video/sql/video/shared/abstract-video-query-builder.ts new file: server/core/models/video/sql/video/shared/video-file-query-builder.ts new file: server/core/models/video/sql/video/shared/video-model-builder.ts new file: server/core/models/video/sql/video/shared/video-table-attributes.ts new file: server/core/models/video/sql/video/video-model-get-query-builder.ts new file: server/core/models/video/sql/video/videos-id-list-query-builder.ts new file: server/core/models/video/sql/video/videos-model-list-query-builder.ts new file: server/core/models/video/storyboard.ts new file: server/core/models/video/tag.ts new file: server/core/models/video/thumbnail.ts new file: server/core/models/video/video-blacklist.ts new file: server/core/models/video/video-caption.ts new file: server/core/models/video/video-change-ownership.ts new file: server/core/models/video/video-channel-sync.ts new file: server/core/models/video/video-channel.ts new file: server/core/models/video/video-chapter.ts new file: server/core/models/video/video-comment.ts new file: server/core/models/video/video-file.ts new file: server/core/models/video/video-import.ts new file: server/core/models/video/video-job-info.ts new file: server/core/models/video/video-live-replay-setting.ts new file: server/core/models/video/video-live-session.ts new file: server/core/models/video/video-live.ts new file: server/core/models/video/video-password.ts new file: server/core/models/video/video-playlist-element.ts new file: server/core/models/video/video-playlist.ts new file: server/core/models/video/video-share.ts new file: server/core/models/video/video-source.ts new file: server/core/models/video/video-streaming-playlist.ts new file: server/core/models/video/video-tag.ts new file: server/core/models/video/video.ts new file: server/core/models/view/local-video-viewer-watch-section.ts new file: server/core/models/view/local-video-viewer.ts new file: server/core/models/view/video-view.ts new file: server/core/models/watched-words/watched-words-list.ts new file: server/core/static/dnt-policy/dnt-policy-1.0.txt new file: server/core/types/activitypub-processor.model.ts new file: server/core/types/express-handler.ts new file: server/core/types/express.d.ts new file: server/core/types/index.ts new file: server/core/types/lib.d.ts new file: server/core/types/models/abuse/abuse-message.ts new file: server/core/types/models/abuse/abuse.ts new file: server/core/types/models/abuse/index.ts new file: server/core/types/models/account/account-blocklist.ts new file: server/core/types/models/account/account.ts new file: server/core/types/models/account/actor-custom-page.ts new file: server/core/types/models/account/index.ts new file: server/core/types/models/actor/actor-follow.ts new file: server/core/types/models/actor/actor-image.ts new file: server/core/types/models/actor/actor.ts new file: server/core/types/models/actor/index.ts new file: server/core/types/models/application/application.ts new file: server/core/types/models/application/index.ts new file: server/core/types/models/automatic-tag/account-automatic-tag-policy.ts new file: server/core/types/models/automatic-tag/automatic-tag.ts new file: server/core/types/models/automatic-tag/comment-automatic-tag.ts new file: server/core/types/models/automatic-tag/index.ts new file: server/core/types/models/automatic-tag/video-automatic-tag.ts new file: server/core/types/models/index.ts new file: server/core/types/models/oauth/index.ts new file: server/core/types/models/oauth/oauth-client.ts new file: server/core/types/models/oauth/oauth-token.ts new file: server/core/types/models/runners/index.ts new file: server/core/types/models/runners/runner-job.ts new file: server/core/types/models/runners/runner-registration-token.ts new file: server/core/types/models/runners/runner.ts new file: server/core/types/models/server/index.ts new file: server/core/types/models/server/plugin.ts new file: server/core/types/models/server/server-blocklist.ts new file: server/core/types/models/server/server.ts new file: server/core/types/models/server/tracker.ts new file: server/core/types/models/user/index.ts new file: server/core/types/models/user/user-export.ts new file: server/core/types/models/user/user-import.ts new file: server/core/types/models/user/user-notification-setting.ts new file: server/core/types/models/user/user-notification.ts new file: server/core/types/models/user/user-registration.ts new file: server/core/types/models/user/user-video-history.ts new file: server/core/types/models/user/user.ts new file: server/core/types/models/video/index.ts new file: server/core/types/models/video/local-video-viewer-watch-section.ts new file: server/core/types/models/video/local-video-viewer.ts new file: server/core/types/models/video/schedule-video-update.ts new file: server/core/types/models/video/storyboard.ts new file: server/core/types/models/video/tag.ts new file: server/core/types/models/video/thumbnail.ts new file: server/core/types/models/video/video-blacklist.ts new file: server/core/types/models/video/video-caption.ts new file: server/core/types/models/video/video-change-ownership.ts new file: server/core/types/models/video/video-channel-sync.ts new file: server/core/types/models/video/video-channel.ts new file: server/core/types/models/video/video-chapter.ts new file: server/core/types/models/video/video-comment.ts new file: server/core/types/models/video/video-file.ts new file: server/core/types/models/video/video-import.ts new file: server/core/types/models/video/video-password.ts new file: server/core/types/models/video/video-playlist-element.ts new file: server/core/types/models/video/video-playlist.ts new file: server/core/types/models/video/video-rate.ts new file: server/core/types/models/video/video-redundancy.ts new file: server/core/types/models/video/video-share.ts new file: server/core/types/models/video/video-source.ts new file: server/core/types/models/video/video-streaming-playlist.ts new file: server/core/types/models/video/video.ts new file: server/core/types/models/watched-words/index.ts new file: server/core/types/models/watched-words/watched-words-list.ts new file: server/core/types/plugins/index.ts new file: server/core/types/plugins/plugin-library.model.ts new file: server/core/types/plugins/register-server-auth.model.ts new file: server/core/types/plugins/register-server-option.model.ts new file: server/core/types/plugins/register-server-websocket-route.model.ts new file: server/core/types/sequelize.ts new file: server/package.json new file: server/scripts/create-generate-storyboard-job.ts new file: server/scripts/create-import-video-file-job.ts new file: server/scripts/create-move-video-storage-job.ts new file: server/scripts/house-keeping.ts new file: server/scripts/parse-log.ts new file: server/scripts/plugin/install.ts new file: server/scripts/plugin/uninstall.ts new file: server/scripts/prune-storage.ts new file: server/scripts/regenerate-thumbnails.ts new file: server/scripts/reset-password.ts new file: server/scripts/shared/common.ts new file: server/scripts/update-host.ts new file: server/scripts/update-object-storage-url.ts new file: server/scripts/upgrade.sh new file: server/server.ts new file: server/tsconfig.json new file: server/tsconfig.lib.json new file: server/tsconfig.types.json new file: support/doc/api/embeds.md new file: support/doc/api/openapi.yaml new file: support/doc/api/quickstart.md new file: support/doc/dependencies.md new file: support/doc/development/ci.md new file: support/doc/development/lib.md new file: support/doc/development/localization.md new file: support/doc/development/monitoring.md new file: support/doc/development/release.md new file: support/doc/development/server.md new file: support/doc/development/tests.md new file: support/doc/docker.md new file: support/doc/plugins/guide.md new file: support/doc/production.md new file: support/doc/tools.md new file: support/doc/translation.md new file: support/docker/gitpod/Dockerfile new file: support/docker/gitpod/setup_postgres.sql new file: support/docker/production/.env new file: support/docker/production/.gitignore new file: support/docker/production/Dockerfile.bookworm new file: support/docker/production/Dockerfile.nginx new file: support/docker/production/config/custom-environment-variables.yaml new file: support/docker/production/config/production.yaml new file: support/docker/production/docker-compose.yml new file: support/docker/production/entrypoint.nginx.sh new file: support/docker/production/entrypoint.sh new file: support/freebsd/peertube new file: support/init.d/peertube new file: support/nginx/peertube new file: support/openapi/go/README.mustache new file: support/openapi/go/def.yaml new file: support/openapi/kotlin/README.mustache new file: support/openapi/kotlin/def.yaml new file: support/openapi/python/README.mustache new file: support/openapi/python/def.yaml new file: support/sysctl.d/30-peertube-tcp.conf new file: support/systemd/peertube.service new file: tsconfig.base.json new file: tsconfig.eslint.json new file: yarn.lockmain
parent
b9249a9479
commit
f170ca95ff
@ -0,0 +1,11 @@
|
||||
*.swp
|
||||
.git
|
||||
.github
|
||||
support/doc
|
||||
support/nginx
|
||||
support/systemd
|
||||
support/docker/*/Dockerfile.*
|
||||
support/docker/*/*.yml
|
||||
storage
|
||||
node_modules
|
||||
client/node_modules
|
@ -0,0 +1,12 @@
|
||||
; This file is for unifying the coding style for different editors and IDEs.
|
||||
; More information at http://editorconfig.org to setup your IDE if need be.
|
||||
|
||||
root = true
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
indent_size = 2
|
||||
indent_style = space
|
@ -0,0 +1,151 @@
|
||||
{
|
||||
"extends": "standard-with-typescript",
|
||||
"root": true,
|
||||
"rules": {
|
||||
"eol-last": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"indent": "off",
|
||||
"no-lone-blocks": "off",
|
||||
"no-mixed-operators": "off",
|
||||
"max-len": [
|
||||
"error",
|
||||
{
|
||||
"code": 140
|
||||
}
|
||||
],
|
||||
"array-bracket-spacing": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"quote-props": [
|
||||
"error",
|
||||
"consistent-as-needed"
|
||||
],
|
||||
"padded-blocks": "off",
|
||||
"prefer-regex-literals": "off",
|
||||
"no-async-promise-executor": "off",
|
||||
"dot-notation": "off",
|
||||
"promise/param-names": "off",
|
||||
"import/first": "off",
|
||||
"operator-linebreak": [
|
||||
"error",
|
||||
"after",
|
||||
{
|
||||
"overrides": {
|
||||
"?": "before",
|
||||
":": "before"
|
||||
}
|
||||
}
|
||||
],
|
||||
"quotes": "off",
|
||||
|
||||
"no-constant-binary-expression": "error",
|
||||
|
||||
"@typescript-eslint/indent": [
|
||||
"error",
|
||||
2,
|
||||
{
|
||||
"SwitchCase": 1,
|
||||
"MemberExpression": "off",
|
||||
// https://github.com/eslint/eslint/issues/15299
|
||||
"ignoredNodes": ["PropertyDefinition"]
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/consistent-type-assertions": [
|
||||
"error",
|
||||
{
|
||||
"assertionStyle": "as"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/array-type": [
|
||||
"error",
|
||||
{
|
||||
"default": "array"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/restrict-template-expressions": [
|
||||
"off",
|
||||
{
|
||||
"allowNumber": "true"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-this-alias": [
|
||||
"error",
|
||||
{
|
||||
"allowDestructuring": true, // Allow `const { props, state } = this`; false by default
|
||||
"allowedNames": ["self"] // Allow `const self = this`; `[]` by default
|
||||
}
|
||||
],
|
||||
|
||||
"@typescript-eslint/return-await": "off",
|
||||
"@typescript-eslint/dot-notation": "off",
|
||||
"@typescript-eslint/method-signature-style": "off",
|
||||
"@typescript-eslint/no-base-to-string": "off",
|
||||
"@typescript-eslint/quotes": [
|
||||
"error",
|
||||
"single",
|
||||
{
|
||||
"avoidEscape": true,
|
||||
"allowTemplateLiterals": true
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-var-requires": "off",
|
||||
"@typescript-eslint/explicit-function-return-type": "off",
|
||||
"@typescript-eslint/promise-function-async": "off",
|
||||
"@typescript-eslint/no-dynamic-delete": "off",
|
||||
"@typescript-eslint/no-unnecessary-boolean-literal-compare": "off",
|
||||
"@typescript-eslint/strict-boolean-expressions": "off",
|
||||
"@typescript-eslint/consistent-type-definitions": "off",
|
||||
"@typescript-eslint/no-misused-promises": "off",
|
||||
"@typescript-eslint/no-namespace": "off",
|
||||
"@typescript-eslint/no-empty-interface": "off",
|
||||
"@typescript-eslint/no-extraneous-class": "off",
|
||||
"@typescript-eslint/no-use-before-define": "off",
|
||||
|
||||
"require-await": "off",
|
||||
"@typescript-eslint/require-await": "error",
|
||||
|
||||
// bugged but useful
|
||||
"@typescript-eslint/restrict-plus-operands": "off",
|
||||
|
||||
// Requires strictNullChecks
|
||||
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
||||
"@typescript-eslint/consistent-type-imports": "off",
|
||||
"@typescript-eslint/consistent-indexed-object-style": "off",
|
||||
"@typescript-eslint/no-confusing-void-expression": "off",
|
||||
"@typescript-eslint/consistent-type-exports": "off",
|
||||
"@typescript-eslint/key-spacing": "off",
|
||||
|
||||
"@typescript-eslint/no-unsafe-argument": "off",
|
||||
|
||||
"@typescript-eslint/ban-types": [
|
||||
"error",
|
||||
{
|
||||
"types": {
|
||||
"{}": false,
|
||||
"Function": false
|
||||
},
|
||||
"extendDefaults": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"ignorePatterns": [
|
||||
"node_modules",
|
||||
"packages/tests/fixtures",
|
||||
"apps/**/dist",
|
||||
"packages/**/dist",
|
||||
"server/dist",
|
||||
"packages/types-generator/tests",
|
||||
"*.js",
|
||||
"/client",
|
||||
"/dist"
|
||||
],
|
||||
"parserOptions": {
|
||||
"project": [
|
||||
"./tsconfig.eslint.json"
|
||||
],
|
||||
"EXPERIMENTAL_useSourceOfProjectReferenceRedirect": true
|
||||
}
|
||||
}
|
@ -0,0 +1,68 @@
|
||||
# NPM instalation
|
||||
node_modules
|
||||
*npm-debug.log
|
||||
yarn-error.log
|
||||
*-ci.log
|
||||
.yarn
|
||||
|
||||
# Testing
|
||||
/test1/
|
||||
/test2/
|
||||
/test3/
|
||||
/test4/
|
||||
/test5/
|
||||
/test6/
|
||||
|
||||
# Big fixtures generated/downloaded on-demand
|
||||
/packages/tests/fixtures/video_high_bitrate_1080p.mp4
|
||||
/packages/tests/fixtures/video_59fps.mp4
|
||||
/packages/tests/fixtures/video_50fps.mp4
|
||||
/packages/tests/fixtures/transcription/models-v1/
|
||||
|
||||
# PeerTube
|
||||
/storage
|
||||
/dev1
|
||||
/config/production.yaml
|
||||
/config/local*
|
||||
/ffmpeg/
|
||||
/ffmpeg-3/
|
||||
/ffmpeg-4/
|
||||
/thumbnails/
|
||||
/torrents/
|
||||
/web-videos/
|
||||
/videos/
|
||||
/previews/
|
||||
/logs/
|
||||
|
||||
# IDE
|
||||
/*.sublime-project
|
||||
/*.sublime-workspace
|
||||
/*.vscode
|
||||
/**/.idea
|
||||
/dist
|
||||
/PeerTube.iml
|
||||
*.swp
|
||||
|
||||
# Zanata
|
||||
/.zanata-cache
|
||||
/scripts/i18n/generate-iso639-target.ts
|
||||
|
||||
# Other
|
||||
/dump.rdb
|
||||
/.theia/
|
||||
/profiling/
|
||||
/*.zip
|
||||
/*.tar.xz
|
||||
/*.asc
|
||||
*.DS_Store
|
||||
/docker-volume/
|
||||
/init.mp4
|
||||
|
||||
# TypeScript
|
||||
*.tsbuildinfo
|
||||
|
||||
# EsLint
|
||||
.eslintcache
|
||||
|
||||
# Compiled output
|
||||
dist
|
@ -0,0 +1,20 @@
|
||||
image:
|
||||
file: support/docker/gitpod/Dockerfile
|
||||
ports:
|
||||
- port: 3000
|
||||
onOpen: open-preview
|
||||
- port: 5432
|
||||
onOpen: ignore
|
||||
- port: 6379
|
||||
onOpen: ignore
|
||||
- port: 9000
|
||||
onOpen: ignore
|
||||
tasks:
|
||||
- name: Redis
|
||||
command: redis-server
|
||||
- name: PeerTube
|
||||
before: export NODE_CONFIG="{\"import\":{\"videos\":{\"torrent\":{\"enabled\":false}}},\"webserver\":{\"hostname\":\"$(gp url 3000 | cut -d/ -f3)\",\"port\":\"443\",\"https\":true}}"
|
||||
init: >
|
||||
psql -h localhost -d postgres --file=support/docker/gitpod/setup_postgres.sql &&
|
||||
yarn install --pure-lockfile
|
||||
command: npm run build:server && npm run dev
|
@ -0,0 +1,10 @@
|
||||
process.env.TSX_TSCONFIG_PATH = './packages/tests/tsconfig.json'
|
||||
|
||||
module.exports = {
|
||||
"node-option": [
|
||||
"import=tsx",
|
||||
"no-warnings",
|
||||
"conditions=peertube:tsx"
|
||||
],
|
||||
"timeout": 30000
|
||||
}
|
@ -0,0 +1,4204 @@
|
||||
# Changelog
|
||||
|
||||
## v7.0.1
|
||||
|
||||
### Features
|
||||
|
||||
* Update translations
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix banner/avatar edit buttons
|
||||
* Fix banner margin in channels page
|
||||
* Textarea font size consistency
|
||||
* Fix subscribe button radius
|
||||
* Fix channel avatar info username
|
||||
* Fix maximized markdown textarea
|
||||
* Remove confusing channel message in *My playlists* pages
|
||||
* Fix broken infinite scroll when deleting items (Videos, Channels...)
|
||||
* Fix broadcast message overflow
|
||||
* Fix adding videos in playlist from discover page
|
||||
* Fix my videos edit/delete buttons display
|
||||
* Fix header components overflow in admin log page
|
||||
|
||||
|
||||
## v7.0.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* **Classic install only** (for Docker admins see [v6.3 IMPORTANT NOTES](https://github.com/Chocobozzz/PeerTube/releases/tag/v6.3.0)) Ensure you have `storage.original_video_files` set in your configuration file: https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L159.
|
||||
If you did not configure this key but have already enabled "Keep a version of the input file" configuration, original files may have been saved in `versions/peertube-v6.x.x/storage/original-video-files/` directories. If this is the case, you must move these files in the new directory location specified by your `storage.original_video_files` configuration
|
||||
* Safari desktop versions < 13 are not supported anymore
|
||||
* iOS versions < 14.5 are not supported anymore
|
||||
* PeerTube instance requires python >= 3.8 for transcription
|
||||
|
||||
### Docker
|
||||
|
||||
* Fix private IPv6 subnet (we used a subnet reserved for examples)
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Remove client plugin hooks: `filter:api.recently-added-videos.videos.list.{params,result}`, `filter:api.local-videos.videos.list.{params,result}`, `filter:api.trending-videos.videos.list.{params,result}` `filter:api.trending-videos.videos.list.result` in favour of `filter:api.browse-videos.videos.list.{params,result}`
|
||||
* Header logo doesn't have the `.icon` class anymore (it still has the `icon-logo` class)
|
||||
* All CSS variables have been replaced so it's easier to theme PeerTube:
|
||||
* PeerTube generates a color palette based on a few main colors (`primary`, `fg`, `bg`, `bg-secondary`...): https://github.com/Chocobozzz/PeerTube/blob/develop/client/src/sass/application.scss#L27
|
||||
* Some new variables fallback to old variables to limit theme breaks
|
||||
|
||||
### Admin config (non-exhaustive)
|
||||
|
||||
* Ensure `instance.default_client_route` (in web admin -> `Configuration` -> `Basic` -> `Landing page`) has a correct path: `/videos/trending`, `/videos/local` and `/videos/recently-added` have been removed in favour of `/videos/browse`
|
||||
* Add ability to configure STUN servers IPs: `webrtc.stun_servers`
|
||||
* Remove `client.videos.miniature.display_author_avatar` config: author avatars are now always displayed
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Global client redesign :tada:
|
||||
* Introduce a new *Light/Beige* theme that replaces the current one (black/orange)
|
||||
* Add a *Dark/Brown* theme directly in PeerTube core
|
||||
* Split *My library* pages into:
|
||||
* *Video Space* pages (that contains account channels, videos...)
|
||||
* *My library* pages (that contains account playlists, subscriptions...)
|
||||
* Split *Administration* pages into:
|
||||
* *Overview* pages (to list instance users, videos...)
|
||||
* *Moderation* pages (to list abuses, blocks, registrations...)
|
||||
* *Settings* pages (instance configuration, list runners...)
|
||||
* Reorganize the header and the left menu:
|
||||
* Account settings and notifications are now in the header
|
||||
* Add instance name and description in the left menu for anonymous users
|
||||
* Merge *Recently Added* and *Trending* and *Local videos* videos pages into a *Browse videos* page that includes quick filters
|
||||
* Improve *Discover videos* page UX
|
||||
* Redesign the left menu, the horizontal menus, form controls, buttons and video filters panel
|
||||
* Replace/remove/add some icons
|
||||
* :tada: Introduce a modal to easily add/edit/remove subtitle segments :tada:
|
||||
* Improve accessibility:
|
||||
* Fix contrast issues
|
||||
* Add missing labels
|
||||
* Fix progress bar, custom select components, tag input components, notification component accessibility
|
||||
* Add underlining to links
|
||||
* Add "skip menu" links
|
||||
* Improve keyboard navigation
|
||||
* Fix various screen readers issues
|
||||
* Add Slovakian language support to the client
|
||||
* SEO:
|
||||
* Add instance avatar to OpenGraph tags
|
||||
* Hide empty accounts/channels from sitemap [#6633](https://github.com/Chocobozzz/PeerTube/pull/6633)
|
||||
* Inject additional video tags to sitemap [#6633](https://github.com/Chocobozzz/PeerTube/pull/6633)
|
||||
* Various UX improvements:
|
||||
* Improve player control bar responsive
|
||||
* Add refresh button to following list
|
||||
* Clearer signup limit label
|
||||
* Add `0.25` playback rate in player
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix *My channel* search
|
||||
* Fix channel sync edition/listing
|
||||
* Fix adding video tags on Android
|
||||
* Fix fetching client comment URL using ActivityPub resolver (Mastodon search bar...)
|
||||
* Fix crash when logging SQL requests and enabled prettify option
|
||||
* Correctly delete web videos with hls without audio
|
||||
* Fix auto blacklisting unlisted videos
|
||||
* Fix *ERR_BUFFER_OUT_OF_BOUNDS* error on some node version
|
||||
* Add ability to set max channel sync in admin config
|
||||
* Allow plugins to pass client params when listing videos (`filter:api.browse-videos.videos.list.params` hook)
|
||||
* Respect user export expiration admin configuration
|
||||
* Fix studio edition on an audio only file
|
||||
* Fix embed crash on telegram web browser
|
||||
|
||||
|
||||
## v6.3.3
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix broken thumbnails on live replay
|
||||
* Fix detecting portrait rotation of some video
|
||||
* Don't allow to select a frame from a live to set the thumbnail
|
||||
* Fix lost video stream with specific transcoding settings and video input
|
||||
* Fix creating playlist without thumbnail when using the REST API
|
||||
* Fix `.mov` video upload on some Windows versions
|
||||
* Fix `video-plugin-metadata.result` client plugin hook
|
||||
|
||||
|
||||
## v6.3.2
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix 403 error when downloading private/internal video
|
||||
* Don't crash video federation and live replay generation on missing thumbnail/preview
|
||||
* Fix advanced search input with multiple automatic search tokens
|
||||
* Fix player "Copy URL" when the video is fullscreen
|
||||
* Fix account videos search
|
||||
* Add missing max transcoding fps config in admin
|
||||
* Don't add mobile buttons if the player controls are disabled
|
||||
|
||||
|
||||
## v6.3.1
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* If you upgrade from PeerTube **< v6.3.0**, please follow v6.3.0 IMPORTANT NOTES
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix player settings button on mobile
|
||||
* Fix removed audio when splitting audio and video streams on existing videos when running HLS transcoding
|
||||
|
||||
|
||||
## v6.3.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* **Important** You need to manually execute a migration script after your upgrade while PeerTube is running and the database migration is complete (`Migrations finished. New migration version schema: 865` in PeerTube startup logs, this migration script may take a while).
|
||||
The purpose of this migration is to update video files metadata in the database.
|
||||
This migration can take a long time if you have many federated/local videos, but is designed to be safe to run multiple times:
|
||||
* Classic installation: `cd /var/www/peertube/peertube-latest && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production node dist/scripts/migrations/peertube-6.3.js`
|
||||
* Docker installation: `cd /var/www/peertube-docker && docker compose exec -u peertube peertube node dist/scripts/migrations/peertube-6.3.js`
|
||||
* **Important for Docker admins** If you enabled the "Keep a version of the input file" configuration, files may have been stored in the container instead of the host volume. To prevent data loss, you must **copy** the files on the host before upgrading using `docker compose cp peertube:/app/storage/original-video-files docker-volume/data`
|
||||
|
||||
### Docker
|
||||
|
||||
* Fix IPV6 configuration. You must update your [`docker-compose.yml` file](https://github.com/Chocobozzz/PeerTube/commit/ccfd57e349c8bed557d6a60007f92f45d40879e3):
|
||||
* Remove `version:` line
|
||||
* Add `ipv6_address` to `peertube.networks.default` key
|
||||
* Update `network` top level key content
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Reduce error and warning logs generated by clients and the federation
|
||||
* Introduce `peertube_playback_buffer_stalled_count_total` OpenTelemetry playback metric
|
||||
* Removed `access_log: off` for static video requests in the nginx configuration template, now the player doesn't use WebTorrent anymore (which was doing a large amount of small HTTP requests)
|
||||
* PeerTube introduces a new download API endpoint that remuxes the videos on the fly to merge video and audio streams. A custom rate limit can be configured in the YAML configuration
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Reduce `@peertube/peertube-types` package size
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Separate HLS audio and video streams :tada:
|
||||
* Can be enabled for VODs in the admin configuration for new videos
|
||||
* Automatically enabled for lives
|
||||
* If enabled, an "Audio only" resolution is available in the HLS player
|
||||
* The live can ingest and output an "Audio only" stream
|
||||
* Reduce video disk space used since we only store one version of the audio stream
|
||||
* The download modal has a new panel so users can easily select the resolution they want to download
|
||||
* :tada: Introduce a transcription widget :tada:
|
||||
* Users can open the transcription widget that appears next to the player
|
||||
* The transcription is in sync with the video
|
||||
* Users can search the transcript and click on a specific segment to automatically jump the video to the appropriate timecode
|
||||
* UI/UX:
|
||||
* More visible chapter markers in player control bar
|
||||
* Add a button to copy server logs in admin
|
||||
* Smoother live autoplay: only the player is reloaded
|
||||
* Improve channel and account page tab title
|
||||
* Better resolution label for custom video aspect. For example with a `1920x816` video, we now display `1080p` instead of `816p`
|
||||
* Support max FPS configuration: the admin can allow videos with more than 60FPS, which is the current default limit
|
||||
* Max resolution file preserves input FPS even if < 720p, allowing users to upload and broadcast a 480p resolution at 60FPS
|
||||
* Add ability for admins to set multiple proxies for youtube-dl that PeerTube will randomly select
|
||||
* Support youtube-dl executable (for example *Linux standalone x64 binary* that includes additional features like [impersonation](https://github.com/yt-dlp/yt-dlp/?tab=readme-ov-file#impersonation))
|
||||
* Add a cover to the file if the user only downloads the audio version of the video
|
||||
* Forward watch page `start` query param to the OEmbed service so that the embed starts at the correct time
|
||||
* Notify local users on when an *Internal* video is published
|
||||
* Add ability for admins to disable federation (disabling ActivityPub endpoints)
|
||||
* Improve local video search relevance
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix broken object storage playlist on file removal
|
||||
* Set live tags to replays
|
||||
* Fix hidden delete button for original file in videos admin overview
|
||||
* Don't crash the embed on player error
|
||||
* Prevent embed poster flickering
|
||||
* Fix left menu block title ellipsis
|
||||
* Fix channel name overflow in *My Videos" page
|
||||
* Fix player infinite buffering issues on fast live re-stream
|
||||
* Don't display orange resume bar on live miniatures
|
||||
* Fix video file object storage detection in admin videos overview
|
||||
* Support ActivityPub remote actors with array `url` field
|
||||
* Fix resetting duration filter in search page
|
||||
* Use first step *Public* privacy when publishing lives without having validated the second step
|
||||
* Fix studio page responsive
|
||||
* Add CORS to oEmbed API
|
||||
* Fix storyboard display at the end of the video
|
||||
* Correctly cleanup permanent live empty directories
|
||||
* Fix duplicated resolutions when capping fps
|
||||
* Don't resize remote actor images with unknown size
|
||||
* More robust caption update concurrency
|
||||
|
||||
|
||||
## v6.2.1
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Add ability for users to see the error details when the embed player crashed with the message "The player is not compatible with your web browser. Please try latest Firefox version." The web browser also sends a client error log to the server
|
||||
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix stuck runner jobs due to DB concurrency issue
|
||||
* Respect OS orientation settings in PWA
|
||||
* Fix "No results" not displayed on no video results
|
||||
* Do not display "Download" option on lives
|
||||
* Fix invalid current password error when updating user password
|
||||
* Fix slow hotkeys detection
|
||||
* Fix hidden runner jobs tab when remote runner is only enabled for transcription
|
||||
* Fix broken HLS P2P by correctly updating HLS infohash on privacy update
|
||||
* Fix videos filters pastille labels for categories and languages
|
||||
* Fix broken youtube-dl import for videos with too long chapter titles
|
||||
* Display emojis in description preview in video edition form
|
||||
* Avoid node-datachannel native dependency that prevents some OS to install PeerTube dependencies
|
||||
|
||||
|
||||
|
||||
## v6.2.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* Added `pip3` as required [PeerTube dependency](https://docs.joinpeertube.org/support/doc/dependencies) to support automatic transcription. You must install it on your system
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Check for latest plugin versions every 4 hours (instead of 12 hours). We recommend admins to update their current configuration to apply this change for faster plugin new version notifications
|
||||
* Add a configuration to configure video thumbnail/preview sizes [#6423](https://github.com/Chocobozzz/PeerTube/pull/6423)
|
||||
* Support for removing non-existent objects from object storage in [prune-storage script](https://docs.joinpeertube.org/maintain/tools)
|
||||
* Support for moving original video files to object storage/filesystem in [create-move-video-storage-job script](https://docs.joinpeertube.org/maintain/tools#move-video-files-from-filesystem-to-object-storage)
|
||||
* Add [house-keeping script](https://docs.joinpeertube.org/maintain/tools#cleanup-remote-files) to recover disk space by removing remote files (thumbnails, avatars...)
|
||||
* Add `max_request_attempts` object storage configuration (required by some S3 providers such as Blackblaze) [#6418](https://github.com/Chocobozzz/PeerTube/pull/6418)
|
||||
|
||||
### Docker
|
||||
|
||||
* Add missing Docker env to configure object storage (user exports and original video files)
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Add ability to register the same setting multiple times to replace the old one [#6357](https://github.com/Chocobozzz/PeerTube/pull/6357) & [1bfb791e0](https://github.com/Chocobozzz/PeerTube/commit/1bfb791e0539df54d1d007683719dcb883870e1d)
|
||||
* Add `getUser()` client helper [#6358](https://github.com/Chocobozzz/PeerTube/pull/6358)
|
||||
* Detect internal link in plugin page to avoid reloading entire application when not needed
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Add automatic transcription of videos to generate subtitles :tada: [#6303](https://github.com/Chocobozzz/PeerTube/pull/6303)
|
||||
* Uses Whisper engines and models to create the subtitle and guess the video language
|
||||
* Has to be enabled by admins in the configuration web interface: PeerTube will automatically download and install Whisper binaries/models
|
||||
* Transcription can also be performed by PeerTube runners, as it can consume a lot of CPU
|
||||
* Transcription generation can also be run manually by administrators
|
||||
* :tada: Improve comment moderation :tada: [#6399](https://github.com/Chocobozzz/PeerTube/pull/6399)
|
||||
* Introduce a new video comment policy that requires comments to be approved first
|
||||
* Video owners have a dedicated page to list, view and take action on comments made on their videos
|
||||
* :tada: Implement auto-tagging on comments and videos for admins and on comments for video owners :tada: [#6399](https://github.com/Chocobozzz/PeerTube/pull/6399)
|
||||
* Comments and videos can be automatically tagged using PeerTube rules ("contains a link" for example) or watched word lists
|
||||
* These tags can be used to automatically filter videos and comments
|
||||
* Video owners can select auto tags that require comments to be approved first
|
||||
* Add the ability to select the thumbnail directly from the video [#6424](https://github.com/Chocobozzz/PeerTube/pull/6424)
|
||||
* Allow admins to force bulk transcoding
|
||||
* Faster "Mark as read" user notification REST API endpoint when having many notifications in database
|
||||
* Improve `Video` ActivityPub compatibility by relaxing PeerTube checks and allowing remote object to not have some fields that were required by PeerTube (missing P2P information for example)
|
||||
* Highlight current lives on pages that list videos ("Recently Added", "Trending", "Account videos", "Channel videos" etc.)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix embed API on iOS
|
||||
* Fix RTL layout inconsistencies
|
||||
* Fix big user export file size
|
||||
* Fix concurrent live streams serialization issue
|
||||
* Fix instance slowness when geoip download fails [#6402](https://github.com/Chocobozzz/PeerTube/pull/6402)
|
||||
* Don't count deleted comments in instance stats
|
||||
* Handle videos with FPS < 1
|
||||
* Don't display stats button of remote videos
|
||||
* Fix recommendation loop for anonymous users
|
||||
* Handle 410 HTTP response code for AP objects
|
||||
* Fix major plugin version detection when major number has two digits
|
||||
* Accessibility:
|
||||
* Fix focus visibility box
|
||||
* Fix feed popover title state
|
||||
* Fix video filter pastille accessibility
|
||||
* Fix radio button focus
|
||||
* Fix search typeahead information not read by screen readers
|
||||
* Fix player "Back" button label
|
||||
* Fix player settings menu keyboard navigation
|
||||
* Fix "Update your settings" keyboard navigation and improve accessibility
|
||||
* Fix checkbox description relationship
|
||||
* Fix green color contrast
|
||||
* Correctly label the boolean icon in instance features table
|
||||
* Remove unneeded information in "Policy for sensitive videos" select
|
||||
* Fix left menu list items list hierarchy
|
||||
* Fix HLS audio desync on some videos
|
||||
* Playlist components in custom markup can use a short UUID
|
||||
* Support `Service` Activity Pub actors that should fix some federation issues with Mastodon
|
||||
* Fix downloading protected videos in admin
|
||||
* Increase legacy upload request timeout
|
||||
|
||||
|
||||
## v6.1.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* You must update nginx configuration: https://github.com/Chocobozzz/PeerTube/blob/develop/support/nginx/peertube
|
||||
* Add `location ~ ^/api/v1/users/[^/]+/imports/import-resumable$ {` block
|
||||
* This release changes the way how PeerTube counts a video view:
|
||||
* Views are taken into account after 10 seconds instead of 30 seconds (can be changed in YAML config)
|
||||
* Views use a *Session ID* generated by the web browser instead of using the request IP (former behavior can be restored in YAML config)
|
||||
* The goal of this change is to get closer to how other video platforms like Mux, Vimeo, or Instagram work
|
||||
|
||||
### SECURITY
|
||||
|
||||
* Compact ActivityPub JSON-LD objects before using them to prevent incorrect access control @tesaguri
|
||||
* Protect ActivityPub information related to private/internal/blocked videos
|
||||
|
||||
### Admin config (non-exhaustive)
|
||||
|
||||
* **Breaking changes**:
|
||||
* Rename `views.videos.ip_view_expiration` to `views.videos.view_expiration`
|
||||
* YAML & web admin configs:
|
||||
* Add `storyboards.enabled` config to disable storyboard generation
|
||||
* Remove `services.twitter.whitelisted`: Twitter/X doesn't seem to need this anymore. This means that PeerTube will try to inject the video player in Twitter/X by default instead of using a classic image/description
|
||||
* YAML config only:
|
||||
* Add `open_telemetry.metrics.playback_stats_interval` config to customize how often viewers send playback stats to server
|
||||
* Add `views.videos.watching_interval.{anonymous,users}` configs to change how often the web browser sends "is watching" information to the server
|
||||
* Add `stats.registration_requests.enabled` and `stats.abuses.enabled` configs to hide instance registration/abuse requests public stats (average response time, total registration/abuse requests etc.)
|
||||
* Add `stats.total_moderators.enabled` and `stats.total_admins.enabled`configs to hide total admins/moderators public stats
|
||||
* Add `object_storage.streaming_playlists.store_live_streams` config to not store live stream chunks into object storage (when enabled for streaming playlists)
|
||||
* Set `open_telemetry.metrics.http_request_duration.enabled` to `false` by default to avoid performance issues on the Prometheus backend due to high metric cardinality
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Also generate `600x600` and `1500x1500` avatar sizes
|
||||
* Also generate `600x100` banner size
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Add ability for plugins to create a client custom sub-page in `/my-account` page [#6218](https://github.com/Chocobozzz/PeerTube/pull/6218)
|
||||
* Add access to `req.rawBody` for [plugin routes](https://docs.joinpeertube.org/contribute/plugins#add-custom-routes) [#6300](https://github.com/Chocobozzz/PeerTube/pull/6300)
|
||||
* Add server plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* `filter:api.user.me.get.result` [#6219](https://github.com/Chocobozzz/PeerTube/issues/6219)
|
||||
* Add `peertubeHelpers.videos.loadByIdOrUUIDWithFiles` helper [#6302](https://github.com/Chocobozzz/PeerTube/pull/6302)
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Implement user import/export :tada: [#6215](https://github.com/Chocobozzz/PeerTube/pull/6215)
|
||||
* This is not a migration tool: data (like channels or videos) is duplicated and not moved from the previous PeerTube instance
|
||||
* Export:
|
||||
* A ZIP is generated by PeerTube and an email is sent to the user when the archive is ready
|
||||
* The archive file contains ActivityPub data for federation compatibility and custom JSON files used by PeerTube import. It also contains video/playlist thumbnail and channel/account avatar/banner files
|
||||
* User can include video files in the archive
|
||||
* Archive files can be stored in object storage
|
||||
* Export can be disabled by the admin. They can also set an expiration time to automatically delete archive files and limit the export file size depending on the user's video quota
|
||||
* Import:
|
||||
* Update account metadata (display name, description...)
|
||||
* Update user settings (video autoplay policy, notification settings...)
|
||||
* Create entries in the mute list
|
||||
* Add watched videos in user's videos history
|
||||
Add likes/dislikes
|
||||
* Send a follow request to imported subscriptions
|
||||
* Create channels, playlists and videos (if the video files are included in the archive)
|
||||
* Admins can disable user import
|
||||
* :tada: Add ability to keep the original video file :tada: [#6157](https://github.com/Chocobozzz/PeerTube/pull/6157)
|
||||
* Can be stored in object storage
|
||||
* Uploader can download the original file
|
||||
* The original file is used in the user export archive (instead of the max quality file)
|
||||
* Add Turkish language support in client
|
||||
* Add ability for admins to set a banner and an avatar to the instance. The banner is used in *About instance*/*Login*/*Register an account* pages. Both the banner and the avatar can be used on the instance homepage using `<peertube-instance-banner>`/`<peertube-instance-avatar>` tag or on external websites/applications like the [JoinPeerTube website](https://joinpeertube.org/instances)
|
||||
* Add ability for uploaders to download and add a video to a playlist on the *My videos* page using the dropdown button [#6008](https://github.com/Chocobozzz/PeerTube/pull/6008)
|
||||
* Video views statistics:
|
||||
* Count a *view* after 10 seconds and use a web browser session id to identify a viewer (see IMPORTANT CHANGES section)
|
||||
* Add information about the location of the viewer subdivision/region
|
||||
* More accurate retention stats where PeerTube doesn't take into account empty views anymore
|
||||
* UI/UX:
|
||||
* Automatically filter on *Local videos* in admin
|
||||
* Add ability to sort videos by file size
|
||||
* Add total video file size column in admin users list
|
||||
* Improve admin runner jobs list by using badges with same colors for type/runner and add *processed/finished* columns
|
||||
* Add *Recommended* tags to recommended PeerTube plugins/themes
|
||||
* Improve plugins/themes default trending sort
|
||||
* Trim username on login
|
||||
* Warn if "Forgot password" email contains uppercase
|
||||
* Use more precise buttons label to save changes in *My account* settings
|
||||
* Add icon to owners/moderators only options
|
||||
* Always use short UUIDs instead of full UUIDs in client to prevent URL confusion
|
||||
* Add average admins/moderators response time in *Request an account* page
|
||||
* Add color to registration/abuse state icon
|
||||
* Player:
|
||||
* Add an enable/disable subtitle button to the control bar
|
||||
* Faster auto-resizing of the player when the video has a custom aspect ratio (only for videos uploaded on PeerTube >= 6.1)
|
||||
* Use video aspect ratio for responsive embeds (only for videos uploaded on PeerTube >= 6.1)
|
||||
* Performance:
|
||||
* Optimize *watching* (`/api/v1/videos/:videoId/views`) endpoint
|
||||
* Reduce `ffprobe` calls when not needed resulting in faster live stream transcoding startup and CPU/IO reduction during video upload/import
|
||||
* Federation
|
||||
* Introduce a new way to federate `Views` events in the federation. See [the commit details](https://github.com/Chocobozzz/PeerTube/commit/b4f4432459f22994cb8fa667c862a0edd7af0ebc) for more information
|
||||
* Implements [FEP-2677](https://codeberg.org/fediverse/fep/src/branch/main/fep/2677/fep-2677.md) to identify the `Application` `Actor`
|
||||
* Add Lemmy `postingRestrictedToMods` information to channels AP objects
|
||||
* Improve generated video thumbnail quality
|
||||
* Add notification when a subscribed video channel is live streaming
|
||||
* Support `itunes:owner` in podcast feed
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Add stripes to square video thumbnails too (like we do for portrait videos)
|
||||
* Prevent channels from being displayed multiple times on the *My channels* page
|
||||
* Stricter video timestamp "linkification"
|
||||
* Correctly fix downloading video files from object storage with some video names
|
||||
* Fix broken RSS feed in some (rare) cases
|
||||
* Fix local jobs count/pagination with *Waiting* jobs
|
||||
* Banned users cannot live stream anymore
|
||||
* Correctly escape HTML entities in meta tags [#6206](https://github.com/Chocobozzz/PeerTube/pull/6206)
|
||||
* Fix broken account channels page with high `video_channels.max_per_user` config
|
||||
* Add ability for moderators to approve/reject user registrations
|
||||
* Do not display empty notification settings group
|
||||
* Correctly fix WebTorrent video import crash
|
||||
* Fix video channel synchronization crash on remote channels/playlists that contain hidden videos (unavailable, deleted etc.)
|
||||
* Ensure the filename doesn't contain `/` character when downloading a video
|
||||
* Fix Google Search SEO (with `Video is not the main content of the page` error)
|
||||
* Remove password autocomplete in embed which causes issues when the parent page has a password input and the user uses the web browser's password autofill feature
|
||||
* Don't submit the login form on forgot my password keyboard click
|
||||
* Fix storyboard generation with some videos
|
||||
* Fix ffmpeg encoder after custom plugin transcoding profile deletion
|
||||
* Fix navigating from one channel related page (playlist, videos...) to another one
|
||||
* More robust live stream transcoded by a remote runner
|
||||
* Fix first video in playlist that doesn't start at "starts at"
|
||||
* Fix embed HTML code for videos/playlists that have passwords
|
||||
* Display external account/channel playlists if user is allowed to escape the federation
|
||||
* Fix view endpoint crash on geoip update failure
|
||||
* Fix setting video subtitle from URL query
|
||||
* Fix selecting "Display all languages/categories/licences" in videos search resulting in an empty search
|
||||
* Fix followers/following counter of local ActivityPub actors
|
||||
* Fix notification button link on mobile
|
||||
* Fix player subtitles on iOS
|
||||
|
||||
|
||||
## v6.0.4
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* If you upgrade from PeerTube **< v6.0.0**, please follow v6.0.0 IMPORTANT NOTES
|
||||
* If you upgrade from PeerTube **v6.0.0**, please follow v6.0.1 IMPORTANT NOTES
|
||||
|
||||
### SECURITY
|
||||
|
||||
* **Important:** Prevent XSS injection in embed. Thanks [Syst3m0ver](https://www.linkedin.com/in/ahmed-hasnaoui-790618180) and [aramido GmbH](https://aramido.de/sicherheitspruefung/penetrationstest)!
|
||||
|
||||
|
||||
## v6.0.3
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* If you upgrade from PeerTube **< v6.0.0**, please follow v6.0.0 IMPORTANT NOTES
|
||||
* If you upgrade from PeerTube **v6.0.0**, please follow v6.0.1 IMPORTANT NOTES
|
||||
|
||||
### SECURITY
|
||||
|
||||
* Prevent nginx from serving private/internal/password protected HLS video static files
|
||||
* You must update your nginx configuration like in [this commit](https://github.com/Chocobozzz/PeerTube/commit/12ea8f0dd11e3fb5fbb8955f5b7d52f27332d619#diff-be9f96b9b1de67284047e610821493f9a5bec86bfcdf81a7d8d6e7904474c186) (line `202` replace `location ~ ^(/static/(webseed|web-videos|streaming-playlists)/private/)|^/download {` by `location ~ ^(/static/(webseed|web-videos|streaming-playlists/hls)/private/)|^/download {`)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix HTML meta tags with attributes that contain quotes
|
||||
* Fix time parsing resulting in broken video start time in some cases
|
||||
* Fix WebTorrent video import crash
|
||||
* Reload *Discover* page on logout
|
||||
* Fix privacy error when updating a live, even if the privacy has not changed
|
||||
* Fix invalid remote live state change notification that causes the player to reload
|
||||
* Don't apply big play button skin to settings menu
|
||||
* Fix downloading video files from object storage with some video names (that include emojis, quotes etc)
|
||||
* Fix thumbnail generation when ffmpeg cannot seek the input
|
||||
* Fix theme colors on stats page
|
||||
* Fix input mask (used for chapters, playlist timecodes...) with 10h+ videos
|
||||
* Fix chapter *position* width consistency
|
||||
* Fix player ratio with audio only videos
|
||||
* Also update video playlist URLs when using `update-host` script
|
||||
* Fix upload/import/update of videos that contain multiple chapters with the same timecode
|
||||
|
||||
|
||||
## v6.0.2
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* If you upgrade from PeerTube **< v6.0.0**, please follow v6.0.0 IMPORTANT NOTES
|
||||
* If you upgrade from PeerTube **v6.0.0**, please follow v6.0.1 IMPORTANT NOTES
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix upgrade.sh when Peertube is installed outside the standard path [#6064](https://github.com/Chocobozzz/PeerTube/pull/6064)
|
||||
* Fix importing videos with too long chapter name
|
||||
* Don't create chapters from description if there is only one
|
||||
* Ensure user is owned by the auth plugin before updating its attributes
|
||||
* Improve channels and accounts SEO by fixing structured JSON-LD data and canonical URLs
|
||||
* Originally published and reupload date format consistency in watch page
|
||||
* Fix cpu count when cpu info not available
|
||||
* Fix embed when waiting for a live
|
||||
* Fix updating already started live if live attributes don't change
|
||||
* Fix displaying many countries in video stats
|
||||
|
||||
|
||||
## v6.0.1
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* If you upgrade from PeerTube **< v6.0.0**, please follow v6.0.0 IMPORTANT NOTES
|
||||
* We've made some modifications in v6.0.0 IMPORTANT NOTES, so if you upgrade from PeerTube v6.0.0:
|
||||
* Ensure `location = /api/v1/videos/upload-resumable {` has been replaced by `location ~ ^/api/v1/videos/(upload-resumable|([^/]+/source/replace-resumable))$ {` in your nginx configuration
|
||||
* Ensure you updated `storage.web_videos` configuration value to use `web-videos/` directory name
|
||||
* Ensure your directory name on filesystem is the same as `storage.web_videos` configuration value: directory on filesystem must be renamed from `videos/` to `web-videos/` to represent the value of `storage.web_videos`
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix CPU going to 100% on odd cpu count
|
||||
* Increase storyboard generation job TTL
|
||||
* Add missing `generate-video-storyboard` job type in admin jobs list
|
||||
* Regenerate storyboard after studio job
|
||||
|
||||
|
||||
## v6.0.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
We have many important notes in this release. We know it's a pain for sysadmin, but consider each one as a major step forward for PeerTube quality!
|
||||
|
||||
#### Sysadmins important notes
|
||||
|
||||
* Remove NodeJS 16 support (see https://nodejs.org/fr/blog/announcements/nodejs16-eol):
|
||||
* Please upgrade to NodeJS 18 before upgrading PeerTube
|
||||
* If you use NodeSource repository, you may have to migrate to their new repository: https://github.com/nodesource/distributions/wiki/How-to-migrate-to-the-new-repository
|
||||
* Check in `production.yaml` that you use `127.0.0.1` instead of `localhost` for `listen.hostname`, `database.hostname` and `redis.hostname` as Node 18 favours IPv6 for `localhost` resolution
|
||||
|
||||
* Remove WebTorrent support in player:
|
||||
* "WebTorrent videos" are renamed to "Web Video". The video format is the same, we just stop to use P2P for these videos
|
||||
* There is no "Auto" quality anymore for Web Videos. The viewer has to explicitly choose the video resolution
|
||||
* We still use P2P with the HLS player, which is the recommended transcoding format since several versions
|
||||
* See https://github.com/Chocobozzz/PeerTube/issues/5465 for more information
|
||||
|
||||
* Configuration key that you must update in your `production.yaml` if not automatically done by your upgrade script:
|
||||
* `storage.videos` must be **renamed** to `storage.web_videos`: https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L151
|
||||
* Configuration value of `storage.web_videos` must have the directory name to be **changed** from `videos/` to `web-videos/`: https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L151
|
||||
* Directory on filesystem must be **renamed** from `videos/` to `web-videos/` to represent the value of `storage.web_videos`
|
||||
* Classic installation: `sudo -u peertube mv '/var/www/peertube/storage/videos/' '/var/www/peertube/storage/web-videos/'`
|
||||
* Docker installation: `mv '/path-to-docker-installation/docker-volume/data/videos/' '/path-to-docker-installation/docker-volume/data/web-videos/'`
|
||||
* `transcoding.webtorrent` must be **renamed** to `transcoding.web_videos`: https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L532
|
||||
* `object_storage.videos` must be **renamed** to `object_storage.web_videos`. The value of `object_storage.web_videos.bucket_name` doesn't need to be changed: https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L223
|
||||
* `storage.storyboards` must be **added**: https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L157
|
||||
|
||||
* PeerTube Docker image now uses `bookworm`. `chocobozzz/peertube:production-bullseye` needs to be replaced by `chocobozzz/peertube:production-bookworm`
|
||||
|
||||
* Env configuration that your must update if you use Docker:
|
||||
* `PEERTUBE_TRANSCODING_WEBTORRENT_ENABLED` must be **renamed** to `PEERTUBE_TRANSCODING_WEB_VIDEOS_ENABLED`
|
||||
* `PEERTUBE_OBJECT_STORAGE_VIDEOS_BUCKET_NAME` must be **renamed** to `PEERTUBE_OBJECT_STORAGE_WEB_VIDEOS_BUCKET_NAME`
|
||||
* `PEERTUBE_OBJECT_STORAGE_VIDEOS_PREFIX` must be **renamed** to `PEERTUBE_OBJECT_STORAGE_WEB_VIDEOS_PREFIX`
|
||||
* `PEERTUBE_OBJECT_STORAGE_VIDEOS_BASE_URL` must be **renamed** to `PEERTUBE_OBJECT_STORAGE_WEB_VIDEOS_BASE_URL`
|
||||
|
||||
* You must update nginx configuration: https://github.com/Chocobozzz/PeerTube/blob/develop/support/nginx/peertube
|
||||
* `location ~ ^/static/(thumbnails|avatars)/ {` block must be removed
|
||||
* `location = /api/v1/videos/upload-resumable {` must be updated to `location ~ ^/api/v1/videos/(upload-resumable|([^/]+/source/replace-resumable))$ {`
|
||||
* `location ~ ^(/static/(webseed|streaming-playlists)/private/)|^/download {` must be updated to `location ~ ^(/static/(webseed|web-videos|streaming-playlists)/private/)|^/download {`
|
||||
* `location ~ ^/static/(webseed|redundancy|streaming-playlists)/ {` must be updated to `location ~ ^/static/(webseed|web-videos|redundancy|streaming-playlists)/ {`
|
||||
|
||||
* Tracing requires `--experimental-loader=@opentelemetry/instrumentation/hook.mjs` node option: https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L264
|
||||
|
||||
#### Developers important notes
|
||||
|
||||
* REST API breaking changes:
|
||||
* Removed `webtorrentEnabled` from user response (deprecated since 4.1 in favour of `p2pEnabled`)
|
||||
* Removed `avatar` and `banner` fields from account/channel responses (deprecated since 4.2 in favour of `avatars` and `banners`)
|
||||
* Removed `filter` query when listing videos (deprecated since 4.0 in favour of `isLocal` and `include`)
|
||||
* Deprecate `/api/v1/videos/:id/webtorrent` video file routes in favour of `/api/v1/videos/:id/web-videos` routes
|
||||
* Deprecate `hasWebtorrentFiles` body video filter in favour of `hasWebVideoFiles` when listing videos
|
||||
* Deprecate `webtorrent` `transcodingType` in favour of `web-video` in `/api/v1/videos/{id}/transcoding` route
|
||||
* `currentTime` is now required to notify the user is watching the video using `/api/v1/videos/{id}/views` (introduced in 4.2)
|
||||
|
||||
* Static server paths breaking changes:
|
||||
* `/static/webseed/...` is deprecated in favour of `/static/web-videos/...`
|
||||
* `/object-storage-proxy/webseed/...` is deprecated in favour of `/object-storage-proxy/web-videos/...`
|
||||
* `/static/thumbnails/...` is deprecated in favour of `/static/lazy-thumbnails/...`
|
||||
|
||||
* Plugin API breaking changes:
|
||||
* Deprecated `webtorrent` key in `getFiles()` helper result. Use `webVideo` instead
|
||||
|
||||
|
||||
### CLI tools
|
||||
|
||||
* Removed unmaintained `peertube-import-videos` (also aliased as `peertube import-videos` or `peertube import`) script
|
||||
* PeerTube remote CLI is much more simpler to install using NPM: https://docs.joinpeertube.org/maintain/tools#remote-peertube-cli
|
||||
* Support moving video files from object storage to filesystem: https://docs.joinpeertube.org/maintain/tools#move-video-files-from-object-storage-to-filesystem
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: **Add "Password protected" video privacy** [#5836](https://github.com/Chocobozzz/PeerTube/pull/5836) :tada:
|
||||
* A single password can be set using the web interface at video upload/import/update
|
||||
* The [REST API](https://docs.joinpeertube.org/api-rest-reference.html#tag/Video-Passwords) can store as many passwords as you want, allowing developers to use this feature to easily give or revoke access to a video *on the fly*
|
||||
* Developers that use PeerTube embeds can set the video password using [the embed API](https://docs.joinpeertube.org/api/embed-player#setvideopassword-promise-void)
|
||||
* :tada: **Add video storyboard support** :tada:
|
||||
* PeerTube automatically generates a storyboard on video upload/import
|
||||
* Viewers can see the image around the targeted timecode when hovering the progress bar
|
||||
* Storyboard of videos uploaded/imported before v6 can be generated by the admin using `npm run create-generate-storyboard-job` command: https://docs.joinpeertube.org/maintain/tools#generate-storyboard
|
||||
* :tada: **Add ability for users to replace their video file** :tada:
|
||||
* Has to be enabled by the PeerTube instance administrator
|
||||
* The user can replace the video file in the *Update Video* page
|
||||
* The *re-upload* date is displayed under the video player
|
||||
* :tada: **Add video chapters support** :tada:
|
||||
* Add chapters in the upload/import/update video page or let PeerTube automatically imports them from the video container/youtube-dl
|
||||
* Markers are displayed in the player progress bar to symbolize a chapter
|
||||
* Chapter title is displayed when hovering/touching the player progress bar
|
||||
* Better video player:
|
||||
* More efficient as we don't rebuild the player every time the played video changes
|
||||
* The player keeps the current player settings (playback speed, fullscreen...) when the played video changes
|
||||
* Automatically adjust the player size to match video ratio
|
||||
* Improve SEO and video link sharing:
|
||||
* Use short video/channel/account URLs in sitemap and for canonical tags
|
||||
* Add JSON-LD tag in embed page
|
||||
* Embed page does not forbid indexation anymore: we use a canonical tag instead that targets the watch page
|
||||
* Forbid indexation of remote videos, accounts and channels (instead of providing an invalid canonical tag)
|
||||
* Truncate OpenGraph/Twitter card link description
|
||||
* Fix client accessibility and keyboard navigation:
|
||||
* Fix links in bootstrap alerts color
|
||||
* Better input placeholder contrast
|
||||
* Fix video miniature link label
|
||||
* Add ability to disable hotkeys
|
||||
* Improve table overall accessibility
|
||||
* Wrap icons that can lead to an action inside buttons
|
||||
* Fix left menu admin/my-library menu accessibility
|
||||
* And many more improvements!
|
||||
* Improve remote runner management:
|
||||
* Add ability to remove runner jobs
|
||||
* Add runner job state quick filter
|
||||
* Merge registration tokens and runners tables in same page
|
||||
* Add copy button to copy registration token
|
||||
* Add ability for admins to force transcoding on a specific video even if it's in broken state (stuck in *To Transcode* for example)
|
||||
* Add an option to sign federated fetches (ActivityPub based software such as Mastodon may require it to access content)
|
||||
* Download video file directly from S3 using pre signed URLs
|
||||
* Lazy download remote video thumbnails to reduce storage
|
||||
* Improve recommended videos when the watched video doesn't have tags set
|
||||
* Add more rate limits in configuration (`plugins`, `well-known`, `feeds`, `activity_pub` and `client` endpoints)
|
||||
* Add ability to reset video *Originally published at* attribute
|
||||
* Add ability for admins to set the default user channel name [#6000](https://github.com/Chocobozzz/PeerTube/pull/6000)
|
||||
* Server now uses [ESM modules](https://nodejs.org/api/esm.html)
|
||||
* Add worker threads Prometheus metrics
|
||||
* Performance:
|
||||
* Process unicast HTTP job in worker threads
|
||||
* Sign ActivityPub requests in worker threads
|
||||
* Optimize recommended videos HTTP request
|
||||
* Optimize videos SQL queries when filtering on lives or tags
|
||||
* Optimize `/videos/{id}/views` endpoint with many viewers
|
||||
* Add ability to disable PeerTube HTTP logs
|
||||
* Optimize homepage videos HTTP queries
|
||||
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Don't cache upload response if the video has been deleted
|
||||
* Fix broken upgrade script when using custom database port
|
||||
* Prevent duplicate runner names
|
||||
* Avoid runner job update error
|
||||
* Notify remote runners there are available jobs when a job is aborted/errored
|
||||
* Fix updating P2P settings in left menu
|
||||
* Fix 500 HTTP error on invalid short UUID conversion
|
||||
* Don't display admin email in `security.txt` well-known endpoint
|
||||
* Optimize `update-host` script to fix out of memory error
|
||||
* Fix error log when using an unconventional distribution of FFmpeg with a non-standard version string [#5917](https://github.com/Chocobozzz/PeerTube/pull/5917)
|
||||
* Fix live replay REST API breaking change: `replaySettings.privacy` is not required anymore
|
||||
* Fix broken live replay when updating replay privacy
|
||||
* More robust *About* page when getting category from server
|
||||
* Fix `ERR_HTTP_HEADERS_SENT` crash
|
||||
* Avoid illegal characters in torrent filename
|
||||
* Avoid federation error log with remote `Like` on `Note`
|
||||
* Fix atom feed with *Science & Technology* category
|
||||
* Support empty value returned by `filter:api.video.get.result` hook
|
||||
* Prevent remote subscribe on accounts (not yet supported by PeerTube)
|
||||
* Fix feed audio file mimetype
|
||||
* Fix video quality on high video resolution/fps
|
||||
* Fix disabling Object Storage ACL using Docker env `PEERTUBE_OBJECT_STORAGE_UPLOAD_ACL_PUBLIC` and `PEERTUBE_OBJECT_STORAGE_UPLOAD_ACL_PRIVATE` in `.env`
|
||||
* Correctly end live session on ffprobe error
|
||||
* Fix video stats X axis with old videos
|
||||
* Fix empty master playlist upload on s3
|
||||
* Correctly generate `production.yaml.new` that should merge your current `production.yaml` with new keys defined by PeerTube
|
||||
* Fix card font color theme
|
||||
* Respect "transcode original resolution" setting when using remote runners
|
||||
* Prevent player mobile buttons flickering
|
||||
* Fix graph zooming end date
|
||||
|
||||
|
||||
## v5.2.1
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix loading spinner displayed forever on Chrome
|
||||
* Fix broken replay with long live name
|
||||
* Fix fps transcoding on remote runners
|
||||
* Fix terms/code of conduct link toggle
|
||||
|
||||
|
||||
## v5.2.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* **Important** Remove NodeJS 14 support
|
||||
* **Important** You must update your nginx configuration to support remote runners: https://github.com/Chocobozzz/PeerTube/blob/develop/support/nginx/peertube#L101
|
||||
* Add `storage.tmp_persistent` directory in configuration file. **You must configure it in your production.yaml**: https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L148
|
||||
* PeerTube requires **Docker Compose >= v2** for Docker compose installation
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Remove `npm run create-transcoding-job` and `npm run print-transcode-command` unmaintained scripts
|
||||
* Add Redis sentinel support [#5593](https://github.com/Chocobozzz/PeerTube/pull/5593)
|
||||
* Improve upgrade script (used when you will upgrade from PeerTube 5.2 to its next version) for classic installation:
|
||||
* Automatically generate a `config/production.yaml.new` file after the upgrade, which is the fusion between the new PeerTube configuration keys and your current `production.yaml`. After a review you can replace your old `config/production.yaml` with this new file so you don't have to add new keys manually
|
||||
* Add `ls` option compatibility with FreeBSD [#5785](https://github.com/Chocobozzz/PeerTube/pull/5785)
|
||||
|
||||
### Docker
|
||||
|
||||
* Make database name configurable using env variable [#5734](https://github.com/Chocobozzz/PeerTube/pull/5734)
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Add `filter:html.client.json-ld.result` hook
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Implement remote transcoding for VOD videos, Live streams and Studio editions :tada: [#5769](https://github.com/Chocobozzz/PeerTube/pull/5769)
|
||||
* If enabled, remote PeerTube runners can process these high CPU jobs
|
||||
* Admin documentation: https://docs.joinpeertube.org/admin/remote-runners
|
||||
* PeerTube runner CLI documentation: https://docs.joinpeertube.org/maintain/tools#peertube-runner
|
||||
* Demonstration video: https://peertube2.cpy.re/w/oJwHHYwt4oKjKhLNh2diAY
|
||||
* Architecture documentation: https://docs.joinpeertube.org/contribute/architecture#remote-vod-live-transcoding
|
||||
* Add Podcast RSS feed support: [#5487](https://github.com/Chocobozzz/PeerTube/pull/5487)
|
||||
* Add ability to set custom privacy for live replays [#5692](https://github.com/Chocobozzz/PeerTube/pull/5692)
|
||||
* Render images of markdown fields in *About* page [#5732](https://github.com/Chocobozzz/PeerTube/pull/5732)
|
||||
* Admin can disable user video history by default [#5728](https://github.com/Chocobozzz/PeerTube/pull/5728)
|
||||
* Improve global accessibility
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix live stream object storage sync resulting in broken playback on iOS after a few minutes
|
||||
* Correctly proxify HTTP 206 content-range header from object storage [#5703](https://github.com/Chocobozzz/PeerTube/pull/5703)
|
||||
* Filter out already watched videos from recommended videos [#5739](https://github.com/Chocobozzz/PeerTube/pull/5739)
|
||||
* Prevent exception when HTTP headers are already sent
|
||||
* Fix remote instance following/followers links in about page
|
||||
* Prevent error when updating a running live stream if the privacy hasn't changed
|
||||
* Prevent crash on plugin websocket error
|
||||
* Don't call `register`/`unregister` plugin API when installing/uninstalling plugins using `script/plugin` scripts (offline mode)
|
||||
* Fix error on missing plugin CSS file at PeerTube startup [#5746](https://github.com/Chocobozzz/PeerTube/pull/5746)
|
||||
* Prevent "invalid end watch section" server log warnings
|
||||
* Support remote subscribe with a handle starting with a `@` character
|
||||
* Actor preferred username (account/channel handle) is now case insensitive
|
||||
* Fix RTL layout inconsistencies
|
||||
* Prevent user video notification when the subscription is still in *Pending* state
|
||||
* Correctly remove *Pending* subscription
|
||||
* Fix PeerTube subtitles import
|
||||
* Fix languages alphabetical order
|
||||
* Fix registration notification error
|
||||
* Correctly unload plugin paths
|
||||
* Fix custom default route in instance logo link
|
||||
* Fix video channels quick filter overflow
|
||||
|
||||
|
||||
## v5.1.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* If your instance has signup enabled, user registration approval is automatically enabled by the default configuration of this release. You can change this setting in your `production.yaml` or in the configuration page in the web admin
|
||||
* Update [web browsers support list](https://joinpeertube.org/faq#what-web-browsers-are-supported-by-peertube):
|
||||
* Drop support of Safari 11 on iOS
|
||||
* Drop support of Safari 11 on desktop
|
||||
* Drop support of Firefox 68 on desktop
|
||||
* Minimum recommended Redis version is 6.2. Version 6.0 should still work: see [this comment](https://github.com/Chocobozzz/PeerTube/issues/5659#issuecomment-1449607001) for more information
|
||||
* Deprecate NodeJS 14: support will be removed in the next release (PeerTube 5.2)
|
||||
|
||||
### Maintenance
|
||||
|
||||
* [PeerTube OpenTelemetry](https://docs.joinpeertube.org/maintain/observability)
|
||||
* Add BitTorrent tracker metrics
|
||||
* Add ability to disable HTTP request duration metrics (can have a high tag cardinality)
|
||||
* Add `x-powered-by` HTTP header in PeerTube response. Can be disabled in PeerTube configuration
|
||||
|
||||
### Docker
|
||||
|
||||
* Add env variables to configure object storage
|
||||
|
||||
### Documentation
|
||||
|
||||
* PeerTube documentation website now uses VitePress: https://docs.joinpeertube.org
|
||||
* Add *Server code* documentation explaining the database model typing and how to add a new feature in PeerTube server: https://docs.joinpeertube.org/support/doc/development/server
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Add ability to set `playbackRate` in URL (watch page and embed) [#5486](https://github.com/Chocobozzz/PeerTube/pull/5486)
|
||||
* Auth plugins:
|
||||
* Can set default `adminFlags`, `videoQuota` and `videoQuotaDaily` user attributes
|
||||
* Introduce `userUpdater` hook function so external auth plugins can update the user on user login: https://docs.joinpeertube.org/contribute/plugins#add-external-auth-methods
|
||||
* Automatically redirect to the default external auth on PeerTube refresh token expiration
|
||||
* Server plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* Add `filter:api.user.me.subscription-videos.list.params` & `filter:api.user.me.subscription-videos.list.result` [#5648](https://github.com/Chocobozzz/PeerTube/pull/5648)
|
||||
* Add `filter:activity-pub.activity.context.build.result` to update ActivityPub JSON-LD context
|
||||
* Add `filter:activity-pub.video.json-ld.build.result` to update `Video` ActivityPub JSON-LD object
|
||||
* Add `action:activity-pub.remote-video.created` & `action:activity-pub.remote-video.updated` to react on remote video creation/update
|
||||
* Client plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* Add `action:video-edit.form.updated` fired every time the video upload/import/live/update form values change
|
||||
* Add `filter:video-watch.video-plugin-metadata.result` to add custom video metadata in watch page
|
||||
* Existing `action:video-edit.init` hook now contains a `updateForm` attribute in options that you can use to update video upload/import/live/update form values
|
||||
* Add server plugin helpers:
|
||||
* `getServerListeningConfig` to get PeerTube listening configuration
|
||||
* Convert some colors to PeerTube CSS variables to improve theme compatibility
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Implement user registration approval (https://docs.joinpeertube.org/admin/managing-users#registration-approval) [#5544](https://github.com/Chocobozzz/PeerTube/pull/5544)
|
||||
* If enabled, the user has to fill a *Registration reason* input
|
||||
* Moderators have to accept/reject the registration with a *Moderation response* that will be sent by email to the user
|
||||
* If the registration is accepted, the user and its channel are automatically created
|
||||
* Add "back to live" button in player
|
||||
* The *Live* button is red when the player is synced with the live
|
||||
* It becomes grey when behind the live edge
|
||||
* Clicking on the grey button re-sync the player with the live edge
|
||||
* Add Icelandic & Ukrainian locales
|
||||
* Add *Global views* default trending algorithm option in admin configuration [#5471](https://github.com/Chocobozzz/PeerTube/pull/5471)
|
||||
* Performance:
|
||||
* Blocked IPs by the tracker are now stored in NodeJS memory instead of Redis, reducing PeerTube load
|
||||
* Optimize video comments SQL requests
|
||||
* Optimize custom markup live rendering in admin
|
||||
* UI/UX:
|
||||
* Add option in video/playlist share modal to create a responsive embed [#5690](https://github.com/Chocobozzz/PeerTube/pull/5690)
|
||||
* Use `99+` instead of `99` when having more than `99` notifications
|
||||
* Use channel display name instead of channel handle in *My videos* input filter [#5575](https://github.com/Chocobozzz/PeerTube/pull/5575)
|
||||
* Display channel name in playlist element instead of account name
|
||||
* Display channel as author in RSS feeds
|
||||
* Improve/fix main pages keyboard navigation
|
||||
* Custom markup:
|
||||
* Support `mailto` links
|
||||
* Support short UUID to fetch a video
|
||||
* Admins can customize access and refresh tokens lifetime
|
||||
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix object storage incompatibility with some S3 providers that don't support ACL
|
||||
* Fix signup limit
|
||||
* Prevent `500` on invalid short UUID parameter
|
||||
* Player:
|
||||
* Fix live buffering with small latency setting
|
||||
* More robust player "stats for nerds" popup if there is not stream available
|
||||
* Don't display playback rate setting for lives
|
||||
* Don't handle playback rate hotkeys for lives
|
||||
* Fix clicking on PeerTube instance button
|
||||
* Fix always resuming the end of the video
|
||||
* Fix saving last video current time for anonymous users
|
||||
* Fix player keyboard shortcuts for non latin keyboards [#5684](https://github.com/Chocobozzz/PeerTube/pull/5684)
|
||||
* Process videos list requests in correct order
|
||||
* Correctly fill the *Support* field when updating a video
|
||||
* Fix *Auto play video* setting for anonymous users
|
||||
* UI:
|
||||
* Fix table columns max width
|
||||
* Use *Unknown* instead of *Misc* when the video category is not set
|
||||
* Prevent layout shift when listing videos
|
||||
* Fix instance stats anchor link
|
||||
* Fix menu content overlay on tablets
|
||||
* Fix button overflows
|
||||
* Handle `502` HTTP errors in client notifier
|
||||
* Fix resetting chart zoom in video stats page
|
||||
* Fix search page not loading all available results
|
||||
* Fix confirmation modal that contains 2 text inputs
|
||||
* Display the update button when the stable release of beta/alpha plugin is available
|
||||
* Always list NSFW videos in playlists (the frontend is in charge to blur the video element if the NSFW setting is *Hide* or *Blur*)
|
||||
* Always list NSFW videos in admin
|
||||
* Improve client log report:
|
||||
* Don't send client error on 404
|
||||
* Prevent sending invalid error/warn logs coming from HLS player [#5484](https://github.com/Chocobozzz/PeerTube/pull/5484)
|
||||
* Fix out of sync audio when cutting a video in Studio
|
||||
* Fix "unique viewers" inconsistency with countries
|
||||
* Fix mention detection in comments
|
||||
* Fix listing all my channels in *My library*
|
||||
* Fix displaying remote avatars
|
||||
* Fix 404 HTTP code in watch page when having `;threadId` param in URL
|
||||
* Correctly re-inject video file token in `.m3u8` resolution playlists to fetch private mp4 video file [#5677](https://github.com/Chocobozzz/PeerTube/pull/5677)
|
||||
* Don't process live when moving videos to external storage
|
||||
* Handle Redis disconnection gracefully [#5599](https://github.com/Chocobozzz/PeerTube/pull/5599)
|
||||
|
||||
|
||||
## v5.0.1
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* If you upgrade from PeerTube **< 5.0.0**, please follow 5.0.0 IMPORTANT NOTES
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix HLS player infinite loading when the live stream/video ends
|
||||
* Do not autoplay live without autoplay setting
|
||||
* Fix private/internal video playback from Cloudflare object storage
|
||||
* Fix local channel stats/OpenTelemetry metric
|
||||
* Also display dropdown for videos from the homepage
|
||||
* Fix broken P2P with live stream coming from object storage
|
||||
* Fix responsive of table pagination
|
||||
|
||||
|
||||
## v5.0.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* **Important** Private and internal video files are now protected. See [#5370](https://github.com/Chocobozzz/PeerTube/pull/5370) for more information, but see below for most important information:
|
||||
* For private/internal videos on filesystem:
|
||||
* These videos are now under a `private/` subdirectory in `videos/` and `streaming-playlists/` directories
|
||||
* Nginx doesn't serve these private files anymore, the requests are forwarded to PeerTube that will check authentication
|
||||
* For private/internal videos in object storage:
|
||||
* These videos have now a private ACL
|
||||
* PeerTube proxifies requests to private object storage (using pre-signed URLs is not possible as explained in [#5370](https://github.com/Chocobozzz/PeerTube/pull/5370))
|
||||
* Torrent files and magnet URIs of private/internal videos don't contain a webseed URL anymore since they require authentication
|
||||
* **Important** You need to manually execute a migration script after your upgrade to migrate private/internal video files:
|
||||
* Classic installation: `cd /var/www/peertube/peertube-latest && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production node dist/scripts/migrations/peertube-5.0.js`
|
||||
* Docker installation: `cd /var/www/peertube-docker && docker-compose exec -u peertube peertube node dist/scripts/migrations/peertube-5.0.js`
|
||||
* Configuration changes (`config/production.yaml`):
|
||||
* There is a new `secrets.peertube` configuration:
|
||||
* Classic install: fill it before running PeerTube v5: https://github.com/Chocobozzz/PeerTube/blob/v5.0.0/config/production.yaml.example#L14
|
||||
* Docker install: fill it using an env variable before running the containers: https://github.com/Chocobozzz/PeerTube/blob/develop/support/docker/production/.env#L27
|
||||
* `object_storage.upload_acl` is now a parent key that you must update: https://github.com/Chocobozzz/PeerTube/blob/v5.0.0/config/production.yaml.example#L153
|
||||
* You must update your nginx configuration:
|
||||
* We introduced a new `location` for plugin websocket routes: https://github.com/Chocobozzz/PeerTube/blob/v5.0.0/support/nginx/peertube#L135
|
||||
* We introduced a new `location` for private videos files: https://github.com/Chocobozzz/PeerTube/blob/v5.0.0/support/nginx/peertube#L217
|
||||
|
||||
### Documentation
|
||||
|
||||
* Add [Monitoring/Observability documentation](https://docs.joinpeertube.org/maintain/observability) using PeerTube OpenTelemetry feature
|
||||
|
||||
### Maintenance
|
||||
|
||||
* REST API breaking change:
|
||||
* `role` is now `role.id` and `roleLabel` is `role.label` in user response
|
||||
* We now store the complete remote video description:
|
||||
* Deprecate `description` in favour of `truncatedDescription` when listing videos
|
||||
* Complete description is sent by the server in `description` when getting a specific video
|
||||
* Deprecate `/api/v1/videos/:id/description` endpoint
|
||||
* `search.disable_local_search` disables local search in client search bar only and doesn't disable it on server side anymore [#5411](https://github.com/Chocobozzz/PeerTube/pull/5411)
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Add server plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* `filter:activity-pub.remote-video-comment.create.accept.result`
|
||||
* Add server plugin helpers
|
||||
* `socket.sendNotification` and `socket.sendVideoLiveNewState` [#5239](https://github.com/Chocobozzz/PeerTube/pull/5239)
|
||||
* Add ability for plugins to register a websocket route using `registerWebSocketRoute`
|
||||
* Add client plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* `filter:internal.player.p2p-media-loader.options.result` [#5318](https://github.com/Chocobozzz/PeerTube/pull/5318)
|
||||
|
||||
### CLI tools
|
||||
|
||||
* Add ability to install alpha/beta/rc plugin versions
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Support object storage for live streams :tada:
|
||||
* :tada: Support Two Factor authentication (OTP) :tada:
|
||||
* UX:
|
||||
* Add explanation on disk space used for user quota admin config [#5305](https://github.com/Chocobozzz/PeerTube/pull/5305)
|
||||
* Display channel in my videos list
|
||||
* Show which playlists videos are added to in my videos list
|
||||
* Add *Channels* link in left menu
|
||||
* Add `...` after the truncated video name in miniature
|
||||
* Add object storage info badge in videos admin overview
|
||||
* Add links to video files in videos admin overview
|
||||
* Better indicate the live ended in embed by displaying a message and the live preview
|
||||
* Force live autoplay by muting the video if necessary when the user was waiting for the live
|
||||
* Handle network issues in video player [#5138](https://github.com/Chocobozzz/PeerTube/pull/5138)
|
||||
* Cache chunks to upload in server to resume upload later [#5224](https://github.com/Chocobozzz/PeerTube/pull/5224)
|
||||
* Add ability to serve custom static files under `/.well-known` URL path [#5214](https://github.com/Chocobozzz/PeerTube/pull/5214)
|
||||
* Use account/channel avatar in account/channel RSS feeds [#5325](https://github.com/Chocobozzz/PeerTube/pull/5325)
|
||||
* Add filter to sort videos by name [#5351](https://github.com/Chocobozzz/PeerTube/pull/5351)
|
||||
* Add ability to configure OpenTelemetry Prometheus exporter listening hostname
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Hide all user email block if we can't change it (remote auth for example)
|
||||
* Display an error if trying to reset password of user configured to use a remote authentication
|
||||
* Fix peers info width in live
|
||||
* Fix video job error when video has been deleted
|
||||
* Fix user channels list with increased max counter
|
||||
* More robust channel/playlist import/sync
|
||||
* Hide useless *Wait Transcoding* input for lives
|
||||
* Fix responsive in account channels list
|
||||
* Fix slow page response when listing many videos
|
||||
* Reload data when deleting a blocked video
|
||||
* Prevent error with metrics in HTTP player if no P2P info is available
|
||||
* Fix playlist overflow in account channels page
|
||||
* Fix invalid date display for jobs
|
||||
* Fix conflict with player hotkeys and `alt + number` web browser hotkey
|
||||
* Fix horizontal overflow on rtl languages
|
||||
* Fix actor follow constraint error on remote videos when *Allow users to do remote URI/handle search* is disabled
|
||||
* Fix running again transcoding on a video that doesn't contain audio or on a video that doesn't contain video
|
||||
* Fix re-transcoding of video with odd resolution
|
||||
* Fix embed API with playlists
|
||||
* Fix not working P2P with permanent live
|
||||
* Fix following/fetching remote Pleroma actor
|
||||
* Prevent high Redis memory usage when having many jobs
|
||||
* Fix overall viewers stats with start/end dates
|
||||
* Remove limit of countries displayed in video/live stats
|
||||
|
||||
|
||||
## v4.3.1
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* If you upgrade from PeerTube **< 4.3.0**, please follow 4.3.0 IMPORTANT NOTES
|
||||
|
||||
### SECURITY
|
||||
|
||||
* Prevent XSS in sort select on pages that list videos. Thanks to Anthony Roth who reported the vulnerability!
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix broken embed player on live reload
|
||||
* Fix channel follow when manually approve instance followers is enabled
|
||||
* Fix input with number overflow on small screen
|
||||
* Fix moderation dropdown overflow on mobile
|
||||
* Clearer instance subscription page title in admin
|
||||
* Prevent "Cannot use same state" video error
|
||||
* Correctly handle RTMP streams without audio
|
||||
* Correctly process broadcast parallel job in parallel
|
||||
|
||||
|
||||
## v4.3.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* Redis **<** 5.x is not supported anymore
|
||||
* FFmpeg **<** 4.3 is not supported anymore
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Use `yt-dlp` by default instead of `youtube-dl` for new installations (because of much more dev activity)
|
||||
* Support NodeJS 18
|
||||
* Improved PeerTube logs:
|
||||
* Reduce amount of PeerTube error logs
|
||||
* Introduce `log.log_tracker_unknown_infohash` setting to disable "Unknown infoHash" warnings
|
||||
* Web browsers send their error logs to the server that writes them in its own logs. Can be disabled by `log.accept_client_log` setting
|
||||
* Introduce experimental support of [OpenTelemetry](https://opentelemetry.io/)
|
||||
* Enable metrics export using a Prometheus exporter
|
||||
* Enable tracing export using a Jaeger exporter
|
||||
* Automatically rebuild native plugin modules on NodeJS ABI change
|
||||
|
||||
### Docker
|
||||
|
||||
* Add ability to easily use the docker compose stack on localhost
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Theme:
|
||||
* Removed unused `--secondaryColor` CSS variable
|
||||
* Add client plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* `filter:api.my-library.video-playlist-elements.list.params` & `filter:api.my-library.video-playlist-elements.list.result` [#5098](https://github.com/Chocobozzz/PeerTube/pull/5098)
|
||||
* `action:video-channel-create.init`
|
||||
* `action:video-channel-update.init` & `action:video-channel-update.video-channel.loaded`
|
||||
* `action:video-channel-videos.init` & `action:video-channel-videos.video-channel.loaded` & `action:video-channel-videos.videos.loaded`
|
||||
* `action:video-channel-playlists.init` & `action:video-channel-playlists.video-channel.loaded` & `action:video-channel-playlists.playlists.loaded`
|
||||
* `filter:share.video-embed-code.build.params` & `filter:share.video-embed-code.build.result` & `filter:share.video-playlist-embed-code.build.params` & `filter:share.video-playlist-embed-code.build.result`
|
||||
* `filter:share.video-embed-url.build.params` & `filter:share.video-embed-url.build.result` & `filter:share.video-playlist-embed-url.build.params` & `filter:share.video-playlist-embed-url.build.result`
|
||||
* `filter:share.video-url.build.params` & `filter:share.video-url.build.result` & `filter:share.video-playlist-url.build.params` & `filter:share.video-playlist-url.build.result`
|
||||
* `action:modal.share.shown`
|
||||
* Add server plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* `filter:job-queue.process.params` & `filter:job-queue.process.result`
|
||||
* `filter:transcoding.manual.resolutions-to-transcode.result` & `filter:transcoding.auto.resolutions-to-transcode.result`
|
||||
* `action:api.video-channel.created` & `action:api.video-channel.updated` & `action:api.video-channel.deleted`
|
||||
* `action:notifier.notification.created`
|
||||
* Add HTML placeholder (https://docs.joinpeertube.org/contribute/plugins#html-placeholder-elements):
|
||||
* `share-modal-playlist-settings` & `share-modal-video-settings`
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Add ability for users to synchronize a remote channel [#5135](https://github.com/Chocobozzz/PeerTube/pull/5135) :tada:
|
||||
* Automatically import all videos of a remote channel in your PeerTube channel
|
||||
* PeerTube will watch for new publications and automatically import these new videos
|
||||
* UI:
|
||||
* Redesigned *Create an account* steps
|
||||
* Improved *Login* page
|
||||
* Use a lighter font color
|
||||
* Use a bigger font size
|
||||
* Don't display form errors in red while typing but only when we unfocus the input
|
||||
* Display an error message when the user is unauthorized to view a page [#5097](https://github.com/Chocobozzz/PeerTube/pull/5097)
|
||||
* Display latest upload date for captions
|
||||
* Add an information if the live will be saved as a replay when displaying live sessions
|
||||
* Move search bar at the center of the header
|
||||
* Add *Toki Pona* and *Croatian* locales in client
|
||||
* Embed:
|
||||
* Display a message and automatically start live streams in embed
|
||||
* Use the instance name instead of "PeerTube" in embed control bar
|
||||
* Reuse current watch page query parameters for embed when using OEmbed [#5023](https://github.com/Chocobozzz/PeerTube/pull/5023)
|
||||
* Instance follows:
|
||||
* Introduce a *Rejected* state for follow requests to not reprocess already rejected follow requests
|
||||
* Add bulk actions on instance following/followers ()
|
||||
* Admins:
|
||||
* Add ability to disable original resolution transcoding of the uploaded video/live stream
|
||||
* Add ability to delete a specific video file in videos overview
|
||||
* Display *Last Login* column by default in users overview
|
||||
* Remember last selected columns in users overview
|
||||
* Add ability to set a custom video import timeout
|
||||
* Add ability to set the default feed (Atom, RSS...) items count
|
||||
* Admins and moderators now bypass API rate limits
|
||||
* Add ability to list comments on local videos in comments overview
|
||||
* Limit video import resolution depending on enabled VOD transcoding resolutions
|
||||
* Store and display the uploaded video original filename [#4885](https://github.com/Chocobozzz/PeerTube/pull/4885)
|
||||
* Add *Total views* in the my channels list [#5007](https://github.com/Chocobozzz/PeerTube/pull/5007)
|
||||
* Add *Original Publication Date* video sort option [#4959](https://github.com/Chocobozzz/PeerTube/pull/4959)
|
||||
* Performance:
|
||||
* Optimized view/watching endpoint
|
||||
* Optimized video feed SQL query
|
||||
* Process images (resize, convert...) in a dedicated worker thread
|
||||
* Optimized emoji markup list rendering in client
|
||||
* Use a worker thread to send ActivityPub Broadcast requests
|
||||
* Suffix external auth username/channel name on conflict instead of throwing an exception
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix users overview *Last login* sort in admin
|
||||
* More robust *move to object storage* job failure
|
||||
* Fix comment add avatar with a unauthenticated user
|
||||
* Fix fetching unlisted video in client
|
||||
* Fix comments/download enabled attributes when importing a video
|
||||
* Fix total instance views stats
|
||||
* Fix HLS player infinite buffering on seek
|
||||
* Reset table pagination on search
|
||||
* *Host* search filter can also search into channels and playlists in global search
|
||||
* Fix *My videos* invalid counter
|
||||
* Prevent error on highlighted thread
|
||||
* Fix *Jobs*, *Account blocklist* and *Server blocklist* hidden columns on Safari
|
||||
* Fix live stream max bitrate
|
||||
* Fix incompatibility with OpenSSL 3
|
||||
* Don't crash on redis connection error
|
||||
* Transcoding:
|
||||
* Fix failed transcoding with a mp3 file that contains a cover image
|
||||
* Prevent duplicated HLS playlist when running transcoding
|
||||
* Regenerate video file names when running transcoding manually
|
||||
* Prevent job failures resulting in broken videos on concurrent transcoding
|
||||
* Fix transcoding of videos with quad audio channels
|
||||
* ActivityPub
|
||||
* Fix random invalid HTTP signature generation
|
||||
* Use unique AP id for *Accept*/*Reject* activities
|
||||
* Correctly handle remote actors that don't have follow counters
|
||||
* Correctly handle unknown remote actor image size
|
||||
* Add years in graph legend when grouping video views stats by month
|
||||
* Prevent creating multiple lives when clicking multiple times on the "Go Live" button
|
||||
* Fix *undefined" resolution in player *Stats for nerds*
|
||||
* Fix not displayed error message in administrator web config
|
||||
* More robust S3 upload [#5231](https://github.com/Chocobozzz/PeerTube/pull/5231)
|
||||
* Fix broken saved live stream with only one resolution
|
||||
* Fix `removeEventListener` player embed api
|
||||
* Progressively cleanup actor images without width from the database
|
||||
* Fix broken dates on localized pages
|
||||
* Prevent job queue to be started before plugins
|
||||
* Fix old database enum names
|
||||
* Don't display remove file icon in admin videos overviews if we can't delete the file
|
||||
|
||||
|
||||
## v4.2.2
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* If you upgrade from PeerTube **< 4.2.0**, please follow 4.2.0 IMPORTANT NOTES
|
||||
|
||||
### SECURITY
|
||||
|
||||
* Upgrade vulnerable server dependencies
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix fast restream in permanent live
|
||||
* Fix latency mode setting when creating a live
|
||||
* Fix unique constraint tag violation when importing videos
|
||||
* Fix latest live sessions order
|
||||
* Fix server crash feed when accessing feeds that contains a live
|
||||
* Fix `false` boolean attribute (`data-is-live` etc) in custom markup
|
||||
|
||||
|
||||
## v4.2.1
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* If you upgrade from PeerTube **< 4.2.0**, please follow 4.2.0 IMPORTANT NOTES
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix live ending job that breaks new live session
|
||||
* Fix search filters counter
|
||||
* Fix upload banner icon margin
|
||||
* Fix button icon margin
|
||||
* Fix my import expander icon that should only be displayed on import error
|
||||
* Fix select components styling inconsistency
|
||||
* Increase max watch section to avoid too much warnings in server
|
||||
* Optimize broadcast job creation
|
||||
* Optimize `View` activities delivery using a dedicated broadcast job queue that can be run in parallel
|
||||
* Fix video selection buttons placement
|
||||
* Fix searching into account blocklist
|
||||
* Fix incorrect instance stats
|
||||
* Fix broken player on ICE error
|
||||
* Relax views federation
|
||||
* Fix peertube user in docker
|
||||
* Fix playlist element federation with a deleted video
|
||||
|
||||
|
||||
## v4.2.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* **Important** You need to execute manually a migration script (can be executed after your upgrade, while your PeerTube instance is running) to generate smaller avatar miniatures:
|
||||
* Classic installation: `cd /var/www/peertube/peertube-latest && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production node dist/scripts/migrations/peertube-4.2.js`
|
||||
* Docker installation: `cd /var/www/peertube-docker && docker-compose exec -u peertube peertube node dist/scripts/migrations/peertube-4.2.js`
|
||||
* **Important** SQL migrations (in particular `0685-multiple-actor-images`) can take several minutes to complete
|
||||
* **Important** You must update your nginx configuration to support video web editor: https://docs.joinpeertube.org/install/any-os#nginx
|
||||
* REST API:
|
||||
* `PUT /api/v1/videos/{id}/watching` is deprecated, use `POST /api/v1/videos/videos/{id}/views` instead: https://docs.joinpeertube.org/api-rest-reference.html#operation/addView
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Add `client.videos.resumable_upload.max_chunk_size` config option [#4857](https://github.com/Chocobozzz/PeerTube/pull/4857)
|
||||
* Add `object_storage.upload_acl` config option [#4861](https://github.com/Chocobozzz/PeerTube/pull/4861)
|
||||
* Add ability to set RTMP/RTMPS listening hostname using `rtmp.hostname`/`rtmps.hostname` and public RTMP/RTMPS hostname using `rtmp.public_hostname`/`rtmps.public_hostname`
|
||||
* Removed `best` default trending algorithm. It is automatically used if using `hot` algorithm with a logged in user
|
||||
|
||||
### Docker
|
||||
|
||||
* Use NodeJS 16 in PeerTube docker image: administrators may have to reinstall PeerTube plugins that use native NodeJS dependencies
|
||||
* Support readonly tmp directory (if you want to use `tmp` directory as a volume)
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Theme:
|
||||
* Add `--mainBackgroundHoverColor` and `--greySecondaryBackgroundColor` CSS variables
|
||||
* Add server plugin hooks
|
||||
* `filter:api.video-playlist.videos.list.params` and `filter:api.video-playlist.videos.list.result`
|
||||
* Support `getSettings()`, `isLoggedIn()` and `getAuthHeader()` client plugin helpers in embed
|
||||
* Player URL query parameters:
|
||||
* Support `controlBar=0` to hide player control bar. See [the documentation](https://docs.joinpeertube.org/api/embed-player#url-parameters) for more information
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Add video edition from the PeerTube web interface :tada:
|
||||
* Cut the video (set a new start/new end)
|
||||
* Add an intro at the beginning and/or an outro at the end of the video
|
||||
* Add an icon/watermark in the top right corner of the video
|
||||
* PeerTube will automatically transcode the new video and replace the original one
|
||||
* :sparkles: *Funded by "la Direction du numérique du Ministère de l'Éducation Nationale, de la Jeunesse et des Sports"* :sparkles:
|
||||
* :tada: Add advanced statistics of a specific video :tada:
|
||||
* Provide *Average watch time*, *Total watch time* and *Peak viewers* video statistics
|
||||
* Display total viewers, aggregated watch time and audience retention in interactive time series graphs
|
||||
* Display viewer countries in bar chart if not disabled by admins
|
||||
* :sparkles: *Funded by HowlRound Theatre Commons at Emerson College* :sparkles:
|
||||
* :tada: Add latency setting support for lives (small latency without P2P or high latency to increase P2P ratio) :tada:
|
||||
* :tada: Add ability to save a replay of every streaming session of a permanent live :tada:
|
||||
* :sparkles: *Funded by HowlRound Theatre Commons at Emerson College* :sparkles:
|
||||
* Add simple subtitle edition from video captions tab in video edition form [#4666](https://github.com/Chocobozzz/PeerTube/pull/4666)
|
||||
* Display live streaming sessions details in permanent live information modal
|
||||
* Add ability to also mute users when banning them [#4660](https://github.com/Chocobozzz/PeerTube/pull/4660)
|
||||
* UI improvements:
|
||||
* Add ability for admins to display author avatar in video miniatures [#4639](https://github.com/Chocobozzz/PeerTube/pull/4639) [#4823](https://github.com/Chocobozzz/PeerTube/pull/4823)
|
||||
* Display author avatar in embed
|
||||
* Move admin comments list in *Overviews* menu
|
||||
* Add a *Refresh* button to admin comments list
|
||||
* Add ability to sort videos by total views
|
||||
* Add *Persian* locale support
|
||||
* Add previous page redirection support on external auth login
|
||||
* Support proxy for object storage [#4973](https://github.com/Chocobozzz/PeerTube/pull/4973)
|
||||
* Add "Only display embed URL" checkbox in share modal
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Video uploads fixes:
|
||||
* Fix invalid token during long uploads
|
||||
* Fix upload on server with a slow disk
|
||||
* Fix upload of some videos with unknown duration (`.m2v` for example)
|
||||
* Fix 2 hours limit on uploads
|
||||
* Fix upload page title [#4904](https://github.com/Chocobozzz/PeerTube/pull/4904)
|
||||
* Fix video upload with some characters in filename
|
||||
* Fix `.ac3` and `.mts` upload on some OS
|
||||
* Fix avatar with account username starting with a number
|
||||
* Fix client html cache on theme update
|
||||
* Disallow unlisted video indexation
|
||||
* Allow oembed to fetch unlisted videos
|
||||
* Stop removing remote Mastodon rates
|
||||
* Fix email links displayed twice in text version
|
||||
* Fix user quota inconsistencies in admin when users use lives
|
||||
* Fix admin instance following list when sorting by *Redundancy allowed*
|
||||
* More reliable object storage upload when using multipart [#4903](https://github.com/Chocobozzz/PeerTube/pull/4903)
|
||||
* Correctly handle HTTP signature draft 11 requests (without `date` header but with `(created)`)
|
||||
* Fix `ctrl + 0-9` player hotkeys conflicting with web browser hotkeys
|
||||
|
||||
|
||||
## v4.1.1
|
||||
|
||||
### Security
|
||||
|
||||
* Strip EXIF data when processing images
|
||||
|
||||
### Docker
|
||||
|
||||
* Fix videos import by installing python 3
|
||||
* Install `git` package (may be needed to install some plugins)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix error when updating a live
|
||||
* Fix performance regression when rendering HTML and feeds
|
||||
* Fix player stuck by HTTP request error
|
||||
|
||||
|
||||
## v4.1.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* PeerTube does not support NodeJS 12 anymore
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Introduce ability for plugins to create client pages: https://docs.joinpeertube.org/contribute/plugins#create-client-page
|
||||
* Plugins that register custom video fields can choose in which tab they want to display them and can report errors: https://docs.joinpeertube.org/contribute/plugins#add-custom-fields-to-video-form
|
||||
* Add new client plugin id selectors
|
||||
* Add `#plugin-selector-about-instance-moderation`, `#plugin-selector-about-instance-other-information`, `#plugin-selector-about-instance-features`, `#plugin-selector-about-instance-statistics`, `#plugin-selector-about-menu-instance`, `#plugin-selector-about-menu-peertube`, `#plugin-selector-about-menu-network` in about page [#4597](https://github.com/Chocobozzz/PeerTube/pull/4597)
|
||||
* Add `#plugin-selector-menu-user-dropdown-language-item` in menu [#4597](https://github.com/Chocobozzz/PeerTube/pull/4597)
|
||||
* Add client plugin hooks
|
||||
* `filter:login.instance-about-plugin-panels.create.result` and `filter:signup.instance-about-plugin-panels.create.result` to add custom instance information in login/signup pages
|
||||
* Add server plugin hooks
|
||||
* `filter:api.server.stats.get.result`
|
||||
* `filter:api.video.upload.video-attribute.result`, `filter:api.video.import-url.video-attribute.result`, `filter:api.video.import-torrent.video-attribute.result`, `filter:api.video.live.video-attribute.result` when creating a video object
|
||||
* `action:api.video-caption.created` and `action:api.video-caption.deleted` [#4650](https://github.com/Chocobozzz/PeerTube/pull/4650)
|
||||
* Server helpers
|
||||
* `videos.getFiles(videoId: number)` to list video files (webtorrent, hls and thumbnail files)
|
||||
* `videos.ffprobe(path: string)` to get `ffprobe` JSON result
|
||||
* Publish [@peertube/peertube-type](https://www.npmjs.com/package/@peertube/peertube-types) NPM module that can be used by TypeScript plugins
|
||||
* Add ability to disable P2P in embed using `p2p` query parameter in embed URL
|
||||
|
||||
### Maintenance
|
||||
|
||||
* REST API
|
||||
* Deprecate `webTorrentEnabled` in favour of `p2pEnabled` for user model
|
||||
* Add ability to pause/resume the job queue
|
||||
* Also publish stable releases on https://builds.joinpeertube.org/release
|
||||
* Add ability for admins to specify `youtube-dl`/`yt-dlp` python binary path [#4706](https://github.com/Chocobozzz/PeerTube/pull/4706)
|
||||
* PeerTube server startup is faster
|
||||
|
||||
### Security
|
||||
|
||||
* Check video privacy before listing or accepting captions, comments or rates
|
||||
* Check video import target URL does not resolve to internal IP. This technique has some limits so if you have private HTTP services on your server/network publicly accessible, we recommend to use a proxy or a dedicated interface for PeerTube
|
||||
|
||||
### CLI tools
|
||||
|
||||
* Also remove HLS files when using `prune-storage` script
|
||||
* Support `--plugin-version` option when installing a plugin [#4599](https://github.com/Chocobozzz/PeerTube/pull/4599)
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Player improvements
|
||||
* Increase control bar size on desktop & mobile
|
||||
* Add overlay on tap to easily play/pause the video on mobile
|
||||
* Automatically move to landscape when full screen a video on mobile
|
||||
* Add fast forward/rewind on double tap on mobile
|
||||
* Cleanup, fix and add player hotkeys
|
||||
* Keep control bar displayed when settings panel is opened
|
||||
* Faster hiding transition for control bar
|
||||
* Stop confusing *peer* indication in control bar when p2p is disabled
|
||||
* Try to fast forward video on HLS decode error
|
||||
* :tada: More admin customizations
|
||||
* Specify default *Publish* video attributes (download enabled, comments enabled, privacy, licence)
|
||||
* Choose to automatically redirect users on the external auth platform on login button click
|
||||
* Set default P2P policy for the player
|
||||
* Search improvements
|
||||
* Add *Result type* filter in search (videos, channels or playlists)
|
||||
* Display only video results when searching on video metadata (tags, categories etc)
|
||||
* Video imports
|
||||
* Users can cancel and delete video imports
|
||||
* Add ability to filter video imports by target URL
|
||||
* Add ability for users to delete individual elements in videos history
|
||||
* Show date and views counter in playlist element miniature [#4396](https://github.com/Chocobozzz/PeerTube/issues/4396)
|
||||
* Add *norsk* locale support
|
||||
* Check mute status and display mute badges in channel and account pages
|
||||
* Add *No linguistic content* video language option [#4631](https://github.com/Chocobozzz/PeerTube/pull/4631)
|
||||
* Don't send notifications to admins/moderators if an admin/moderator reported an abuse
|
||||
* Add ability for moderators/admins to edit any channel [#4608](https://github.com/Chocobozzz/PeerTube/pull/4608)
|
||||
* Add a refresh button to admin videos overview page [#4753](https://github.com/Chocobozzz/PeerTube/pull/4753)
|
||||
* Add *Official* badge to official plugins in admin plugin pages
|
||||
* Automatically clean unavailable remote ActivityPub resources
|
||||
* Media RSS feed displays video file as default enclosure instead of torrent
|
||||
* Use white background for PeerTube icons (instead of transparency)
|
||||
* Show private badge for private videos in playlists [#4767](https://github.com/Chocobozzz/PeerTube/pull/4767)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix weird `require` bug on plugin upgrade
|
||||
* Fix plugin storage return value when storing a JSON array [#4640](https://github.com/Chocobozzz/PeerTube/pull/4640)
|
||||
* Decrease delay to cleanup resumable uploads (to 1 hour)
|
||||
* Update torrent metadata on video update
|
||||
* Fix HLS player with videos that have stream duration inconsistencies
|
||||
* Fix player crash if the video contains only audio resolution
|
||||
* Fix ffmpeg crash when using a transcoding plugin encoder that doesn't support PeerTube B-frame strategy
|
||||
* Fix transcoding failure for audio only uploads
|
||||
* Don't run HLS transcoding when running manually WebTorrent transcoding from the admin
|
||||
* Don't run audio transcoding with video only file
|
||||
* Correctly send new HLS files after re-transcoding to object storage
|
||||
* Fix stuck state when move transcoding job failed
|
||||
* Correctly display internal videos of internal subscriptions
|
||||
* Correctly display all videos history to users
|
||||
* Fix video upload with big preview file
|
||||
* Fix description/comment timestamp click of external video
|
||||
* Add missing `mediaType` information to AP objects
|
||||
* Fix abuse list crash on deleted reporter account
|
||||
* Convert markdown to HTML/plain text for RSS feeds
|
||||
* Search on tags is now case insensitive
|
||||
* Forbid comments/captions listing of private/internal videos
|
||||
* Prevent video import on non unicast ips
|
||||
* Improve markdown to plain text converter, especially when handling lists
|
||||
* Fix scheduled publication on upload
|
||||
* Fix youtube-dl max buffer size error
|
||||
* Hide remote subscribe if user is logged in
|
||||
* Fix video file `storage` column inconsistency
|
||||
|
||||
|
||||
## v4.0.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* **Important** You need to execute manually a migration script (can be executed after your upgrade, while your PeerTube instance is running) to migrate HLS files name:
|
||||
* Classic installation: `cd /var/www/peertube/peertube-latest && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production node dist/scripts/migrations/peertube-4.0.js`
|
||||
* Docker installation: `cd /var/www/peertube-docker && docker-compose exec -u peertube peertube node dist/scripts/migrations/peertube-4.0.js`
|
||||
* **Important** We fixed configuration inconsistencies and added some keys. **You must change/add them in your production.yaml**
|
||||
* `log.rotation.maxFileSize` becomes `log.rotation.max_file_size`
|
||||
* `log.rotation.maxFiles` becomes `log.rotation.max_files`
|
||||
* `log.anonymizeIP` becomes `log.anonymize_ip`
|
||||
* Removed `import.http.proxy` configuration: use `HTTP_PROXY` and `HTTPS_PROXY` environment variables instead
|
||||
* Added `storage.bin` in configuration file
|
||||
* REST API: Deprecate `filter` videos list query parameter in favour of `isLocal` and `include`
|
||||
* PeerTube **is compatible** with ffmpeg 4.4.1 but **is not compatible** with ffmpeg 4.4.0
|
||||
* Removed deprecated `/static/torrents` route
|
||||
* We changed the live `views` and `viewers` system, that could lead to federation inconsistencies with instances < 4.0.0 for these specific counters
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Add ability for sysadmins to disable web configuration edition [#4315](https://github.com/Chocobozzz/PeerTube/pull/4315)
|
||||
* YoutubeDL:
|
||||
* Support [yt-dlp](https://github.com/yt-dlp/yt-dlp/) (recommended due to unmaintained [youtube-dl](https://github.com/ytdl-org/youtube-dl))
|
||||
* Add ability to set release URL in configuration
|
||||
* Add ability to override `default-playlist.png`, `default-avatar-account.png`, `default-avatar-video-channel.png` using `storage.client_overrides` configuration [#4392](https://github.com/Chocobozzz/PeerTube/pull/4392)
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
*Documentation: https://docs.joinpeertube.org/api/plugins*
|
||||
|
||||
* Add client plugin hooks:
|
||||
* `filter:api.video-watch.video-playlist-elements.get.params` and `filter:api.video-watch.video-playlist-elements.get.result` [#4387](https://github.com/Chocobozzz/PeerTube/pull/4387)
|
||||
* Introduce plugin id selectors: https://docs.joinpeertube.org/contribute/plugins#plugin-selector-on-html-elements
|
||||
* Add `#plugin-selector-login-form` to login form
|
||||
|
||||
### Docker
|
||||
|
||||
* We now use Bullseye for Docker images, so the image name changed:
|
||||
* `production-buster` becomes `production-bullseye`
|
||||
* `v4.x.x-buster` becomes `v4.x.x-bullseye`
|
||||
* Allow configuration to be static/readonly [#4315](https://github.com/Chocobozzz/PeerTube/pull/4315)
|
||||
|
||||
### CLI tools
|
||||
|
||||
* Add [create-move-video-storage-jobs](https://docs.joinpeertube.org/maintain/tools#create-move-video-storage-jobjs) script to move local video files in object storage [#4481](https://github.com/Chocobozzz/PeerTube/pull/4481)
|
||||
* Removed `peertube-repl` and `peertube-watch` scripts
|
||||
* Apply import interval only when reasonable [#4552](https://github.com/Chocobozzz/PeerTube/pull/4552)
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Add videos overview in admin
|
||||
* List all available videos on the instance
|
||||
* Display video information summary: file type, file size, privacy, state, embed...
|
||||
* Many filters available: videos with/without HLS/WebTorrent, remote/local videos, exclude muted accounts...
|
||||
* Run WebTorrent/HLS transcoding
|
||||
* Remove WebTorrent/HLS video files
|
||||
* Bulk actions: remove, block, run transcoding, delete video files...
|
||||
* Correctly generate thumbnails/previews for portrait videos
|
||||
* Keep input image ratio for banners, avatars, thumbnails...
|
||||
* Support 144p transcoding [#4492](https://github.com/Chocobozzz/PeerTube/pull/4492)
|
||||
* Support RTMPS
|
||||
* UI:
|
||||
* Live:
|
||||
* Specify live type at first step
|
||||
* Improve *Permanent live* label using *Recurring live* expression
|
||||
* Clearer moderation dropdowns using section titles
|
||||
* Improve admin tables responsive
|
||||
* Add warning when trying to share a private playlist/video [#4469](https://github.com/Chocobozzz/PeerTube/pull/4469)
|
||||
* Change *Sort by views* to *Sort by recent views* [#4483](https://github.com/Chocobozzz/PeerTube/pull/4483)
|
||||
* Add *Next video to be played* in watch page if autoplay is enabled [#4497](https://github.com/Chocobozzz/PeerTube/pull/4497)
|
||||
* Add embed preview in share modal
|
||||
* Add user username in modal when deleting a user
|
||||
* Add video name in modal when blocking/removing a video
|
||||
* Improve notification settings organization
|
||||
* Video/live views:
|
||||
* Add ability for admins to change local buffer update interval
|
||||
* Add ability for admins to change view expiration for a specific IP
|
||||
* Introduce `viewers` attribute for live videos and reduce delay to see `viewers` update in the interface
|
||||
* Take into accounts `views` created during the live when saving replay
|
||||
* Add markdown support for playlist description [#4489](https://github.com/Chocobozzz/PeerTube/pull/4489)
|
||||
* Improve video playback when having invalid redundancy URLs
|
||||
* Load video resolutions before video starts in player settings menu
|
||||
* Optimize federation:
|
||||
* Correctly set HTTP request timeout
|
||||
* Process slow/bad targets in a dedicated queue
|
||||
* Optimize ActivityPub outbox fetch
|
||||
* Automatically update `publishedAt` attribute when re-streaming in a permanent live
|
||||
* Add ability for users to view their followers
|
||||
* Add ability for users to filter their videos per channel
|
||||
* Add ability for admins to show author display name instead of username in video miniatures [#4422](https://github.com/Chocobozzz/PeerTube/pull/4422)
|
||||
* Add ability for admins to filter logs by tags
|
||||
* Add ability for admins to configure per user channels limit [#4491](https://github.com/Chocobozzz/PeerTube/pull/4491)
|
||||
* Add available instance themes and plugins in `/about/peertube` page
|
||||
* Remove contributors list from `/about/peertube` since some contributors don't want their name to be displayed on unknown PeerTube instances
|
||||
* Add *Transcoding failed* video state [#4525](https://github.com/Chocobozzz/PeerTube/pull/4525)
|
||||
* Add ability to make a search using a URL containing query parameters
|
||||
* Optimize *channel with video* component in homepage
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Alert user when aborting video upload
|
||||
* Fix youtube-dl update with proxy
|
||||
* Fix *My videos* search on page refresh
|
||||
* Fix homepage request error when having many elements (channels, videos...)
|
||||
* Prevent multiple post-process triggering of upload-resumable [#4175](https://github.com/Chocobozzz/PeerTube/pull/4175)
|
||||
* Fix remote interaction on remote content
|
||||
* Fix HLS transcoding job when running `create-transcoding-job` CLI
|
||||
* Fix import error log on failed import
|
||||
* Fix transcoding with very low input bitrate
|
||||
* Update `updatedAt` video attribute on thumbnail update
|
||||
* Fix local video concurrent update
|
||||
* Fix redundancy error when PeerTube tries to extend/remove redundancy
|
||||
* Fix account switch in account channels page
|
||||
* Hide job progress information for jobs that don't support it
|
||||
* Fix player settings menu keyboard navigation
|
||||
* Fix player placeholder width
|
||||
* Fix playlist miniature size with big description
|
||||
* Correctly escape meta tags
|
||||
* Fix audio upload client bug if not enabled by instance
|
||||
* Add header Vary Accept-Language [#4588](https://github.com/Chocobozzz/PeerTube/pull/4588)
|
||||
* Fix additional extensions admin config description
|
||||
* Fix upload of video with long filename
|
||||
* Fix pending transcoding counter with failed job
|
||||
* Fix client header search on ios
|
||||
* Fix iframe attribute `allow-popups` for oembed
|
||||
* Fix theme update when logged in
|
||||
* Fix homepage title
|
||||
|
||||
|
||||
## v3.4.1
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix broken PeerTube when cookies are disabled or if the embed iframe does not have appropriate options
|
||||
* Fix search by channel's handle with an handle containing the local host
|
||||
* Don't display autoblock message in upload page it is not enabled by the admin
|
||||
* Don't index `/about/peertube` page
|
||||
* Correctly handle OEmbed with an URL containing query parameters
|
||||
* More robust youtube-dl thumbnail import
|
||||
* Don't send a new video notification when using create transcoding CLI script
|
||||
|
||||
|
||||
## v3.4.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* **Important:** Due to a bug in ffmpeg, PeerTube is not compatible with ffmpeg 4.4. See https://github.com/Chocobozzz/PeerTube/issues/3990
|
||||
* **Debian Bullseye admins:** Debian Bullseye removed `python` binary/link in favour of explicit `python2`/`python3` binaries. But `youtube-dl` used by PeerTube needs it so you'll have to install [python-is-python2](https://packages.debian.org/bullseye/python-is-python2) or [python-is-python3](https://packages.debian.org/bullseye/python-is-python3) **before** upgrading PeerTube
|
||||
* PeerTube now supports NodeJS 16
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
*Documentation: https://docs.joinpeertube.org/api/plugins*
|
||||
|
||||
* Server helpers
|
||||
* **Deprecate** `videoLanguageManager.addLanguage` and `videoLanguageManager.deleteLanguage`: use `videoLanguageManager.addConstant` and `videoLanguageManager.deleteConstant` instead
|
||||
* **Deprecate** `videoCategoryManager.addCategory` and `videoCategoryManager.deleteCategory`: use `videoCategoryManager.addConstant` and `videoCategoryManager.deleteConstant` instead
|
||||
* **Deprecate** `videoLicenceManager.addLicence` and `videoLicenceManager.deleteLicence`: use `videoLicenceManager.addConstant` and `videoLicenceManager.deleteConstant` instead
|
||||
* **Deprecate** `videoPrivacyManager.deletePrivacy`: `videoPrivacyManager.deleteConstant` instead
|
||||
* **Deprecate** `playlistPrivacyManager.deletePlaylistPrivacy`: `playlistPrivacyManager.deleteConstant` instead
|
||||
* Introduce `.getConstantValue()`, `.getConstants()` and `.resetConstants()` for `videoLanguageManager`, `videoCategoryManager`, `videoLicenceManager`, `videoPrivacyManager` and `playlistPrivacyManager`
|
||||
* Add server plugin hooks:
|
||||
* `filter:api.overviews.videos.list.params` and `filter:api.overviews.videos.list.result`
|
||||
|
||||
### Custom markup API
|
||||
|
||||
*Documentation: https://docs.joinpeertube.org/api/custom-client-markup*
|
||||
|
||||
* Add ability to only display VOD or live videos in `<peertube-videos-list>` element
|
||||
* `<peertube-container>` fills all available width. Can be changed using `data-justify-content` attribute
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Remove `StandardOutput` and `StandardError` settings from systemd service template [#4300](https://github.com/Chocobozzz/PeerTube/pull/4300)
|
||||
* Use random UUIDs for video, torrent and streaming playlist files
|
||||
* Filename is regenerated when the file content changes: allows admins to use aggressive caching
|
||||
|
||||
### CLI tools
|
||||
|
||||
* Remove unmaintened `optimize-old-videos.js` script
|
||||
* Add short UUID support in video scripts
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Add video filters to common video pages (account videos, channel videos, recently added/local/trending videos...)
|
||||
* Change video sort (recently added, hot, views...)
|
||||
* Only display live/VOD videos
|
||||
* Filter by languages/categories
|
||||
* Hide or display sensitive content
|
||||
* Choose to display all videos or only local videos
|
||||
* :tada: **Beta:** Add support for saving video files in object storage [#4290](https://github.com/Chocobozzz/PeerTube/pull/4290)
|
||||
* Check the documentation: https://docs.joinpeertube.org/admin/remote-storage
|
||||
* :tada: Add ability for instances to follow any actor (so specific accounts and channels)
|
||||
* Updated HLS.js (library to play HLS playlists in PeerTube player) to V1:
|
||||
* Remember last bandwidth to prevent resolution change at the beginning of the video
|
||||
* Automatically downgrade resolution if bandwidth is too low
|
||||
* Add latency metric for live videos in stats for nerd card
|
||||
* Immediate quality change when the user clicks on a specific resolution
|
||||
* Add ability to search by PeerTube host in search filters
|
||||
* Disallow search engine indexation of remote channels/accounts
|
||||
* Transcoding:
|
||||
* Improve bitrate calculation using "bit per pixel" method
|
||||
* Limit live bitrate to input bitrate
|
||||
* Accessibility/UI:
|
||||
* Alert user for low quota and video auto-block on upload page [#4336](https://github.com/Chocobozzz/PeerTube/pull/4336)
|
||||
* Display a modal when logged in to explain why and where set up the account profile [#4352](https://github.com/Chocobozzz/PeerTube/pull/4352)
|
||||
* Display messages to inform why and where set up channels in *My library* pages [#4352](https://github.com/Chocobozzz/PeerTube/pull/4352)
|
||||
* Display a warning when using capitalized letter for the email/username in the login form
|
||||
* Display a message in embed on unsupported web browser
|
||||
* Support out proxy using env variables (`HTTP_PROXY` and `HTTPS_PROXY`) [#4346](https://github.com/Chocobozzz/PeerTube/pull/4346)
|
||||
* Support *Latin* language for videos
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix PeerTube button link in embed
|
||||
* Don't remove existing redundancies on host redundancy update
|
||||
* Remove thumbnail flash when autoplay is enabled in embed
|
||||
* Fetch data in bulk for the homepage, fixing API rate limit errors
|
||||
* Fix channel name validator consistency between client and server
|
||||
* Fix resumable upload without preview file in the body
|
||||
* Fix redundancy of big HLS files
|
||||
* Fix stats for nerd card label width
|
||||
* Fix stats for nerd card resolution
|
||||
* Fix uploading videos with empty tags in CLI tools
|
||||
* Fix HLS player on non HTTPS instances
|
||||
* Hide schedule privacy if private was removed by a plugin
|
||||
* Fix moderation embeds
|
||||
* Fix description timestamp click
|
||||
* Fix privacy descriptions
|
||||
* Safer avatar, banner and video preview
|
||||
* Fix broken delete buttons of admin federation lists [#4378](https://github.com/Chocobozzz/PeerTube/pull/4378)
|
||||
* More robust webtorrent redundancy download
|
||||
* Fix hls redundancy in pruning script
|
||||
* Fix compat' with old web browsers (Pale Moon, Safari 11, iOS 11, old webkit...))
|
||||
* Fix silent 500 after resumable upload
|
||||
* Fix HTML config injection with custom HTML/CSS
|
||||
* Fix video upload on iOS
|
||||
|
||||
|
||||
## v3.3.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* **Important:** v3.2.0 introduced a `pg_dump` export bug in the auto upgrade script. v3.2.1 fixed this bug. To upgrade from v3.2.**0**:
|
||||
* You can upgrade manually https://docs.joinpeertube.org/install/any-os#manually
|
||||
* Or you can apply the changes introduced in this commit: https://github.com/Chocobozzz/PeerTube/commit/86dc0b9cc9374cba7548bb613ff43d92f90570a8 and then use the auto upgrade script
|
||||
* **Important:** Due to a bug in ffmpeg, PeerTube is not compatible with ffmpeg 4.4. See https://github.com/Chocobozzz/PeerTube/issues/3990
|
||||
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Increase max image/caption/torrent upload size to `4MB`. You need to update your nginx configuration to handle this change
|
||||
* Increase fetcher job concurrency to `3`
|
||||
|
||||
### Docker
|
||||
|
||||
* Support log level env parameter `PEERTUBE_LOG_LEVEL` [#4149](https://github.com/Chocobozzz/PeerTube/pull/4149)
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Add client helpers:
|
||||
* `getBaseRouterRoute()` [#4153](https://github.com/Chocobozzz/PeerTube/pull/4153)
|
||||
* Add client plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* `filter:left-menu.links.create.result` to add/remove left menu links
|
||||
* `filter:internal.player.videojs.options.result` to filter options sent to videojs player [#4126](https://github.com/Chocobozzz/PeerTube/pull/4126)
|
||||
* Add server plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* `action:api.video-playlist-element.created`
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Add ability to create a custom homepage using HTML, markdown and [custom HTML tags](https://docs.joinpeertube.org/api/custom-client-markup) [#4007](https://github.com/Chocobozzz/PeerTube/pull/4007)
|
||||
* :tada: Add ability to search playlists in PeerTube instance and [SepiaSearch](https://sepiasearch.org/)
|
||||
* :tada: Shorter public URLs (old URLs are still supported):
|
||||
* Handle short UUID (`8r4jooaQpHp8tw1E1qpSeYq` instead of `3caf7bea-5ceb-4959-81a0-b44d184e897c`) for playlists and videos
|
||||
* Use `/w/:id` instead of `/videos/watch/:id` and `/w/p/:id` instead of `/videos/watch/playlist/:id`
|
||||
* Use `/a/:accountName` instead of `/accounts/:accountName` and `/c/:channelName` instead of `/video-channels/:channelName` [#4009](https://github.com/Chocobozzz/PeerTube/pull/4009)
|
||||
* Provide `/@:username` page that automatically redirect to the account or channel page [#4009](https://github.com/Chocobozzz/PeerTube/pull/4009)
|
||||
* :tada: Add RTL layout support
|
||||
* Add ability to use HTML, markdown and [custom HTML tags](https://docs.joinpeertube.org/api/custom-client-markup) in instance description
|
||||
* Default to dark theme (if available) if requested by the web browser
|
||||
* Add ability for admins to configure minimum age required in signup page [#4010](https://github.com/Chocobozzz/PeerTube/pull/4010)
|
||||
* Use a dedicated URL for each tab in publish page
|
||||
* Add ability to prefill contact form using query parameters in URL [#4161](https://github.com/Chocobozzz/PeerTube/pull/4161)
|
||||
* Accessibility/UI:
|
||||
* Show logo in mobile view [#4141](https://github.com/Chocobozzz/PeerTube/pull/4141)
|
||||
* Improve download modal to download video subtitles
|
||||
* Better error message when trying to import a torrent containing multiple files
|
||||
* REST API errors:
|
||||
* Use [RFC 7807](https://datatracker.ietf.org/doc/html/rfc7807) format to display errors [#4143](https://github.com/Chocobozzz/PeerTube/pull/4143)
|
||||
* Improve date format error messages
|
||||
* Improve video name and tag error messages
|
||||
* Performance:
|
||||
* Use raw SQL to fetch a video from database (~ latency / 2)
|
||||
* Inject server config in HTML
|
||||
* Speed up client plugin loading
|
||||
* Cache refresh actor promises
|
||||
* Optimize activity pub video update
|
||||
* Relax some database transactions
|
||||
* Use an internal cache for DNS resolution.
|
||||
This should speed up federation and fix weird acquire timeouts in sequelize pool (causing slowness in the client interface)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix video upload with a capitalized extension
|
||||
* Fix "height not divisible by 2" ffmpeg error
|
||||
* Don't count deleted comment for replies
|
||||
* Fix UI bug when a plugin deleted the public privacy setting [#4163](https://github.com/Chocobozzz/PeerTube/pull/4163)
|
||||
* Fix `player.getResolutions()` embed API when the video is has not been played yet
|
||||
* Fix live placeholder image aspect ratio in theatre mode
|
||||
* Fix plugin modal/notifier
|
||||
* Fix some 404 errors for remote avatar
|
||||
* Fix daily quota display
|
||||
* Fix ownership change with a live video
|
||||
* Correctly handle broken plugin install
|
||||
* Fix channel deletion when it has videos
|
||||
* Force TLS for webfinger in production
|
||||
* Correctly support `wav` mimetype
|
||||
* Fix default video privacy when plugins deleted private video privacy
|
||||
* Fix subscribe hotkey
|
||||
* Fix HTTP fallback with a video that does not have webtorrent files
|
||||
* Fill video information when importing a peertube video
|
||||
|
||||
|
||||
## v3.2.1
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* **Important:** v3.2.0 introduced a `pg_dump` export bug in the auto upgrade script. To upgrade from v3.2.0:
|
||||
* You can upgrade manually https://docs.joinpeertube.org/install/any-os#manually
|
||||
* Or you can apply the changes introduced in this commit: https://github.com/Chocobozzz/PeerTube/commit/86dc0b9cc9374cba7548bb613ff43d92f90570a8 and then use the auto upgrade script
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix create account button style
|
||||
* Fix auto upgrade script
|
||||
* Fix live image aspect ratio in theatre mode
|
||||
|
||||
|
||||
## v3.2.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* **Important:** You must update your nginx configuration to add the `upload-resumable` endpoint: https://github.com/Chocobozzz/PeerTube/blob/develop/support/nginx/peertube#L81
|
||||
* **Important:** Due to a bug in ffmpeg, PeerTube is not compatible with ffmpeg 4.4. See https://github.com/Chocobozzz/PeerTube/issues/3990
|
||||
* **Important:** Drop NodeJS 10 support
|
||||
* PeerTube is not compatible with NodeJS 16 yet
|
||||
* By default, HLS transcoding is now enabled and webtorrent is disabled. We suggest you to reflect this change.
|
||||
See [the documentation](https://docs.joinpeertube.org/admin/configuration#webtorrent-transcoding-or-hls-transcoding) for more information
|
||||
* PeerTube client now displays bigger video thumbnails.
|
||||
To fix old thumbnails quality, run `regenerate-thumbnails` script after your PeerTube upgrade: https://docs.joinpeertube.org/maintain/tools#regenerate-thumbnailsjs
|
||||
|
||||
### Docker
|
||||
|
||||
* Support SSL database env parameter [#4114](https://github.com/Chocobozzz/PeerTube/pull/4114)
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Support `X-Frame-Options` header, enabled by default in the configuration
|
||||
* Directly use `node` in [systemd template](https://github.com/Chocobozzz/PeerTube/blob/develop/support/systemd/peertube.service)
|
||||
* Check ffmpeg version at PeerTube startup
|
||||
* Add `upload-resumable` nginx endpoint: https://github.com/Chocobozzz/PeerTube/blob/develop/support/nginx/peertube#L81
|
||||
|
||||
### CLI tools
|
||||
|
||||
* Add `regenerate-thumbnails` script to regenerate thumbnails of local videos
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Theme:
|
||||
* `--submenuColor` becomes `--submenuBackgroundColor`
|
||||
* Support HTML placeholders for plugins. See [the documentation](https://docs.joinpeertube.org/contribute/plugins#html-placeholder-elements) for more information
|
||||
* `player-next` next to the PeerTube player
|
||||
* Support storing files for plugins in a dedicated directory. See [the documentation](https://docs.joinpeertube.org/contribute/plugins#storage) for more information
|
||||
* Transcoding:
|
||||
* Add `inputOptions` option support for transcoding profile [#3917](https://github.com/Chocobozzz/PeerTube/pull/3917)
|
||||
* Add `scaleFilter.name` option support for transcoding profile [#3917](https://github.com/Chocobozzz/PeerTube/pull/3917)
|
||||
* Plugin settings:
|
||||
* Add ability to register `html` and `select` setting
|
||||
* Add ability to hide a plugin setting depending on the form state
|
||||
* Plugin form fields (to add inputs to video form...):
|
||||
* Add ability to hide a plugin field depending on the form state using `.hidden` property
|
||||
* Add client helpers:
|
||||
* `getServerConfig()`
|
||||
* `getAuthHeader()`
|
||||
* Add server helpers:
|
||||
* `config.getServerConfig()`
|
||||
* `plugin.getBaseStaticRoute()`
|
||||
* `plugin.getBaseRouterRoute()`
|
||||
* `plugin.getDataDirectoryPath()`
|
||||
* `user.getAuthUser()`
|
||||
* Add client plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* `action:modal.video-download.shown`
|
||||
* `action:video-upload.init`
|
||||
* `action:video-url-import.init`
|
||||
* `action:video-torrent-import.init`
|
||||
* `action:go-live.init`
|
||||
* `action:auth-user.logged-in` & `action:auth-user.logged-out`
|
||||
* `action:auth-user.information-loaded`
|
||||
* `action:admin-plugin-settings.init`
|
||||
* Add server plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* `filter:api.download.video.allowed.result` & `filter:api.download.torrent.allowed.result` to forbid download
|
||||
* `filter:html.embed.video-playlist.allowed.result` & `filter:html.embed.video.allowed.result` to forbid embed
|
||||
* `filter:api.search.videos.local.list.params` & `filter:api.search.videos.local.list.result`
|
||||
* `filter:api.search.videos.index.list.params` & `filter:api.search.videos.index.list.result`
|
||||
* `filter:api.search.video-channels.local.list.params` & `filter:api.search.video-channels.local.list.result`
|
||||
* `filter:api.search.video-channels.index.list.params` & `filter:api.search.video-channels.index.list.result`
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: More robust uploads using a resumable upload endpoint [#3933](https://github.com/Chocobozzz/PeerTube/pull/3933)
|
||||
* Accessibility/UI:
|
||||
* :tada: Redesign channel and account page
|
||||
* :tada: Increase video miniature size
|
||||
* :tada: Add channel banner support
|
||||
* Use a square avatar for channels and a round avatar for accounts
|
||||
* Use account initial as default account avatar [#4002](https://github.com/Chocobozzz/PeerTube/pull/4002)
|
||||
* Prefer channel display in video miniature
|
||||
* Add *support* button in channel page
|
||||
* Set direct download as default in video download modal [#3880](https://github.com/Chocobozzz/PeerTube/pull/3880)
|
||||
* Show less information in video download modal by default [#3890](https://github.com/Chocobozzz/PeerTube/pull/3890)
|
||||
* Autofocus admin plugin search input
|
||||
* Add `1.75` playback rate to player [#3888](https://github.com/Chocobozzz/PeerTube/pull/3888)
|
||||
* Add `title` attribute to embed code [#3901](https://github.com/Chocobozzz/PeerTube/pull/3901)
|
||||
* Don't pause player when opening a modal [#3909](https://github.com/Chocobozzz/PeerTube/pull/3909)
|
||||
* Add link below the player to open the video on origin instance [#3624](https://github.com/Chocobozzz/PeerTube/issues/3624)
|
||||
* Notify admins on new available PeerTube version
|
||||
* Notify admins on new available plugin version
|
||||
* Sort channels by last uploaded videos
|
||||
* Video player:
|
||||
* Add loop toggle to context menu [#3949](https://github.com/Chocobozzz/PeerTube/pull/3949)
|
||||
* Add icons to context menu [#3955](https://github.com/Chocobozzz/PeerTube/pull/3955)
|
||||
* Add a *Previous* button in playlist watch page [#3485](https://github.com/Chocobozzz/PeerTube/pull/3485)
|
||||
* Automatically close the settings menu when clicking outside the player
|
||||
* Add "stats for nerds" panel in context menu [#3958](https://github.com/Chocobozzz/PeerTube/pull/3958)
|
||||
* Add channel and playlist stats to stats endpoint [#3747](https://github.com/Chocobozzz/PeerTube/pull/3747)
|
||||
* Support `playlistPosition=last` and negative index (`playlistPosition=-2`) URL query parameters for playlists [#3974](https://github.com/Chocobozzz/PeerTube/pull/3974)
|
||||
* My videos:
|
||||
* Add ability to sort videos (publication date, most viewed...)
|
||||
* Add ability to only display live videos
|
||||
* Automatically resume videos for non logged-in users [#3885](https://github.com/Chocobozzz/PeerTube/pull/3885)
|
||||
* Admin plugins:
|
||||
* Show a modal when upgrading a plugin to a major version
|
||||
* Display a setting button after plugin installation
|
||||
* Add ability to search live videos
|
||||
* Use bigger thumbnails for feeds
|
||||
* Parse video description markdown for Opengraph/Twitter/HTML elements
|
||||
* Open the remote interaction modal when replying to a comment if we are logged-out
|
||||
* Handle `.srt` captions with broken durations
|
||||
* Performance:
|
||||
* Player now lazy loads video captions
|
||||
* Faster admin table filters
|
||||
* Optimize feed endpoint
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* More robust comments fetcher of remote video
|
||||
* Fix database ssl connection
|
||||
* Remove unnecessary black border above and below video in player [#3920](https://github.com/Chocobozzz/PeerTube/pull/3920)
|
||||
* Reduce tag input excessive padding [#3927](https://github.com/Chocobozzz/PeerTube/pull/3927)
|
||||
* Fix disappearing hamburger menu for narrow screens [#3929](https://github.com/Chocobozzz/PeerTube/pull/3929)
|
||||
* Fix Youtube subtitle import with some languages
|
||||
* Fix transcoding profile update in admin config
|
||||
* Fix outbox fetch with subtitled videos
|
||||
* Correctly unload a plugin on update/uninstall [#3940](https://github.com/Chocobozzz/PeerTube/pull/3940)
|
||||
* Ensure to install plugins that are supported by PeerTube
|
||||
* Fix welcome/warning modal displaying twice
|
||||
* Fix h265 video import using CLI
|
||||
* Fix context menu when watching a playlist
|
||||
* Fix transcoding job priority preventing video publication when there are many videos to transcode
|
||||
* Fix remote account/channel "joined at"
|
||||
* Fix CLI plugins list command options [#4055](https://github.com/Chocobozzz/PeerTube/pull/4055)
|
||||
* Fix HTTP player defaulting to audio resolution
|
||||
* Logger warning level is "warn"
|
||||
* Fix default boolean plugin setting [#4107](https://github.com/Chocobozzz/PeerTube/pull/4107)
|
||||
* Fix duplicate ffmpeg preset option for live
|
||||
* Avoid federation error when file has no torrent file
|
||||
* Fix local user auth select
|
||||
* Fix live ending banner display
|
||||
* Fix redundancy max size
|
||||
* Fix broken lives handling
|
||||
|
||||
|
||||
|
||||
## v3.1.0
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* **Important:** Drop PostgreSQL 9.6 support
|
||||
* **Important:** Deprecate NodeJS 10
|
||||
* Support NodeJS 14 and 15
|
||||
* Remove ES5 module support (breaks compatibility with web browsers we didn't support)
|
||||
* PeerTube releases now contain client source maps helping client debugging (for developers and admins).
|
||||
It's the reason why the release size is bigger (we think it's worth it)
|
||||
* Remove deprecated static routes (`/static/avatars/`, `/static/previews/` and `/static/video-captions/`)
|
||||
* PeerTube now uses a unique name for thumbnails, previews and captions allowing to correctly cache these resources.
|
||||
It could break some third party clients that guessed these filenames depending on the video UUID. We'll continue this work in the future
|
||||
for video filenames, so admins can easily cache these files (using multiple reverse proxies etc)
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Fix nginx max body size configuration
|
||||
|
||||
### CLI tools
|
||||
|
||||
* Add script printing command to generate a resolution for a given file [#3507](https://github.com/Chocobozzz/PeerTube/pull/3507)
|
||||
* Add `--wait-interval <seconds>` option to video-import script to wait between two video imports [#3310](https://github.com/Chocobozzz/PeerTube/pull/3310)
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Add server plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* `filter:api.user.me.videos.list.params` and `filter:api.user.me.videos.list.result`
|
||||
* Add server helpers:
|
||||
* `videos.loadByIdOrUUID`
|
||||
* Add server transcoding helpers (https://docs.joinpeertube.org/contribute/plugins#add-new-transcoding-profiles):
|
||||
* `transcodingManager.addVODProfile`
|
||||
* `transcodingManager.addVODEncoderPriority`
|
||||
* `transcodingManager.addLiveProfile`
|
||||
* `transcodingManager.addLiveEncoderPriority`
|
||||
|
||||
### Features
|
||||
|
||||
* Transcoding:
|
||||
* Fair transcoding jobs priority: give an higher priority to `optimize` jobs and decrease priority of transcoding jobs depending on the amount of videos uploaded by the user during the last 7 days [#3637](https://github.com/Chocobozzz/PeerTube/pull/3637)
|
||||
* Higher niceness priority for live transcoding compared to vod transcoding [#3577](https://github.com/Chocobozzz/PeerTube/pull/3577)
|
||||
* Allow admins to choose a transcoding profile. New transcoding profiles can be added by PeerTube plugins that can inject custom ffmpeg encoders/parameters
|
||||
* Add transcoding support for 1440p (Quad HD/QHD/WQHD) videos [#3518](https://github.com/Chocobozzz/PeerTube/pull/3518)
|
||||
* Add transcoding progress in admin transcoding jobs list
|
||||
* Use `veryfast` preset for default transcoding profile (same result size but faster)
|
||||
* Transcode audio uploads to lower configured resolutions
|
||||
* Transcode HLS playlists in a `tmp` directory (less bugs/inconsistencies)
|
||||
* Allow admins to choose the transcoding jobs concurrency
|
||||
* Support Albanian locale
|
||||
* Video upload:
|
||||
* Async torrent creation on video upload. We hope that it should fix some weird upload errors
|
||||
* Add `.m4a` audio upload support
|
||||
* Accessibility/UI:
|
||||
* Move orange admin buttons on the left side
|
||||
* Hide title to left menu toggle icon
|
||||
* Add username information in profile settings
|
||||
* Improve about page layout
|
||||
* Add refresh button in jobs list
|
||||
* Add ability to set a custom user quota
|
||||
* Rewrite prose for JavaScript disabled message [#3684](https://github.com/Chocobozzz/PeerTube/pull/3684)
|
||||
* Video import:
|
||||
* Stricter youtube-dl format selectors for import (don't import HDR videos and cap to the max supported resolution) [#3516](https://github.com/Chocobozzz/PeerTube/pull/3516)
|
||||
* Don't publish imported videos before the user submitted the second step form
|
||||
* Allow admins to choose the import jobs concurrency
|
||||
* Implement *hot* and *best* trending algorithms [#3625](https://github.com/Chocobozzz/PeerTube/pull/3625) & [#3681](https://github.com/Chocobozzz/PeerTube/pull/3681)
|
||||
* Admin config:
|
||||
* Add URL fragment support in admin config page to go on the appropriate tab
|
||||
* Improve submit error message
|
||||
* Allow admins to disable ping requests logging [#3550](https://github.com/Chocobozzz/PeerTube/pull/3550)
|
||||
* Add a setting so PeerTube periodically cleans up remote AP interactions
|
||||
* Add ability for admins to update plugin auth field of a particular user
|
||||
* Support `webp` avatar upload
|
||||
* Implement remote comment/subscription
|
||||
* Register a service worker [#3464](https://github.com/Chocobozzz/PeerTube/pull/3464)
|
||||
* Add ability to remove one's avatar for account and channels [#3467](https://github.com/Chocobozzz/PeerTube/pull/3467)
|
||||
* Show first decimal for video views above a thousand [#3564](https://github.com/Chocobozzz/PeerTube/pull/3564)
|
||||
* Allow user to search through their watch history [#3576](https://github.com/Chocobozzz/PeerTube/pull/3576)
|
||||
* Allow users/visitors to search through an account's videos [#3589](https://github.com/Chocobozzz/PeerTube/pull/3589)
|
||||
* Use an HTML link to display feed url
|
||||
* Allow AP resolution for default account/channel pages (`/accounts/:name/video-channels` and `/video-channels/:name/videos`)
|
||||
* Redirect to login on 401, display 403 variant [#3632](https://github.com/Chocobozzz/PeerTube/pull/3632)
|
||||
* Performance:
|
||||
* Optimize videos list API endpoint
|
||||
* Optimize videos list views sort SQL query
|
||||
* Avoid as much as possible to process remote thumbnail
|
||||
* Proxify remote torrent requests from local clients (like we do for captions and previews)
|
||||
* Optimize rate POST endpoint
|
||||
* Tighten hotkeys definitions to not conflict with the web browser hotkeys [#3702](https://github.com/Chocobozzz/PeerTube/pull/3702)
|
||||
* Add more AP stats to stats endpoint
|
||||
* Increase jobs request timeout to 7 seconds
|
||||
* Increase broadcast request concurrency to 30
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix remote subscribe input alignment
|
||||
* Fix loading bar for HTTP requests
|
||||
* Fix table header overflow
|
||||
* Disable wait transcoding checkbox instead of hiding it when uploading an incompatible video for the web
|
||||
* Fix sendmail emailer configuration
|
||||
* Add missing niceness to ffmpeg thumbnail process
|
||||
* Videos with only HLS files:
|
||||
* Fix RSS feed
|
||||
* Correctly wait transcoding before federating
|
||||
* Fix redundancy
|
||||
* Correctly remove torrents
|
||||
* Localize decimal separator in video miniatures [#3643](https://github.com/Chocobozzz/PeerTube/pull/3643)
|
||||
* Check banned status on external authentication
|
||||
* Remove all video redundancies when purging the cache
|
||||
* Fix URI search admin config update
|
||||
* Fix broken HLS playback with videos that contain an unknown channel layout
|
||||
* Fix HLS generation after file import script
|
||||
* Ensure we don't receive things from local actors
|
||||
* Try to recover from network errors in HLS player
|
||||
* Fix comments sorting dropdown z-index
|
||||
* Fix create transcoding job script depending on the transcoding configuration
|
||||
* Fix NSFW policy in my videos, account videos and channel videos pages
|
||||
* Fix complete description loading of a previous video
|
||||
* Fix video comments display with deleted comments
|
||||
* Don't override preview image on import
|
||||
* Fix Accept AP messages sending to previously accepted followers
|
||||
* Fix import script when using the instance uses the search index
|
||||
* Fix player freeze on Safari with a video that has many subtitles
|
||||
* Fix anonymous user settings
|
||||
* Fix preview upload with capitalized ext
|
||||
* Fix abuses list crash on deleted video
|
||||
* More robust channel change federation
|
||||
* Fix emptying video tags
|
||||
* Fix broken local actors that do not have a public/private key
|
||||
* Fix bad PeerTube URL for playlist embed
|
||||
* Live:
|
||||
* Don't update live attributes if they did not change (allowing to update live metadata even if the live has started)
|
||||
* Fix live RAM usage when ffmpeg is too slow to transcode the RTMP stream
|
||||
* Correctly load live information (description and preview) when not started
|
||||
* Fix mention notification with deleted comment
|
||||
* Fix default boolean plugin setting
|
||||
* Fix long text on modals [#3840](https://github.com/Chocobozzz/PeerTube/pull/3840)
|
||||
|
||||
## v3.0.1
|
||||
|
||||
### SECURITY
|
||||
|
||||
* **Important:** Fix retrieving data of another user if the username contains `_` when fetching *my information*
|
||||
|
||||
### Docker
|
||||
|
||||
* Fix [upgrade documentation](https://docs.joinpeertube.org/install/docker#upgrade)
|
||||
* Add live RTMP port in docker compose
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix account feed URL
|
||||
* Log RTMP server error (address already in use)
|
||||
* Fix NPM theme links in admin theme page
|
||||
* Don't reject AP actors with empty description
|
||||
* Fix twitter admin config description
|
||||
* Fix duplicate entry in job list page
|
||||
* Fix `nl-NL` broken admin config page
|
||||
* Fix bad tracker client IP when using a reverse proxy
|
||||
|
||||
|
||||
## v3.0.0
|
||||
|
||||
**Since v2.4.0**
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* Update the default configuration to not federate unlisted videos. We recommend to admins to update [this setting](https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L196)
|
||||
* Update the default configuration to remove remote video views to reduce DB size and improve performances. We recommend to admins to update [this setting](https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L170)
|
||||
* Remove deprecated video abuse API
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Refresh nginx configuration [#3313](https://github.com/Chocobozzz/PeerTube/pull/3313)
|
||||
|
||||
### Docker
|
||||
|
||||
* Replace traefik by nginx in our docker-compose template:
|
||||
* Better consistency with our default setup (we now use the same stack)
|
||||
* Use our default nginx template enabling many optimizations
|
||||
* Update the documentation to take into account this change: https://docs.joinpeertube.org/install/docker
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Add ability for auth plugins to redirect user on logout [#32](https://framagit.org/framasoft/peertube/PeerTube/-/merge_requests/32) & [#33](https://framagit.org/framasoft/peertube/PeerTube/-/merge_requests/33)
|
||||
* Add `input-password` setting to plugins [#3375](https://github.com/Chocobozzz/PeerTube/issues/3375)
|
||||
* Add server plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* `filter:api.accounts.videos.list.params`
|
||||
* `filter:api.accounts.videos.list.result`
|
||||
* `filter:api.video-channels.videos.list.params`
|
||||
* `filter:api.video-channels.videos.list.result`
|
||||
* Authenticate the user if possible in plugin router [#3400](https://github.com/Chocobozzz/PeerTube/pull/3400)
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: :tada: :tada: Support live streaming :tada: :tada: :tada: [#3250](https://github.com/Chocobozzz/PeerTube/pull/3250)
|
||||
* Create a live video using the PeerTube interface and start streaming using your favorite streaming software (OBS, ffmpeg...)
|
||||
* If the admin allows it, add ability for users to save a replay of their live
|
||||
* Support live transcoding in multiple resolutions
|
||||
* Admins can set a limit of created lives per user/instance and a duration limit
|
||||
* This is the first step of live streaming, we'll consolidate the feature next year
|
||||
* Support Galician locale
|
||||
* Update left menu [#3296](https://github.com/Chocobozzz/PeerTube/pull/3296)
|
||||
* Add *My settings*, *My library*, *Administration* (if admin) below the username
|
||||
* Rename section titles to *In my account*, and *On instance name* for better block scopes identification
|
||||
* Removed confusing *Account settings* and *Channel settings* from user dropdown
|
||||
* Add *My notifications* in user dropdown
|
||||
* Split account horizontal menu in two [#3296](https://github.com/Chocobozzz/PeerTube/pull/3296)
|
||||
* *My library* containing *Channels*, *Videos*, *Imports*, *Ownership changes*, *Playlists*, *Subscriptions* and *History*
|
||||
* *My settings* containing *Account settings*, *Notifications* and *Moderation* tools
|
||||
* Add page in admin to manage video comments of the instance
|
||||
* List latest comments
|
||||
* Delete comments of a specific user
|
||||
* Delete comments in bulk
|
||||
* Delete notifications related to muted accounts/instances
|
||||
* Add ability for moderators to display all videos (not yet published, private...) in channels/accounts pages
|
||||
* Support GIF avatars upload and federation [#3329](https://github.com/Chocobozzz/PeerTube/pull/3329)
|
||||
* Automatically enable auto block of new videos if the admin enables signups in the admin interface
|
||||
* Allow private syndication feed of videos from subscriptions [#3074](https://github.com/Chocobozzz/PeerTube/pull/3074)
|
||||
* Improve default account and channel avatars [#3326](https://github.com/Chocobozzz/PeerTube/pull/3326)
|
||||
* Accessibility/UI:
|
||||
* More explicit error messages for file uploads [#3347](https://github.com/Chocobozzz/PeerTube/pull/3347)
|
||||
* Allow to retry a failed video upload [#3347](https://github.com/Chocobozzz/PeerTube/pull/3347)
|
||||
* Improve jobs and logs view [#3127](https://github.com/Chocobozzz/PeerTube/pull/3127)
|
||||
* Use badges for *NSFW* and *Unfederated* labels in video block list table
|
||||
* Improved video rating popover text if the user is not logged-in [#3168](https://github.com/Chocobozzz/PeerTube/pull/3168)
|
||||
* Improve markdown-it emoji list column display [#3253](https://github.com/Chocobozzz/PeerTube/pull/3253)
|
||||
* Add help popup for choosing a licence [#3306](https://github.com/Chocobozzz/PeerTube/pull/3306)
|
||||
* Change *Upload* button to *Publish*
|
||||
* More player download/upload title details [#3394](https://github.com/Chocobozzz/PeerTube/pull/3394)
|
||||
* Create a dedicated transcoding tab in admin config
|
||||
* Improve 404 page
|
||||
* Improve login form [#3357](https://github.com/Chocobozzz/PeerTube/pull/3357)
|
||||
* Add a title attribute on views element to see the view counter [#3365](https://github.com/Chocobozzz/PeerTube/pull/3365)
|
||||
* Clearer titles for periods in recently added and videos from subscriptions pages
|
||||
* Select first available channel when accepting ownership change [#3382](https://github.com/Chocobozzz/PeerTube/pull/3382)
|
||||
* Hide channel registration step if default quota is 0 [#3393](https://github.com/Chocobozzz/PeerTube/pull/3393)
|
||||
* Add possibility to share origin URL to video if it's not local [#3201](https://github.com/Chocobozzz/PeerTube/pull/3201)
|
||||
* Render markdown in email notifications for new comments [#3255](https://github.com/Chocobozzz/PeerTube/pull/3255)
|
||||
* Add an admin setting to force ipv4 in youtube-dl [#3311](https://github.com/Chocobozzz/PeerTube/pull/3311)
|
||||
* Add ability for admins to put markdown in all fields of *About* page [#3371](https://github.com/Chocobozzz/PeerTube/pull/3371)
|
||||
* Support `activeMonth` and `activeHalfyear` in nodeinfo
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix inability to delete a channel due to a bug in the confirm modal
|
||||
* Fix views processing for hour 0
|
||||
* Fix ownership change modal accept button
|
||||
* Fix incorrect ActivityPub IDs
|
||||
* Do not transcode videos to an higher bitrate than the source
|
||||
* Fix video display of muted accounts on overview page
|
||||
* Fix transcoding errors in readonly docker containers [#3198](https://github.com/Chocobozzz/PeerTube/pull/3198)
|
||||
* Fix running another transcoding job using the CLI on a video that was already transcoded
|
||||
* Fix embed on Brave web browser
|
||||
* Fix break line display for re-draft comments [#3261](https://github.com/Chocobozzz/PeerTube/pull/3261)
|
||||
* Fix hidden loading bar
|
||||
* Fix jobs pagination
|
||||
* Fix missing player localized strings
|
||||
* Fix instance file size stats when the admin enabled HLS
|
||||
* Fix embed of HLS videos on non HTTPS websites
|
||||
* Hide embed dock when title/description are disabled
|
||||
* Fix follow notification when the follower has been deleted
|
||||
* Fix client override endpoint in nginx configuration [#3297](https://github.com/Chocobozzz/PeerTube/pull/3297)
|
||||
* Fix overflow of some dropdowns
|
||||
* Fix infinite scrollin in channel's playlists page
|
||||
* Fix anchors scrolling in About page
|
||||
* Fix canonical URLs of videos and playlists [#3406](https://github.com/Chocobozzz/PeerTube/pull/3406)
|
||||
* Fix CLI import script when importing Youtube channels
|
||||
* Fix video tag min length validator
|
||||
* Fix user notification preferences column width [#3352](https://github.com/Chocobozzz/PeerTube/pull/3352)
|
||||
* Fix forgotten/reset password UI [#3351](https://github.com/Chocobozzz/PeerTube/pull/3351)
|
||||
* Fix 00:00 player timecode in video description and comments
|
||||
* Avoid too large federation cert error messages in logs
|
||||
* Fix registration form width on mobile [#3274](https://github.com/Chocobozzz/PeerTube/pull/3274)
|
||||
* Fix "Too many packets buffered for output stream" ffmpeg error with some videos
|
||||
* Fix 500 error when fetching unknown video thread
|
||||
* Fix infinite scroll in *Local videos* page when enabling the *Display all videos* checkbox on big screens
|
||||
* Fix menu theme colors [#3376](https://github.com/Chocobozzz/PeerTube/pull/3376)
|
||||
* Fix playlist list `name`/`displayName` sort field [#3385](https://github.com/Chocobozzz/PeerTube/pull/3385)
|
||||
* Fix 401 error display in embeds
|
||||
* Do not crash if SMTP server is down, instead log an error [#3457](https://github.com/Chocobozzz/PeerTube/issues/3457)
|
||||
* Fix redundancy federation in specific cases
|
||||
* Stop CLI auth failure with extra `/` [#3520](https://github.com/Chocobozzz/PeerTube/issues/3520)
|
||||
* Add missing audit log if the user deletes its account
|
||||
* Don't crash on youtube-dl update write error
|
||||
* Fix video auto block notification issue
|
||||
|
||||
**Since v3.0.0-rc.1**
|
||||
|
||||
### Features
|
||||
|
||||
* Support Galician locale
|
||||
* Support `activeMonth` and `activeHalfyear` in nodeinfo
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix views processing for hour 0
|
||||
* Fix follows pages (in admin and about)
|
||||
* Don't display live max duration if disabled by admin
|
||||
* Correctly display live badge in videos list
|
||||
* Fix redundancy federation in specific cases
|
||||
* Fix live miniatures
|
||||
* Don't update player timestamp when clicking on a timecode in comments/descriptions for a live
|
||||
* Fix admin table filters
|
||||
* Fix some accessibility issues
|
||||
* Stop CLI auth failure with extra `/` [#3520](https://github.com/Chocobozzz/PeerTube/issues/3520)
|
||||
* Fix login error display
|
||||
* Don't display log level in audit logs view
|
||||
* Add missing audit log if the user deletes its account
|
||||
* Don't crash on youtube-dl update write error
|
||||
* Fix video auto block notification issue
|
||||
|
||||
|
||||
## v2.4.0
|
||||
|
||||
**Since v2.3.0**
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* The minimum ffmpeg version required is now 4.1
|
||||
* Deprecate static routes that will be removed in 3.0 (you may not have to do anything if you used paths returned by the video REST API):
|
||||
* `/static/avatars/`: use `/lazy-static/avatars/` instead
|
||||
* `/static/previews/`: use `/lazy-static/previews/` instead
|
||||
* `/static/video-captions/`: use `/lazy-static/video-captions/` instead
|
||||
* Use `playlistPosition` URL parameter for playlists instead of `videoId` to set the current playlist position
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Better error message on PostgreSQL connection error
|
||||
* Add `ssl` option support for PostgreSQL connection
|
||||
|
||||
### Official PeerTube plugins
|
||||
|
||||
* [Player video annotation (alpha)](https://framagit.org/framasoft/peertube/official-plugins/-/tree/master/peertube-plugin-video-annotation)
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Add embed API (https://docs.joinpeertube.org/api/embed-player):
|
||||
* `playNextVideo` method
|
||||
* `playPreviousVideo` method
|
||||
* `getCurrentPosition` method
|
||||
* Embed URL parameters
|
||||
* Add ability to disable PeerTube link in embed using an URL param (`peertubeLink=0`)
|
||||
* Add plugins support in embed
|
||||
* Add client plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* `action:embed.player.loaded` (for embed)
|
||||
* Add custom fields in video update/upload form using `registerVideoField` (https://docs.joinpeertube.org/contribute/plugins#add-custom-fields-to-video-form)
|
||||
|
||||
### Features
|
||||
|
||||
* Moderation:
|
||||
* :tada: Add ability to report comments and accounts
|
||||
* :tada: Add messaging system between local reporter of an abuse and moderators so they can easily communicate
|
||||
* :tada: Users can now see their abuse reports, and have notifications when an abuse state changed (accepted/rejected) or when moderators added a new message
|
||||
* Add embed to block list details [@rigelk in #2926](https://github.com/Chocobozzz/PeerTube/pull/2926)
|
||||
* Video playlists:
|
||||
* :tada: Add ability to embed playlists
|
||||
* :tada: Add ability to put a video multiple times in a playlist (with different startAt/stopAt parameters or not)
|
||||
* Video comments:
|
||||
* Add uni-code emojis native display in comments [@Kimsible in #3046](https://github.com/Chocobozzz/PeerTube/pull/3046)
|
||||
* Add delete and re-draft action on a comment that doesn't have replies [@Kimsible in #3046](https://github.com/Chocobozzz/PeerTube/pull/3046)
|
||||
* Hide deleted comments when there aren't replies [@Kimsible in #3046](https://github.com/Chocobozzz/PeerTube/pull/3046)
|
||||
* Accessibility/UI:
|
||||
* Disable vertical scroll instead of hide on desktop browsers [@Kimsible in #2962](https://github.com/Chocobozzz/PeerTube/pull/2962)
|
||||
* Update my-account sub-menus icons [@Kimsible in #2977](https://github.com/Chocobozzz/PeerTube/pull/2977)
|
||||
* Improve navigation sub-menu and tabs effects [@Kimsible in #2971](https://github.com/Chocobozzz/PeerTube/pull/2971)
|
||||
* Hide generic channel display name and avatar on watch view [@Kimsible in #2988](https://github.com/Chocobozzz/PeerTube/pull/2988)
|
||||
* Display user quota progress bars above upload form [@Kimsible in #2981](https://github.com/Chocobozzz/PeerTube/pull/2981)
|
||||
* Improve mobile accessibility by moving table action cells on the left [@Kimsible in #2980](https://github.com/Chocobozzz/PeerTube/pull/2980)
|
||||
* Directly display download button in watch page on logged-out users [@rigelk in #2919](https://github.com/Chocobozzz/PeerTube/pull/2919)
|
||||
* Improve users list table display in admin (add badge, progress bar) [@rigelk in #2991](https://github.com/Chocobozzz/PeerTube/pull/2991)
|
||||
* Add dynamic column display for users list table in admin [@rigelk in #2991](https://github.com/Chocobozzz/PeerTube/pull/2991)
|
||||
* Add anchor links to about/instance [@Kimsible in #3064](https://github.com/Chocobozzz/PeerTube/pull/3064)
|
||||
* Improve select components [@rigelk in #3035](https://github.com/Chocobozzz/PeerTube/pull/3035)
|
||||
* Add content overlay for opened menu on touchscreens [@Kimsible in #3088](https://github.com/Chocobozzz/PeerTube/pull/3088)
|
||||
* Add alert and hide upload view when no upload is possible [@Kimsible in #2966](https://github.com/Chocobozzz/PeerTube/pull/2966)
|
||||
* Allow sorting notifications by unread/newest **@rigelk**
|
||||
* Add open-graph and twitter-card metas for accounts, video-channels and playlists urls [@Kimsible in #2996](https://github.com/Chocobozzz/PeerTube/pull/2996)
|
||||
* Add channel name to create-user admin form [@Kimsible in #2984](https://github.com/Chocobozzz/PeerTube/pull/2984)
|
||||
* Support Kabile for video languages/captions
|
||||
* Translate page titles
|
||||
* Add `.ac3`, `.aac`, `.qt`, `.mqv`, `.3gpp`, `.3gpp2`, `.m1v`, `.mpg`, `.mpe`, `.vob` extensions support on upload if transcoding is enabled **@rigelk**
|
||||
* Performance:
|
||||
* Improved front-end performance by reducing localized bundle sizes (~ 2MB instead of 3MB for the homepage)
|
||||
* Optimize comments RSS feed SQL query
|
||||
* Optimize default sort SQL query when listing videos
|
||||
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Handle webp images from youtube-dl
|
||||
* Fix embed p2p warning localization
|
||||
* iOS fixes:
|
||||
* Fix HLS only videos playback
|
||||
* Fix fullscreen
|
||||
* Fix iPad desktop mode playback
|
||||
* Try to fix autoplay with iOS/Safari
|
||||
* Fix anonymous user theme
|
||||
* Fix player hotkeys after mouse interaction
|
||||
* Fix resolution transcoding for portrait videos
|
||||
* Do not display videojs poster when video is starting to avoid blinking effect [@Kimsible in #3056](https://github.com/Chocobozzz/PeerTube/pull/3056)
|
||||
* Correctly scroll to anchors in my-settings [@Kimsible in #3032](https://github.com/Chocobozzz/PeerTube/pull/3032)
|
||||
* Forbid reset password links reuse
|
||||
* Fix low default resolution on webtorrent videos
|
||||
* Fix instance features table responsive in about page [@test2a in #3090](https://github.com/Chocobozzz/PeerTube/pull/3090)
|
||||
* Fix playlist element deletion/edition in my account
|
||||
* Fix video playlist playback resuming
|
||||
* Correctly display error message for Internet Explorer
|
||||
* Fix videos RSS feed when HLS only is enabled
|
||||
* Add site_name to opengraph tags
|
||||
|
||||
|
||||
**Since v2.4.0-rc.1**
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Add site_name to opengraph tags
|
||||
* Fix privacy/channel select on upload
|
||||
|
||||
|
||||
## v2.3.0
|
||||
|
||||
**Since v2.2.0**
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* Add `client_overrides` directory in configuration file. **You must configure it in your production.yaml**
|
||||
* Deprecate `/videos/abuse` endpoint.
|
||||
A new endpoint to report videos will be created in PeerTube 2.4 and will also allow to report accounts and comments (`/videos/abuse` will be removed in 3.0)
|
||||
* Renamed videos blacklist feature to videos blocks/blocklist
|
||||
|
||||
|
||||
### Documentation
|
||||
|
||||
* Add feeds routes to the openapi spec **@rigelk**
|
||||
* Add notifications routes to the openapi spec **@rigelk**
|
||||
* Add redundancy routes to the openapi spec **@rigelk**
|
||||
* Add plugins routes to the openapi spec **@rigelk**
|
||||
* Add examples, descriptions and missing filters for abuses routes in the openapi spec **@rigelk**
|
||||
* Update CentOS insutructions in dependencies.md [@cgarwood82 in 2904](https://github.com/Chocobozzz/PeerTube/pull/2904)
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Switched image processing library from native dependency `sharp` to pure JS implementation `jimp`. Admins don't have to compile `sharp` anymore and `jimp` is lighter
|
||||
* Provide specific engine boundaries for NodeJS and Yarn [@rigelk in 0c4bacb](https://github.com/Chocobozzz/PeerTube/commit/0c4bacbff53bc732f5a2677d62a6ead7752e2405)
|
||||
* Add ability to set `database.name` config option [@gramakri in #2898](https://github.com/Chocobozzz/PeerTube/pull/2898)
|
||||
|
||||
|
||||
### Docker
|
||||
|
||||
* Fix `POSTGRES` env variables in docker-compose ([@kimsible in #2538](https://github.com/Chocobozzz/PeerTube/pull/2538/files))
|
||||
* Fix OpenDKIM permissions in docker-compose setup [@kimsible in #2868](https://github.com/Chocobozzz/PeerTube/pull/2868)
|
||||
|
||||
|
||||
### Official PeerTube plugins
|
||||
|
||||
* [Auto block videos (alpha)](https://framagit.org/framasoft/peertube/official-plugins/-/tree/master/peertube-plugin-auto-block-videos)
|
||||
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Add ability to override client assets: logo - favicon - PWA icons - PWA manifest name and description [@kimsible in #2897](https://github.com/Chocobozzz/PeerTube/pull/2897)
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Add global search support (has to be explicitly enabled by admins)
|
||||
* :tada: Add ability for admins to display a banner on their instance
|
||||
* :tada: Support Vietnamese and Kabyle languages. Also re-establish Occitan language locale despite lack of support in Angular
|
||||
* Federation:
|
||||
* Make federation of unlisted videos an instance-level server preference [@Tak in #2802](https://github.com/Chocobozzz/PeerTube/pull/2802)
|
||||
* Sort ActivityPub video object files by resolution in descending order (fix issue with Pleroma)
|
||||
* Send complete video description in ActivityPub video objects
|
||||
* Moderation:
|
||||
* Add ability to bulk delete comments of an account
|
||||
* Add ability to mute accounts from video miniature
|
||||
* Improve report modal: [@rigelk in #2842](https://github.com/Chocobozzz/PeerTube/pull/2842)
|
||||
* Add ability to provide predefined reasons
|
||||
* Embed of the video in the modal
|
||||
* Add ability to set a **startAt** parameter
|
||||
* Accessibility:
|
||||
* Add lang attribute in languages list menu [@Pandoraaa in #2832](https://github.com/Chocobozzz/PeerTube/pull/2832)
|
||||
* Add aria-hidden to non-descriptive icons [@Pandoraaa in #2844](https://github.com/Chocobozzz/PeerTube/pull/2844)
|
||||
* Change focus color instead of opacity of video play button [@Pandoraaa in #2845](https://github.com/Chocobozzz/PeerTube/pull/2845)
|
||||
* Add explicit step and aria-current attribute in register form [@Pandoraaa in #2861](https://github.com/Chocobozzz/PeerTube/pull/2861)
|
||||
* Add scope tags and aria-labels in instance features table [@Pandoraaa in #2866](https://github.com/Chocobozzz/PeerTube/pull/2866)
|
||||
* Add keyboard navigation in video watch page buttons [@Pandoraaa in #2854 with @rigelk](https://github.com/Chocobozzz/PeerTube/pull/2854)
|
||||
* Replaced softies icons by feather icons **@rigelk**
|
||||
* Support player hotkeys when it is not focused
|
||||
* Improve video miniature grids to fill the space as much as possible **@rigelk**
|
||||
* Add video miniature dropdown in *Discover* page
|
||||
* Add channel information in *My videos* page
|
||||
* Add videos count per channel in *My channels* page
|
||||
* Improve channel deletion warning by explaining how many videos will be deleted
|
||||
* Simplify navigation within most admin menus **@rigelk**
|
||||
* Tracker:
|
||||
* Log IP requesting unknown infoHash [@JohnXLivingston in
|
||||
212e17a ](https://github.com/Chocobozzz/PeerTube/commit/212e17a1892162a69138c0b9c0a1bd88f95209a8)
|
||||
* Block IP of infohash spammers [db48de8](https://github.com/Chocobozzz/PeerTube/commit/db48de8597897e5024f8e9ed5acb1a8f40748169)
|
||||
* Allow limiting video-comments rss feeds to an account or video channel [@rigelk in 00494d6](https://github.com/Chocobozzz/PeerTube/commit/00494d6e2ae915741f47869dcd359d9728a0af91)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix default anonymous theme that should use instance default
|
||||
* Fix configuration form issue when auto follow index URL is empty
|
||||
* Fix URL import of some videos
|
||||
* Fix quota representation in profile settings **@rigelk**
|
||||
* Exclude 0p from auto webtorrent quality
|
||||
* Fix scroll on some pages with hash in URL
|
||||
* Fix search filter in video reports
|
||||
* Fix anonymous user nsfw policy
|
||||
* Don't cache embed HTML page resulting in broken embed after a PeerTube upgrade
|
||||
* Accessibility:
|
||||
* Add lang in document to match current locale [@rigelk in #2822](https://github.com/Chocobozzz/PeerTube/pull/2822)
|
||||
* Prevent duplicate id attributes for `.svg` [@rigelk in #2822](https://github.com/Chocobozzz/PeerTube/pull/2822)
|
||||
* Fix headings order or add missing ones [@Pandoraaa in #2871](https://github.com/Chocobozzz/PeerTube/pull/2871)
|
||||
* Remove uneccessary details to link titles [@Pandoraaa in #2879](https://github.com/Chocobozzz/PeerTube/pull/2879)
|
||||
* Fix accessibility action buttons and display on imports and followers list [@kimsible in #2986](https://github.com/Chocobozzz/PeerTube/pull/2986)
|
||||
* Fix iOS player with HLS-only videos
|
||||
* Fix action buttons selection mode styles [@kimsible in #2983](https://github.com/Chocobozzz/PeerTube/pull/2983)
|
||||
|
||||
|
||||
**Since v2.3.0-rc.1**
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix broken locales
|
||||
* Fix embed URL in share modal
|
||||
* Handle webp images from youtube-dl
|
||||
* Fix iOS player with HLS-only videos
|
||||
* Fix popup issues on video miniature click when searching on the global index
|
||||
* Fix username in password-reset email [@kimsible in #2960](https://github.com/Chocobozzz/PeerTube/pull/2960)
|
||||
* Fix maximized icon padding in markdown textarea [@kimsible in #2963](https://github.com/Chocobozzz/PeerTube/pull/2963)
|
||||
* Fix action buttons selection mode styles [@kimsible in #2983](https://github.com/Chocobozzz/PeerTube/pull/2983)
|
||||
* Fix user creation in admin [@kimsible in #2985](https://github.com/Chocobozzz/PeerTube/pull/2985)
|
||||
* Fix accessibility action buttons and display on imports and followers list [@kimsible in #2986](https://github.com/Chocobozzz/PeerTube/pull/2986)
|
||||
|
||||
|
||||
## v2.2.0
|
||||
|
||||
**Since v2.1.0**
|
||||
|
||||
## IMPORTANT NOTES
|
||||
|
||||
* **/!\ VERY IMPORTANT /!\\** We added a unique index on actors usernames to fix some federation bugs.
|
||||
Please check now if you have conflicts:
|
||||
* Go inside your database using `sudo -u postgres psql peertube_prod` and run `select "preferredUsername" from actor where "serverId" is null group by "preferredUsername" having count(*) > 1;`
|
||||
* If you have some results, it seems you have duplicate channels/accounts.
|
||||
For every entry, you'll have to change the preferredUsername of the entry you want (so they are unique).
|
||||
The updated actors could have some federations issues
|
||||
* Changed `auto_follow_index` setting configuration: you now have to use the complete URL in `index_url`.
|
||||
If you used the default one, you now need to use `https://instances.joinpeertube.org/api/v1/instances/hosts`.
|
||||
This way, you can also use a direct raw URL (Gitlab, Github, pastebin, etc.) using [a simple text format](https://framagit.org/framasoft/peertube/instances-peertube#peertube-auto-follow) and easily maintain small communities or instance recommendation lists.
|
||||
* PeerTube requires NodeJS v10 or v12
|
||||
|
||||
### CLI tools
|
||||
|
||||
* Add redundancy CLI: https://docs.joinpeertube.org/maintain/tools#peertube-redundancyjs
|
||||
* Add ability to pass remaining options to youtube-dl binary in peertube-import script ([@drzraf](https://github.com/drzraf))
|
||||
|
||||
### Docker
|
||||
|
||||
* **Important:** Fix HLS storage configuration ([@xcffl](https://github.com/xcffl)): https://github.com/Chocobozzz/PeerTube/blob/develop/support/docker/production/config/production.yaml#L48
|
||||
* Add DKIM support to Docker ([@kimsible](https://github.com/kimsible))
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Add nginx configuration to redirect videos to an S3 bucket ([@rigelk](https://github.com/rigelk)) and update of the [corresponding documentation](https://docs.joinpeertube.org/admin/remote-storage).
|
||||
|
||||
### Plugins/Themes/Embed API
|
||||
|
||||
* Add embed API (https://docs.joinpeertube.org/api/embed-player):
|
||||
* `playbackState` can be `ended`
|
||||
* `playbackStatusUpdate` has a `duration` field
|
||||
* `setCaption` and `getCaptions` methods
|
||||
* Add client plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* `action:login.init`
|
||||
* `action:video-watch.video-threads.loaded`
|
||||
* `action:video-watch.video-thread-replies.loaded` ([@ipbc-dev](https://github.com/ipbc-dev))
|
||||
* Add server plugin hooks (https://docs.joinpeertube.org/api/plugins):
|
||||
* `filter:api.video.pre-import-url.accept.result`
|
||||
* `filter:api.video.pre-import-torrent.accept.result`
|
||||
* `filter:api.video.post-import-url.accept.result`
|
||||
* `filter:api.video.post-import-torrent.accept.result`
|
||||
* Add server helpers:
|
||||
* `database.query` to do SQL queries
|
||||
* `videos.removeVideo`
|
||||
* `config.getWebserverUrl`
|
||||
* `moderation.blockServer`, `moderation.unblockServer`, `moderation.blockAccount`, `moderation.unblockAccount`, `moderation.blacklistVideo`, `moderation.unblacklistVideo`
|
||||
* Add client helpers:
|
||||
* `notifier` to notify users using the toast component ([@kimsible](https://github.com/kimsible))
|
||||
* `showModal` to show a modal ([@kimsible](https://github.com/kimsible))
|
||||
* `markdownRenderer` to render markdown ([@kimsible](https://github.com/kimsible))
|
||||
* Add ability for plugins to define custom routes
|
||||
* Add ability for plugins to remove video/playlist privacies
|
||||
* Add ability for plugins to support additional auth methods
|
||||
* Add `onSettingsChange` support
|
||||
|
||||
### Official PeerTube plugins
|
||||
|
||||
* [OpenID Connect](https://framagit.org/framasoft/peertube/official-plugins/-/tree/master/peertube-plugin-auth-openid-connect)
|
||||
* [LDAP](https://framagit.org/framasoft/peertube/official-plugins/-/tree/master/peertube-plugin-auth-ldap)
|
||||
* [SAML2](https://framagit.org/framasoft/peertube/official-plugins/-/tree/master/peertube-plugin-auth-saml2)
|
||||
* [Auto mute accounts/instances (alpha)](https://framagit.org/framasoft/peertube/official-plugins/-/tree/master/peertube-plugin-auto-mute)
|
||||
|
||||
## Features
|
||||
|
||||
* :tada: Add HTML support in PeerTube emails, improve text-only version ([@rigelk](https://github.com/rigelk))
|
||||
* :tada: Add settings panel for anonymous users so they can change NSFW/P2P/autoplay/displayed videos policy ([@rigelk](https://github.com/rigelk))
|
||||
* :tada: Improve redundancy management:
|
||||
* Add quick action on video miniature to mirror a specific video using the web interface
|
||||
* Add admin dashboard to list remote and local redundancies
|
||||
* Add ability for admins to define remote redundancies policy (accept/reject)
|
||||
* :tada: Many responsive & UI improvements:
|
||||
* Add maximized mode to markdown textarea ([@kimsible](https://github.com/kimsible))
|
||||
* Detect and prevent sub menu overflow on small screens using a dropdown or a modal ([@rigelk](https://github.com/rigelk))
|
||||
* Use a typeahead component for the search bar ([@rigelk](https://github.com/rigelk))
|
||||
* Use a modal instead of a dropdown menu in small/mobile views ([@kimsible](https://github.com/kimsible))
|
||||
* Improve display of accounts and channel pages on small and medium screens ([@rigelk](https://github.com/rigelk))
|
||||
* Improve forms layout ([@rigelk](https://github.com/rigelk))
|
||||
* Replace helpers icons with descriptions in admin configuration ([@rigelk](https://github.com/rigelk))
|
||||
* Improve tables on mobile devices to prevent layout breakage ([@kimsible](https://github.com/kimsible))
|
||||
* Fix multiple broken views on small screens ([@kimsible](https://github.com/kimsible))
|
||||
* Make video add tabs scrollable on small devices ([@kimsible](https://github.com/kimsible))
|
||||
* Better use of space and icons in the plugin administration interface ([@rigelk](https://github.com/rigelk))
|
||||
* Restyle toast notifications to tone down colors ([@rigelk](https://github.com/rigelk))
|
||||
* Add/move links at the bottom of the left menu ([@rigelk](https://github.com/rigelk))
|
||||
* Improve avatar upload UI ([@rigelk](https://github.com/rigelk))
|
||||
* Use progress bars for quota used in my account ([@rigelk](https://github.com/rigelk))
|
||||
* Add variable pagination size to all tables ([@rigelk](https://github.com/rigelk))
|
||||
* Add empty states to all tables ([@rigelk](https://github.com/rigelk))
|
||||
* Add generic text filter to all admin tables ([@rigelk](https://github.com/rigelk))
|
||||
* Fix `z-index` for tooltips, modals and their button to prevent overlaps ([@rigelk](https://github.com/rigelk))
|
||||
* And many others!
|
||||
* :tada: Improve video abuses admin table ([@rigelk](https://github.com/rigelk)):
|
||||
* Add in-text specific search filters
|
||||
* Reports can be linked to directly
|
||||
* Rich reporter field
|
||||
* Add video thumbnail with abuse count for the video and position of the abuse in that list
|
||||
* Expand row to see more information about the video, the reporter and the reportee
|
||||
* Add many actions (on the video, on the reporter)
|
||||
* Don't remove a report when a video is deleted
|
||||
* Add information on a video abuse within its notification email ([@rigelk](https://github.com/rigelk))
|
||||
* Add ability for video owners to delete comments
|
||||
* Add filter inputs for blacklisted videos and muted accounts/servers ([@rigelk](https://github.com/rigelk))
|
||||
* Video import improvements:
|
||||
* Support subtitles when importing a video ([@kimsible](https://github.com/kimsible))
|
||||
* Generate thumbnail/preview from URL and inject them in the video edit form ([@kimsible](https://github.com/kimsible))
|
||||
* Support `licence` and `language` fields
|
||||
* Support audio file imports
|
||||
* Support WMA and WAV audio files upload
|
||||
* Support drag and drop for video upload/torrent import ([@rigelk](https://github.com/rigelk))
|
||||
* Add video file metadata to download modal ([@rigelk](https://github.com/rigelk))
|
||||
* Add views stats for channels ([@rigelk](https://github.com/rigelk))
|
||||
* Add more information about the user in the edit form ([@rigelk](https://github.com/rigelk))
|
||||
* Server optimizations:
|
||||
* Add cache for some immutable models
|
||||
* Don't refresh videos when processing a view
|
||||
* Optimize view endpoint
|
||||
* Completely rewritten SQL query to list videos
|
||||
* Optimize SQL request when broadcasting an activity
|
||||
* Support infinite scrolling in the discover page
|
||||
* Add ability for admins to create a user without a password. PeerTube will send a reset password link to the user ([@JohnXLivingston](https://github.com/JohnXLivingston))
|
||||
* Improve embed title background opacity
|
||||
* Add origin instance URL in watch page
|
||||
* Clearer description of advanced search options
|
||||
* Always copy full actor handle in video channels view ([@rigelk](https://github.com/rigelk))
|
||||
* Add `sendmail` support ([@immae](https://github.com/immae)) to `smtp` configuration
|
||||
* Support `rel="me"` links in markdown
|
||||
* Use `originallyPublishedAt` from body on import if it exists
|
||||
* Sort outbox by *DESC createdAt* order
|
||||
* Increase video comment max length limit
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Update default user theme to `instance-default` (Jorge Silva)
|
||||
* Fix user dropdown menu with long texts ([@rigelk](https://github.com/rigelk))
|
||||
* Fix load more comments on infinite scroll ([@ipbc-dev](https://github.com/ipbc-dev))
|
||||
* Fix CSP issue on WebFinger service ([@ZanyMonk](https://github.com/ZanyMonk))
|
||||
* Fix federation with Pleroma
|
||||
* Fix Safari and iOS video play
|
||||
* Fix broken HLS player on old Edge
|
||||
* Fix running HLS transcoding on existing HLS video
|
||||
* Fix user role edition
|
||||
* Fix video duration display
|
||||
* Fix error when adding a video in a playlist that does not have a thumbnail
|
||||
* Fix internal video display in playlists
|
||||
* Fix add comment in threads with deleted comments
|
||||
* Fix video codec in HLS playlist resulting in a broken video
|
||||
* Fix torrent import on Windows
|
||||
* Respect browser autoplay policy: don't autoplay videos in mute mode
|
||||
* Fix playlist videos autoplay/next play ([@rigelk](https://github.com/rigelk))
|
||||
* Fix admin table column invalid sort error
|
||||
* Fix outbox crawling max page/timeout (when an admin follows an instance with many videos)
|
||||
* Add CORS to ActivityPub routes
|
||||
* Fix my video imports table display when a video gets deleted ([@rigelk](https://github.com/rigelk))
|
||||
* Fix peertube/import scripts `comment-enabled`, `wait-transcoding` and `download-enabled` options
|
||||
* Don't leak unlisted videos in comments feed
|
||||
* Do not display deleted comments or muted accounts/instances in RSS feed
|
||||
* Fix HLS audio only transcoding
|
||||
* Fix playlist creation/update with a long description
|
||||
* Fix links of same instance in video description
|
||||
* Fix REPL script
|
||||
* Fix broken client when cookies are disabled
|
||||
* Fix upload button color in dark mode
|
||||
* Explicit theme colors for inputs and textarea
|
||||
* Fix input/textarea themes
|
||||
* Fix action button icons theme
|
||||
* Fix grey color theme
|
||||
* Fix regression scrollbar bgcolor mdtextarea maximized-mode ([@kimsible](https://github.com/kimsible))
|
||||
|
||||
|
||||
**since v2.2.0-rc.1**
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix broken migration introduced in 2.2.0-rc.1 in docker
|
||||
* Fix sort icons in tables
|
||||
* Fix action button overflow in tables
|
||||
* Fix broken client when cookies are disabled
|
||||
* Fix upload button color in dark mode
|
||||
* Explicit theme colors for inputs and textarea
|
||||
* Fix input/textarea themes
|
||||
* Fix dropdown menu overflow
|
||||
* Fix notifications with dark theme
|
||||
* Fix action button icons theme
|
||||
* Fix grey color theme
|
||||
* Fix regression scrollbar bgcolor mdtextarea maximized-mode ([@kimsible](https://github.com/kimsible))
|
||||
* Fix broken emails
|
||||
|
||||
|
||||
|
||||
## v2.1.1
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix youtube-dl in docker image
|
||||
* Fix playlist creation/update
|
||||
* Fix fetch of instance config in client
|
||||
* Manual approves followers only for the instance (and not accounts/channels)
|
||||
* Fix avatar update
|
||||
* Fix CSP for embeds
|
||||
* Fix scroll of the menu on mobile
|
||||
* Fix CPU usage of PostgreSQL
|
||||
* Fix embed for iOS
|
||||
|
||||
|
||||
## v2.1.0
|
||||
|
||||
**Since v2.0.0**
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* **/!\ VERY IMPORTANT /!\\** You need to execute manually a script (can be executed after your upgrade, while your PeerTube instance is running) to create HLS video torrents:
|
||||
* `cd /var/www/peertube/peertube-latest && sudo -u peertube NODE_CONFIG_DIR=/var/www/peertube/config NODE_ENV=production node dist/scripts/migrations/peertube-2.1.js`
|
||||
* **/!\ VERY IMPORTANT /!\\** In the next PeerTube release (v2.2.0), we'll add a unique index on actors usernames to fix some federation bugs.
|
||||
Please check now if you have conflicts using:
|
||||
* Go inside your database using `sudo -u postgres psql peertube_prod` and run `select "preferredUsername" from actor where "serverId" is null group by "preferredUsername" having count(*) > 1;`
|
||||
* If you have some results, it seems you have duplicate channels/accounts.
|
||||
For every entry, you'll have to change the preferredUsername of the entry you want (so they are unique).
|
||||
The updated actors could have some federations issues
|
||||
* We now use Buster for the docker image, so the image name changed:
|
||||
* `production-stretch` becomes `production-buster`
|
||||
* `v2.x.x-stretch` becomes `v2.x.x-buster`
|
||||
* Users cannot create more than 20 channels now to avoid UX and actor name squatting issues
|
||||
* We added a warning if the `videos` directory is the same than the `redundancy` one in your configuration file: it can create some bugs
|
||||
|
||||
### Documentation
|
||||
|
||||
We added some sections in the documentation website:
|
||||
|
||||
* S3 remote storage: https://docs.joinpeertube.org/admin/remote-storage
|
||||
* Instances redundancy: https://docs.joinpeertube.org/admin/following-instances
|
||||
* Moderate your instance: https://docs.joinpeertube.org/admin/moderation
|
||||
* Customize your instance (install plugins & themes): https://docs.joinpeertube.org/admin/customize-instance
|
||||
* PeerTube logs (standard log/audit log): https://docs.joinpeertube.org/admin/logs
|
||||
* Mute accounts/instances: https://docs.joinpeertube.org/use/mute
|
||||
* Controlled player embed API: https://docs.joinpeertube.org/api/embed-player
|
||||
|
||||
### Docker
|
||||
|
||||
* Sticking to one env-var management system ([@Leopere](https://github.com/Leopere)) (See https://github.com/Chocobozzz/PeerTube/pull/2247)
|
||||
* Simplify Dockerfile and slim Docker image ([@Nutomic](https://github.com/nutomic))
|
||||
* Add HLS support in Docker container by using the latest Debian stable (Buster) image
|
||||
|
||||
### Plugins/Themes API
|
||||
|
||||
* Add checkbox and textarea as possible input types for settings ([@rigelk](https://github.com/rigelk))
|
||||
* Add `isLoggedIn` helper to client plugins ([@rigelk](https://github.com/rigelk))
|
||||
* Add client plugin hooks:
|
||||
* `action:video-watch.player.loaded` with player instance
|
||||
* `action:video-watch.video.loaded` with a videojs instance
|
||||
* `action:signup.register.init` ([@rigelk](https://github.com/rigelk))
|
||||
* `filter:api.signup.registration.create.params` ([@rigelk](https://github.com/rigelk))
|
||||
* `filter:internal.video-watch.player.build-options.params`
|
||||
* `filter:internal.video-watch.player.build-options.result`
|
||||
* `filter:internal.common.svg-icons.get-content.params`
|
||||
* `filter:internal.common.svg-icons.get-content.result`
|
||||
* Add server plugins hooks:
|
||||
* `action:api.user.blocked`
|
||||
* `action:api.user.unblocked`
|
||||
* `action:api.user.registered`
|
||||
* `action:api.user.created`
|
||||
* `action:api.user.deleted`
|
||||
* `action:api.user.updated`
|
||||
* `action:api.user.oauth2-got-token`
|
||||
* Accept `.` `_` and `0-9` characters in plugin names
|
||||
|
||||
### Maintenance
|
||||
|
||||
* PeerTube moved translations from Zanata to Weblate. Here is the new translations website URL: https://weblate.framasoft.org/projects/peertube/
|
||||
* We now provide a JavaScript library to control a PeerTube embed: https://www.npmjs.com/package/@peertube/embed-api
|
||||
* Add ability to generate HLS videos using `create-transcoding-job` script (see [the documentation](https://docs.joinpeertube.org/maintain/tools#create-transcoding-jobjs))
|
||||
* Update nginx template: (you need to [update manually](https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/production.md#nginx))
|
||||
* Add streaming playlists endpoint
|
||||
* Add `client_body_temp_path` hint
|
||||
* Relax TLS/SSL ciphers hardening to allow Android 4.4.2 to use the PeerTube instance API
|
||||
* Add `maxFileSize`, `maxFiles` and `anonymizeIP` log options in configuration file
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Add *internal* video privacy mode. *Internal* videos are only available to other logged in users of your instance, and are not federated
|
||||
* :tada: Add hyperlink video timestamps in comments & video descriptions ([@Lesterpig](https://github.com/lesterpig) & [@rigelk](https://github.com/rigelk))
|
||||
* :tada: Comments improvements:
|
||||
* Support basic markdown
|
||||
* Soft delete video comments instead of destroying them ([@alcalyn](https://github.com/alcalyn))
|
||||
* Add commentator name alongside fid for video comments ([@rigelk](https://github.com/rigelk))
|
||||
* Add a cancel button in comment form ([@rigelk](https://github.com/rigelk))
|
||||
* Show number of comments under a video in watch page ([@rigelk](https://github.com/rigelk))
|
||||
* Add user moderation dropdown ([@rigelk](https://github.com/rigelk))
|
||||
* Add ability to sort comments by *total replies* or *created date* ([@rigelk](https://github.com/rigelk))
|
||||
* Add *total replies from video author* indicator ([@rigelk](https://github.com/rigelk))
|
||||
* Comment name emphasis for video author ([@rigelk](https://github.com/rigelk))
|
||||
* Add "Watch later" button in video miniature overlay ([@rigelk](https://github.com/rigelk))
|
||||
* Add ability to transcode videos in an audio only video container ([@Yetangitu](https://github.com/Yetangitu))
|
||||
* Add playlist search input in *add to playlist* dropdown ([@rigelk](https://github.com/rigelk))
|
||||
* Add search bars for a user's videos and playlists ([@rigelk](https://github.com/rigelk))
|
||||
* Support playlists in share modal
|
||||
* Better UI for a better world:
|
||||
* Add play/pause bezels to the video player ([@rigelk](https://github.com/rigelk))
|
||||
* Use icons instead of buttons in watch page (like/dislike, support...) ([@rigelk](https://github.com/rigelk))
|
||||
* Improve *PeerTube* section in About page and add links to the documentation
|
||||
* Improve comment tree in Watch page
|
||||
* Improve dropdown box shadow ([@rigelk](https://github.com/rigelk))
|
||||
* Add channel avatar to watch view ([@rigelk](https://github.com/rigelk))
|
||||
* Improve likes-dislikes bar usability
|
||||
* Alter titles section header style ([@rigelk](https://github.com/rigelk))
|
||||
* Enhance jobs list display on smaller screens ([@alcalyn](https://github.com/alcalyn))
|
||||
* Add a button in the videos from subscriptions page to manage subscriptions ([@rigelk](https://github.com/rigelk))
|
||||
* Add duration to video attributes in watch view ([@rigelk](https://github.com/rigelk))
|
||||
* Add a message in the login form when signup is disabled for people that are looking for an account ([@rigelk](https://github.com/rigelk))
|
||||
* Add "Manage" button in owned account and channels pages ([@rigelk](https://github.com/rigelk))
|
||||
* Improve password input accessibility ([@rigelk](https://github.com/rigelk))
|
||||
* Add descriptions in moderation dropdown ([@rigelk](https://github.com/rigelk))
|
||||
* Performances improvements:
|
||||
* Lazy load categories, licences, languages and video/playlist privacies in the client
|
||||
* Only update remote actor avatar if the filename changed
|
||||
* Optimize transcoding by using the lowest resolution as input file
|
||||
* Speedup embed first paint
|
||||
* Optimize videos list SQL query
|
||||
* Optimize local videos list SQL query
|
||||
* Cache `peertube` instance actor SQL result
|
||||
* Cache HLS/WebTorrent InfoHash SQL result
|
||||
* Optimize notification endpoint on specific cases
|
||||
* Optimize "list my playlists" SQL query
|
||||
* Improve search filters: ([@rigelk](https://github.com/rigelk))
|
||||
* Add ability to sort results
|
||||
* Improve tags filter inputs
|
||||
* Add a button to reset filters
|
||||
* Improve autoplay: ([@rigelk](https://github.com/rigelk))
|
||||
* Autoplay next video switch for both user and visitors
|
||||
* Add *up next* screen on autoplay
|
||||
* Autoplay next video support for playlists
|
||||
* Add *next* video button to the player
|
||||
* Add loop setting when watching a playlist
|
||||
* Add option to download subtitles in download modal ([@rigelk](https://github.com/rigelk))
|
||||
* Add a button in account page to follow all account channels ([@rigelk](https://github.com/rigelk))
|
||||
* Add ability to search a video directly by its UUID
|
||||
* Case insensitive tags search
|
||||
* Add ability to disable WebTorrent (and only enable HLS) (**experimental and breaks federation with PeerTube instances < 2.1**)
|
||||
* Don't seed if the client is on a cellular network in the HLS player
|
||||
* Load HLS player in embed by default if enabled
|
||||
* Admin panels:
|
||||
* Add ability to sort by *state*, *score* and *redundancy allowed* columns in following/followers admin table
|
||||
* Add ability to filter per job type in admin
|
||||
* Add *Audit logs* section in admin Logs panel
|
||||
* Improve Media-RSS support ([@rigelk](https://github.com/rigelk))
|
||||
* Explicit the tag limit in video form ([@bikepunk](https://github.com/bikepunk))
|
||||
* Add a warning when uploading videos using root
|
||||
* Clearer video quota label in user settings
|
||||
* Pause the video when the user opens a modal
|
||||
* Handle basic HTML in account descriptions
|
||||
* Support `m4v` videos
|
||||
* Improve 4k resolution bitrate
|
||||
* Add missing hotkeys documentation in the watch page
|
||||
* Add a button to copy the channel handle ([@rigelk](https://github.com/rigelk))
|
||||
* Add server config to the nodeinfo metadata ([@rigelk](https://github.com/rigelk))
|
||||
* Improve notification popup interactivity ([@rigelk](https://github.com/rigelk))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Don't notify if the account in on a muted instance
|
||||
* Don't leak other notified addresses in notification emails
|
||||
* Allow the embed iframe to open links
|
||||
* Add missing button roles for the language chooser and keyboard shortcut menu items [@MarcoZehe](https://github.com/MarcoZehe)
|
||||
* Fix overflow when creating a channel
|
||||
* Fix "copy magnet URI" in player
|
||||
* Fix text overflow in menu
|
||||
* Fix player focus
|
||||
* Only display accepted followers/followings instances in about page
|
||||
* Fix brackets truncation in video description
|
||||
* Fix channel playlist miniatures overflow
|
||||
* Fix background color on some screens
|
||||
* Fix captions upload issue depending on the caption name
|
||||
* Fix file download when the video is private
|
||||
* Fix dropdown on video miniature for unlogged users
|
||||
* Fix video support field in update form
|
||||
* Fix video import having a long thumbnail url (Facebook for example)
|
||||
* Add correct HTTP status on not found video
|
||||
* Fix bug on login when username has a special character (`_` for example)
|
||||
* Fix plugin unregistration that did not remove properly its hooks ([@JohnXLivingston](https://github.com/JohnXLivingston))
|
||||
* Fix wrong audio only resolution label for hls
|
||||
* Fix AP icon URL for imported videos
|
||||
* Fix octet stream fallback for video ext
|
||||
|
||||
**since v2.1.0-rc.1**
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix wrong audio only resolution label for hls
|
||||
* Fix AP icon URL for imported videos
|
||||
* Fix embed on mastodon
|
||||
* Fix octet stream fallback for video ext
|
||||
|
||||
|
||||
## v2.0.0
|
||||
|
||||
**Since v1.4.1**
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* Removed old JSON LD signature implementation. There will be some **federation incompatibilities** with forwarded activities sent
|
||||
by PeerTube instances < v2.0.0
|
||||
* Replaced configuration key `email.object` with `email.subject`: https://github.com/Chocobozzz/PeerTube/commit/916937d7daf386e4e2d37b2ca22db07b644b02df
|
||||
|
||||
### Plugins/Themes API
|
||||
|
||||
* Add plugin hook on registration `filter:api.user.signup.allowed.result`
|
||||
|
||||
### Docker
|
||||
|
||||
* Fix traefik version docker compose (**you need to update your `docker-compose.yml` file**: https://github.com/Chocobozzz/PeerTube/commit/f1b38883922fd59b36f093e44a5091e090d20862)
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Add `--tmpdir`, `--first`, `--last` and `--verbose [level]` parameters to peertube-import-videos script ([@Yetangitu](https://github.com/Yetangitu))
|
||||
* Improve REST API documentation ([@frankstrater](https://github.com/frankstrater))
|
||||
* Improve plugin management documentation
|
||||
|
||||
### Features
|
||||
|
||||
* Better instance admin responsibility:
|
||||
* Add ability to set more information about your instance. This will be used in the future on https://joinpeertube.org to help people find
|
||||
the appropriate PeerTube instance on which they can register:
|
||||
* Main **Categories**
|
||||
* **Languages** you/your moderators speak
|
||||
* **Code of Conduct**
|
||||
* **Moderation information** (who moderates your instance, NSFW policy etc)
|
||||
* Who is **behind the instance** (a single person? non-profit?)
|
||||
* Why did the admin **create this instance**
|
||||
* How long the admin plan to **maintain the instance**
|
||||
* How the administrator **will finance** the PeerTube server
|
||||
* **Hardware** information
|
||||
* Add these information in the about page and in the signup page
|
||||
* Add a welcome modal at first admin login with some explanations of PeerTube and some useful links
|
||||
* Add warning modal when administrators enable or enabled signup but did not fill some important instance information
|
||||
(for now the instance **name**, **terms**, **administrator** and **maintenance lifetime** information)
|
||||
* Add ability to automatically follow back other instances
|
||||
* Add ability to automatically follow [the public registry](https://instances.joinpeertube.org/) instances
|
||||
* Add *Most liked videos* page ([@alcalyn](https://github.com/alcalyn))
|
||||
* Add a drag&drop delay on playlist videos to allow user scroll on small screens ([@alcalyn](https://github.com/alcalyn))
|
||||
* Allow to toggle video publication date to display absolute date ([@alcalyn](https://github.com/alcalyn))
|
||||
* Add statistics in about page ([@alcalyn](https://github.com/alcalyn))
|
||||
* Improve the *feature table* in about page
|
||||
* Add contributors in about page
|
||||
* Clearer warning of IP address leaking on embedded videos ([@robinkooli](https://github.com/robinkooli))
|
||||
* Case insensitive search on video tags
|
||||
* Add video name in "video publish notification"
|
||||
* Add ability to autoplay next recommended video (opt in) ([@LoveIsGrief](https://github.com/LoveIsGrief))
|
||||
* Add link behind the subscribe via RSS button ([@frankstrater](https://github.com/frankstrater))
|
||||
* Support text/plain caption files
|
||||
* Speedup theme injection
|
||||
* Add ability to enable HLS in the admin panel
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix audio upload
|
||||
* Handle video reports from mastodon
|
||||
* Fix videos redundancy exceeding the limit
|
||||
* Fix search when user defined video languages in their preferences
|
||||
* Don't quick transcode with the wrong pixel format
|
||||
* Hide videos abuses of muted accounts
|
||||
* Fix account avatar widths
|
||||
* Fix default `commentsEnabled` and `downloadEnabled` values on video upload/import ([@frankstrater](https://github.com/frankstrater))
|
||||
* Disable auto complete of email field when editing another user information in admin panel ([@Knackie](https://github.com/Knackie))
|
||||
* Fix federation issues with some actors (that have long descriptions, or missing optional AP fields)
|
||||
* Remove down redundancy endpoints in HLS player
|
||||
* Fix user notifications with multiple opened tabs
|
||||
* Replace "overview" by "discover" in webpage titles
|
||||
* Clearer IP debug message in admin panel
|
||||
* Fix checkbox styles when using a theme
|
||||
* Don't redirect on verify account page after login
|
||||
* Fix player captions menu after choosing a subtitle
|
||||
* Fix CLI scripts with URLs ending with a `/`
|
||||
* Fix `--since` and `--until` timezone in `peertube-import-videos` script
|
||||
* Avoid circular error in logger
|
||||
* Fix start/stop of first element when loading a playlist
|
||||
|
||||
***Since v2.0.0-rc.1***
|
||||
|
||||
### Features
|
||||
|
||||
* Improve welcome/warning modals
|
||||
* Add ability to enable HLS in the admin panel
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix auto index follow
|
||||
* Fix CLI scripts with URLs ending with a `/`
|
||||
* Fix `--since` and `--until` timezone in `peertube-import-videos` script ([@fflorent](https://github.com/fflorent))
|
||||
* Avoid circular error in logger
|
||||
* Fix start/stop of first element when loading a playlist
|
||||
|
||||
|
||||
## v1.4.1
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix too fast redundancy eviction
|
||||
* Fix broken auto blacklist page
|
||||
* Rename signup steps
|
||||
* Fix menu x overflow
|
||||
|
||||
|
||||
## v1.4.0
|
||||
|
||||
**Since v1.3.1**
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* **Important:** Add `plugins` directory in configuration file. **You should configure it in your production.yaml**
|
||||
* **Important:** Deprecate NodeJS 8 (support ends on [December 2019](https://github.com/nodejs/Release#release-schedule)). Please upgrade to NodeJS 10.
|
||||
* **Important:** Updated nginx template (you need to [update manually](https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/production.md#nginx))
|
||||
* Fix long server responses on dual stack servers: https://github.com/Chocobozzz/PeerTube/commit/fd2ddcae8ff4eb10bf7168ac3c8801f06b37627f
|
||||
* Improve images HTTP cache: https://github.com/Chocobozzz/PeerTube/commit/c928e1364fbdff87f27fd982710b95426a250491
|
||||
* **Important:** With the new theme system, we removed the dark mode button. Your administrator has to install [the dark theme](https://framagit.org/framasoft/peertube/official-plugins/tree/master/peertube-theme-dark)
|
||||
from their admin panel, and then users can choose this theme in their settings
|
||||
* Changed the playlist REST API to fix various issues. See https://github.com/Chocobozzz/PeerTube/pull/1998 for more information
|
||||
* Removed magnet URI support in download modal since most of the BitTorrent clients do not understand the `xs` parameter
|
||||
* Renamed `Overview` page to `Discover`
|
||||
|
||||
### Security
|
||||
|
||||
* Moderators can only create and update regular users (thanks GGC-Project)
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Create a dedicated `package.json` for CLI tools to reduce server dependencies size
|
||||
* Add ability to set root password by environment at first start ([@darnuria](https://github.com/darnuria))
|
||||
* Removed unused `uuid` actor field (we already have a unique identifier that is the `preferredUsername`)
|
||||
* Add ability to disable PeerTube log rotation ([@NassimBounouas](https://github.com/NassimBounouas))
|
||||
* Speedup font display ([@BO41](https://github.com/BO41))
|
||||
* Improve static files HTTP cache
|
||||
* Add `--since` and `--until` parameters to import videos script to easily sync external channels ([@fflorent](https://github.com/fflorent))
|
||||
* Optimize `/watch/:uuid` endpoint
|
||||
* Optimize Sequelize (SQL ORM) queries generation (consumes less CPU)
|
||||
* Prune script is faster and can prune avatar files
|
||||
|
||||
### Features
|
||||
|
||||
* :tada: Support Finnish, Greek and Scottish Gaelic languages
|
||||
* :tada: Add basic plugins and themes support (**beta**): https://docs.joinpeertube.org/contribute/plugins
|
||||
* Install plugins or themes from the administration panel
|
||||
* Choose a default theme for your instance
|
||||
* Users can choose the theme they want among the list of themes their administrator installed
|
||||
* :tada: Add ability to upload audio files: PeerTube will merge the audio file and the thumbnail to create a video
|
||||
* Multi step registration:
|
||||
* Add ability for new users to create their default channel
|
||||
* Guess the account username/channel username according to their display name
|
||||
* Add explanations about what the purpose of a username/channel name is, and what a channel is
|
||||
* Improve account video channels page:
|
||||
* Set it as the default page for the account page in order to avoid confusion between the account homepage and the video channel homepage
|
||||
* Display channels in rows with some of their videos
|
||||
* Support more URL parameters in embeds: `muted`, `loop`, `peertubeLink`
|
||||
* Redesign share modal and add customizations:
|
||||
* Start/stop at a specific timestamp
|
||||
* Automatically play/mute/loop the video
|
||||
* Set a specific subtitle by default
|
||||
* Group subscriptions and recently added videos in chronological order
|
||||
* Add ability for users to change their email address
|
||||
* Add ability to update the support field of all channel videos when we update the channel support field
|
||||
* Add a language filter in user preferences to display only videos in specific languages
|
||||
* Add instance follows list in a dedicated tab in the "About" page
|
||||
* Add ability to set to private a public/unlisted video or video playlist
|
||||
* Transcode in the `tmp` directory for s3fs compatibility ([@libertysoft3](https://github.com/libertysoft3))
|
||||
* Add a button to copy account username ([@NassimBounouas](https://github.com/NassimBounouas))
|
||||
* Redirect to "Local videos" page when going to the `peertube` account page
|
||||
* Rearrange search filter options ([@realityfabric](https://github.com/realityfabric))
|
||||
* Close modal after clicking on download ([@LeoMouyna](https://github.com/LeoMouyna))
|
||||
* Add ability for admins to customize emails object prefix and body signature ([@yohanboniface](https://github.com/yohanboniface))
|
||||
* Support 4K transcoding
|
||||
* Add link of the follower profile in administration ([@NassimBounouas](https://github.com/NassimBounouas))
|
||||
* Add subject field in contact form ([@NassimBounouas](https://github.com/NassimBounouas))
|
||||
* Add rate limit to registration and API endpoints
|
||||
* Add "video quota used" sortable column in user admin list ([@darnuria](https://github.com/darnuria))
|
||||
* Automatically update the playlist thumbnail according to the video at the first position (if the user did not set a specific thumbnail)
|
||||
* Automatically remove dead followings
|
||||
* Federate comment deletion if the comment was deleted by the video owner
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix transcoding information in features table ([LiPek](https://github.com/LiPeK))
|
||||
* Fix tools auth with remote instances
|
||||
* Fix various issues in upload/import scripts
|
||||
* Fix redundancy exceeded quota
|
||||
* Fix login with email ([@NassimBounouas](https://github.com/NassimBounouas))
|
||||
* Fix quota display in features table
|
||||
* Fix transcoding help placement
|
||||
* Fix invisible videos in playlists
|
||||
* Fix HLS transcoding in lower resolutions
|
||||
* Fix various federation issues
|
||||
* Fix mute badge labels
|
||||
* Fix broken follow notification when the actor is deleted
|
||||
* Fix overflow and playlist block width in the watch page
|
||||
* Fix search results overflow on mobile
|
||||
* Fix infinite scroll on big screens
|
||||
* Fix start time on some HLS videos
|
||||
* Fix socket notification with multiple user tabs
|
||||
* Fix redundancy if the instance has already the file on disk
|
||||
* Fix image and plugin CSP
|
||||
* Fix video rows overflow
|
||||
* Dismiss modals on pop state
|
||||
* Go back when cancel NSFW modal
|
||||
|
||||
|
||||
***Since v1.4.0-rc.1***
|
||||
|
||||
### Features
|
||||
|
||||
* Add Finnish language support
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix broken front end on Firefox ESR (60)
|
||||
* Fix prune storage script when using a same directory for multiple storage keys
|
||||
* Relax plugin `package.json` validation
|
||||
* Replace "overview" by "discover" in client titles
|
||||
* Change configuration: `email.object` becomes `email.subject`
|
||||
* Fix user creation by moderators
|
||||
* Fix video playlist element removal
|
||||
* Fix plugin card background color with dark theme
|
||||
* Fix lazy static route with unknown avatars (404 instead of 500)
|
||||
* Fix socket notification with multiple user tabs
|
||||
* Fix redundancy if the instance has already the file on disk
|
||||
* Fix image and plugin CSP
|
||||
* Fix video rows overflow
|
||||
* Dismiss modals on pop state
|
||||
* Go back when cancel NSFW modal
|
||||
|
||||
|
||||
## v1.3.1
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix Mastodon remote interactions
|
||||
* Fix missing video download button
|
||||
* Fix error in video upload/update form when scheduling publication
|
||||
* Fix black theme on some pages
|
||||
* Fix video import if auto blacklist is enabled
|
||||
|
||||
|
||||
## v1.3.0
|
||||
|
||||
**Since v1.2.0**
|
||||
|
||||
### IMPORTANT NOTES
|
||||
|
||||
* **nginx** Remove `text/html` from `gzip_types`: https://github.com/Chocobozzz/PeerTube/commit/7eeb6a0ba4028d0e20847b846332dd0b7747c7f8 [@bnjbvr](https://github.com/bnjbvr)
|
||||
* Add `streaming_playlists` directory in configuration file. **You should configure it in your production.yaml**
|
||||
* CSP configuration changed: it's now in a [dedicated section](https://github.com/Chocobozzz/PeerTube/blob/develop/config/production.yaml.example#L110)
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Add GitPod support ([@jankeromnes](https://github.com/jankeromnes)) that could help people to contribute on PeerTube: https://github.com/Chocobozzz/PeerTube/blob/develop/.github/CONTRIBUTING.md#online-development
|
||||
* Add reminder to restart PeerTube in upgrade script ([@ldidry](https://github.com/ldidry))
|
||||
* Add argument to dockerfile to pass options to npm run build ([@NaPs](https://github.com/NaPs))
|
||||
* Add `NOCLIENT` env support to only install server dependencies. Example: `NOCLIENT=true yarn install --pure-lockfile` ([@rigelk](https://github.com/rigelk))
|
||||
|
||||
### Docker
|
||||
|
||||
* **Important:**: Add host network mode to the reverse proxy section (without this, it could break videos views and P2P: https://github.com/Chocobozzz/PeerTube/issues/1643#issuecomment-464789666)
|
||||
* **Important:**: Add a network section to [docker-compose.yml template](https://github.com/Chocobozzz/PeerTube/blob/develop/support/docker/production/docker-compose.yml)
|
||||
and update your [.env](https://github.com/Chocobozzz/PeerTube/blob/develop/support/docker/production/.env#L8) to fix IP forwarding issue ([@Nutomic](https://github.com/nutomic))
|
||||
* Fix SMTP default configuration ([@Nutomic](https://github.com/nutomic))
|
||||
|
||||
### Features
|
||||
|
||||
* Add video playlist support
|
||||
* A user has a default `Watch-later` playlist
|
||||
* A user can create private, unlisted or public playlists
|
||||
* An element in this playlist can start or stop at specific timestamps (you can create some kind of zapping for example)
|
||||
* The difference with a channel is that you cannot subscribe to a playlist, but you can add videos from any other user in your playlist.
|
||||
It's useful to organize your videos, or create a playlist of videos you like and share the link on the web etc
|
||||
* Add quarantine videos (auto blacklist videos on upload) feature :tada: ([@joshmorel](https://github.com/joshmorel))
|
||||
* Add Japanese & Nederlands & Português (Portugal) support
|
||||
* Add experimental HLS support
|
||||
* Better playback
|
||||
* Better bandwidth management (for both client & server)
|
||||
* Needs to store another video file per resolution, so enabling this option multiplies the videos storage by 2 (only new uploaded videos, this is not retroactive)
|
||||
* Requires ffmpeg >= 4
|
||||
* Better instance's followers management:
|
||||
* Add ability to remove an instance's follower
|
||||
* Add ability to forbid all new instance's followers
|
||||
* Add ability to manually approve new instance's followers
|
||||
* Add notification on new instance's follower
|
||||
* Improve UI:
|
||||
* Increase player default height
|
||||
* Reduce big play button border width
|
||||
* Increase thumbnail sizes
|
||||
* Add hover effect on video miniature
|
||||
* Add "my library" section in menu
|
||||
* Add missing icons in some buttons/dropdown
|
||||
* 2 rows per overview section
|
||||
* Increase video thumbnail blur ([@Zig-03](https://github.com/Zig-03))
|
||||
* Improve video miniatures list on mobile
|
||||
* Add animation when opening user notifications
|
||||
* Add ability for admins to disable the tracker (and so the P2P aspect of PeerTube, in order to improve users privacy for example)
|
||||
* Add original publication date attribute to videos, and add ability to filter on it (Andrés Maldonado)
|
||||
* Add video miniature dropdown
|
||||
* Add ability for admins to declare their instance as dedicated to NSFW content
|
||||
* Improve SEO (there is still work to be done)
|
||||
* Login is now case insensitive (if using official web client)
|
||||
* Add NSFW policy & users signup policy & auto blacklist strategy in features table in about page
|
||||
* Improve comment deletion warning
|
||||
* Restore videos list component on history back
|
||||
* Add ability to consult server logs in admin
|
||||
* Allow administrators to change/reset a user's password ([@rigelk](https://github.com/rigelk))
|
||||
* Add a debug page to help admins to fix IP configuration issues
|
||||
* Add ability for admins to limit users videos history size
|
||||
* Add ability for admins to delete old remote videos views (reduce database size)
|
||||
* Optimize video update page load
|
||||
* Less refresh jobs
|
||||
* Cleanup invalid AP rates/comments/shares
|
||||
* Better videos redundancy config error handling
|
||||
* Check emails are enabled if the admin requires email verification ([@joshmorel](https://github.com/joshmorel))
|
||||
* Add `Add /accounts/:username/ratings endpoint` ([@yohanboniface](https://github.com/yohanboniface))
|
||||
* Allow to control API rates limit from configuration ([@yohanboniface](https://github.com/yohanboniface))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Don't notify prior to scheduled update ([@joshmorel](https://github.com/joshmorel))
|
||||
* Fix account description database error
|
||||
* Fix Pleroma follow
|
||||
* Fix greek label
|
||||
* Fix email notification for some users
|
||||
* Fix translation of "Copy magnet URI"
|
||||
* Fix negative seconds by displaying 0 instead [@zacharystenger](https://github.com/zacharystenger)
|
||||
* Fix URL in video import notification
|
||||
* Don't close help popover when clicking on it
|
||||
* Fix `tmp` directory cleanup
|
||||
* Fix custom CSS help
|
||||
* Fix JSONLD context
|
||||
* Fix privacy label display in upload form
|
||||
* Fix my account settings responsiveness
|
||||
* Fix keyboard icon transparency ([@gbip](https://github.com/gbip))
|
||||
* Fix contact admin button overflow
|
||||
* Wait config to be loaded before loading login/signup
|
||||
* Privacy is optional in upload API endpoint
|
||||
* Fix hotkeys help popup overflow
|
||||
|
||||
***Since v1.3.0-rc.2***
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix duplicates in playlist add component
|
||||
* Fix crash in files cache
|
||||
* Fix playlist view/update 403
|
||||
* Fix search with bad webfinger handles
|
||||
|
||||
|
||||
## v1.2.1
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* **Important:** Fix invalid `From` email header in contact form that could lead to the blacklisting of your SMTP server
|
||||
* Fix too long display name overflow in menu
|
||||
* Fix mention notification when a remote account mention a local account that has the same username than yours
|
||||
* Fix access to muted servers table for moderators
|
||||
* Don't crash notification popup on bug
|
||||
* Fix reset password script that leaks password on invalid value
|
||||
|
||||
|
||||
## v1.2.0
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* **Docker:** `PEERTUBE_TRUST_PROXY` env variable is now an array ([LecygneNoir](https://github.com/LecygneNoir))
|
||||
* **Docker:** Check you have all the storage fields in your `/config/production.yaml` file: https://github.com/Chocobozzz/PeerTube/blob/develop/support/docker/production/config/production.yaml#L34
|
||||
* **nginx:** Add redundancy endpoint in static file. **You should add it in your nginx configuration: https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/production.md#nginx**
|
||||
* **nginx:** Add socket io endpoint. **You should add it in your nginx configuration: https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/production.md#nginx**
|
||||
* Moderators can manage users now (add/delete/update/block)
|
||||
* Add `tmp` and `redundancy` directories in configuration file. **You should configure them in your production.yaml**
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Check free storage before upgrading in upgrade script ([@Nutomic](https://github.com/nutomic))
|
||||
* Explain that PeerTube must be stopped in prune storage script
|
||||
* Add some security directives in the systemd unit configuration file ([@rigelk](https://github.com/rigelk) & [@mkoppmann](https://github.com/mkoppmann))
|
||||
* Update FreeBSD startup script ([@gegeweb](https://github.com/gegeweb))
|
||||
|
||||
### Docker
|
||||
|
||||
* Patch docker entrypoint to speed up the chown at startup ([LecygneNoir](https://github.com/LecygneNoir))
|
||||
|
||||
### Features
|
||||
|
||||
* Add Russian, Polish and Italian languages
|
||||
* Add user notifications:
|
||||
* Notification types:
|
||||
* Comment on my video
|
||||
* New video from my subscriptions
|
||||
* New video abuses (for moderators)
|
||||
* Blacklist/Unblacklist on my video
|
||||
* Video import finished (error or success)
|
||||
* Pending video published (after transcoding or a scheduled update)
|
||||
* My account or one of my channel has a new follower
|
||||
* Someone (except muted accounts) mentioned me in comments
|
||||
* A user registered on the instance (for moderators)
|
||||
* Notification actions:
|
||||
* Add a web notification
|
||||
* Send an english email
|
||||
* Add contact form in about page (**enabled by default**)
|
||||
* Add ability to unfederate a local video in blacklist modal (**checkbox checked by default**)
|
||||
* Support additional video extensions if transcoding is enabled (**enabled by default**)
|
||||
* Redirect to the last url on login
|
||||
* Add ability to automatically set the video caption in URL. Example: https://peertube2.cpy.re/videos/watch/9c9de5e8-0a1e-484a-b099-e80766180a6d?subtitle=ru
|
||||
* Automatically enable the last selected caption when watching a video
|
||||
* Add ability to disable, clear and list user videos history
|
||||
* Add a button to help to translate peertube
|
||||
* Add text in the report modal to explain to whom the report will be sent
|
||||
* Open my account menu entries on hover
|
||||
* Explain what features are enabled on the instance in the about page
|
||||
* Add an error message in the forgot password modal if the instance email system is not configured
|
||||
* Add sitemap
|
||||
* Add well known url to change password ([@rigelk](https://github.com/rigelk))
|
||||
* Remove 8GB video upload limit on client side. There may still be such limit depending on the reverse proxy configuration ([@scanlime](https://github.com/scanlime))
|
||||
* Add CSP ([@rigelk](https://github.com/rigelk) & [@Nutomic](https://github.com/nutomic))
|
||||
* Update title and description HTML tags when rendering video HTML page
|
||||
* Add webfinger support for remote follows ([@acid-chicken](https://github.com/acid-chicken))
|
||||
* Add tooltip to explain how the trending algorithm works ([@auberanger](https://github.com/auberanger))
|
||||
* Warn users when they want to delete a channel because they will not be able to create another channel with the same name
|
||||
* Warn users when they leave the video upload/update (on page refresh/tab close)
|
||||
* Set max user name, user display name, channel name and channel display name lengths to 50 characters ([@McFlat](https://github.com/mcflat))
|
||||
* Increase video abuse length to 3000 characters
|
||||
* Add totalLocalVideoFilesSize in the stats endpoint
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix the addition of captions to a video
|
||||
* Fix federation of some videos
|
||||
* Fix NSFW blur on search
|
||||
* Add error message when trying to upload .ass subtitles
|
||||
* Fix default homepage in the progressive web application
|
||||
* Don't crash on queue error
|
||||
* Fix EXDEV errors if you have multiple mount points
|
||||
* Fix broken audio in transcoding with some videos
|
||||
* Fix crash on getVideoFileStream issue
|
||||
* Fix followers search
|
||||
* Remove trailing `/` in CLI import script ([@HesioZ](https://github.com/HesioZ/))
|
||||
* Use origin video url in canonical tag
|
||||
* Fix captions in HTTP fallback
|
||||
* Automatically refresh remote actors to fix deleted remote actors that are still displayed on some instances
|
||||
* Add missing translations in video embed page
|
||||
* Fix some styling issues in dark mode
|
||||
* Fix transcoding issues with some videos
|
||||
* Fix Mac OS mkv/avi upload
|
||||
* Fix menu overflow on mobile
|
||||
* Fix ownership button icons ([@joshmorel](https://github.com/joshmorel))
|
||||
|
||||
|
||||
## v1.1.0
|
||||
|
||||
***Since v1.0.1***
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* **Docker:** `PEERTUBE_TRUST_PROXY` env variable is now an array ([LecygneNoir](https://github.com/LecygneNoir))
|
||||
|
||||
### Maintenance
|
||||
|
||||
* Improve REST API documentation ([@rigelk](https://github.com/rigelk))
|
||||
* Add basic ActivityPub documentation ([@rigelk](https://github.com/rigelk))
|
||||
* Add CLI option to run PeerTube without client ([@rigelk](https://github.com/rigelk))
|
||||
* Add manpage to peertube CLI ([@rigelk](https://github.com/rigelk))
|
||||
* Make backups of files in optimize-old-videos script ([@Nutomic](https://github.com/nutomic))
|
||||
* Allow peertube-import-videos.ts CLI script to run concurrently ([@McFlat](https://github.com/mcflat))
|
||||
|
||||
### Scripts
|
||||
|
||||
* Use DB information from config/production.yaml in upgrade script ([@ldidry](https://github.com/ldidry))
|
||||
* Add REPL script ([@McFlat](https://github.com/mcflat))
|
||||
|
||||
### Docker
|
||||
|
||||
* Add search and import settings env settings env variables ([@kaiyou](https://github.com/kaiyou))
|
||||
* Add docker dev image ([@am97](https://github.com/am97))
|
||||
* Improve docker compose template ([@Nutomic](https://github.com/nutomic))
|
||||
* Add postfix image
|
||||
* Redirect HTTP -> HTTPS
|
||||
* Disable Træfik web UI
|
||||
|
||||
### Features
|
||||
|
||||
* Automatically resume videos if the user is logged in
|
||||
* Hide automatically the menu when the window is resized ([@BO41](https://github.com/BO41))
|
||||
* Remove confirm modal for JavaScript/CSS injection ([@scanlime](https://github.com/scanlime))
|
||||
* Set bitrate limits for transcoding ([@Nutomic](https://github.com/nutomic))
|
||||
* Add moderation tools in the account page
|
||||
* Add bulk actions in users table (Delete/Ban for now)
|
||||
* Add search filter in admin users table
|
||||
* Add search filter in admin following
|
||||
* Add search filter in admin followers
|
||||
* Add ability to list all local videos
|
||||
* Add ability for users to mute an account or an instance
|
||||
* Add ability for administrators to mute an account or an instance
|
||||
* Rename "News" category to "News & Politics" ([@daker](https://github.com/daker))
|
||||
* Add explicit error message when changing video ownership ([@lucas-dclrcq](https://github.com/lucas-dclrcq))
|
||||
* Improve description of the HTTP video import feature ([@rigelk](https://github.com/rigelk))
|
||||
* Set shorter keyframe interval for transcoding (2 seconds) ([@Nutomic](https://github.com/nutomic))
|
||||
* Add ability to disable webtorrent (as a user) ([@rigelk](https://github.com/rigelk))
|
||||
* Make abuse-delete clearer ([@barbeque](https://github.com/barbeque))
|
||||
* Adding minimum signup age conforming to ceiling GPDR age ([@rigelk](https://github.com/rigelk))
|
||||
* Feature/description support fields length 1000 ([@McFlat](https://github.com/mcflat))
|
||||
* Add background effect to activated menu entry
|
||||
* Improve video upload error handling
|
||||
* Improve message visibility on signup
|
||||
* Auto login user on signup if email verification is disabled
|
||||
* Speed up PeerTube startup (in particular the first one)
|
||||
* Delete invalid or deleted remote videos
|
||||
* Add ability to admin to set email as verified ([@joshmorel](https://github.com/joshmorel))
|
||||
* Add separators in user moderation dropdown
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* AP mimeType -> mediaType
|
||||
* PeerTube is not in beta anymore
|
||||
* PeerTube is not in alpha anymore :p
|
||||
* Fix optimize old videos script
|
||||
* Check follow constraints when getting a video
|
||||
* Fix application-config initialization in CLI tools ([@Yetangitu](https://github.com/Yetangitu))
|
||||
* Fix video pixel format compatibility (using yuv420p) ([@rigelk](https://github.com/rigelk))
|
||||
* Fix video `state` AP context ([tcitworld](https://github.com/tcitworld))
|
||||
* Fix Linked Signature compatibility
|
||||
* Fix AP collections pagination
|
||||
* Fix too big thumbnails (when using URL import)
|
||||
* Do not host remote AP objects: use redirection instead
|
||||
* Fix video miniature with a long name
|
||||
* Fix video views inconsistencies inside the federation
|
||||
* Fix video embed in Wordpress Gutenberg
|
||||
* Fix video channel videos url when scrolling
|
||||
* Fix player progress bar/seeking when changing resolution
|
||||
* Fix search tab title with no search
|
||||
* Fix YouTube video import with some videos
|
||||
|
||||
***Since v1.1.0-rc.1***
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix AP infinite redirection
|
||||
* Fix trending page
|
||||
|
||||
|
||||
## v1.0.1
|
||||
|
||||
### Security/Maintenance/Federation
|
||||
|
||||
* Add HTTP Signature in addition to Linked Signature:
|
||||
* It's faster
|
||||
* Will allow us to use RSA Signature 2018 in the future without too much incompatibilities in the peertube federation
|
||||
|
||||
|
||||
## v1.0.0
|
||||
|
||||
### SECURITY
|
||||
|
||||
* Add more headers to HTTP signature to avoid actor impersonation by replaying modified signed HTTP requests (thanks Thibaut Girka)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Check video exists before extending expiration
|
||||
* Correctly delete redundancy files
|
||||
* Fix account URI in remote comment modal ([@rigelk](https://github.com/rigelk))
|
||||
* Fix avatar update
|
||||
* Avoid old issue regarding duplicated hosts in database
|
||||
|
||||
|
||||
## v1.0.0-rc.2
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix config endpoint
|
||||
|
||||
|
||||
## v1.0.0-rc.1
|
||||
|
||||
### Features
|
||||
|
||||
* Allow specification of channel ID in `peertube-upload.js` ([@anoadragon453](https://github.com/anoadragon453))
|
||||
* Show last commit hash alongside server version in footer ([@rigelk](https://github.com/rigelk))
|
||||
* Add comment feeds in watch page
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix dnt route (yes again, but now we have unit tests for this route :D)
|
||||
* Check video channel name is unique when creating a new one
|
||||
* Fix video fps validator (prevent redundancy/refresh of some old videos)
|
||||
* Allow empty search on client side ([@rigelk](https://github.com/rigelk))
|
||||
* Correctly forward comment deletion
|
||||
|
||||
|
||||
## v1.0.0-beta.16
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* Add prompt to upgrade.sh to install pre-release version ([@Nutomic](https://github.com/nutomic))
|
||||
|
||||
### Features
|
||||
|
||||
* Add shortcuts icon in menu
|
||||
* Improve overview section titles
|
||||
* Check old password before change ([@BO41](https://github.com/BO41))
|
||||
* Adding frame-by-frame hotkey support in player ([@rigelk](https://github.com/rigelk))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Stop seeding torrents after a failed import
|
||||
* Fix player crashing the web browser
|
||||
* Fix player performance with small devices
|
||||
* Fix some untranslated strings
|
||||
* Fix video files duplicated when fps is null ([@rigelk](https://github.com/rigelk))
|
||||
* Fix video import of some youtube videos
|
||||
* Fix (long) video description when importing by url
|
||||
* Fix Mastodon federation with a comment reply
|
||||
* Correctly delete directories on import
|
||||
* Remove duplicated videos on unfollow/delete redundancy
|
||||
* Fix 404 on manifest
|
||||
* Hide useless error when destroying fake renderer
|
||||
* Display other videos on big screens on the right of the watch page
|
||||
* Fix no other videos displayed on some videos
|
||||
* Fix hidden advanced options in upload form
|
||||
* Fix message space on video upload cancel ([@rigelk](https://github.com/rigelk))
|
||||
* Fix error when updating many video captions
|
||||
* Fix "my account" subtitles
|
||||
* Fix error when clicking on the disabled publish button
|
||||
* Increase timeout on upload endpoint
|
||||
* Fix redundancy with videos already duplicated by another instance(s)
|
||||
* Correctly delete files on failed import
|
||||
|
||||
|
||||
## v1.0.0-beta.15
|
||||
|
||||
### Features
|
||||
|
||||
* Improve subscription button ([@rigelk](https://github.com/rigelk))
|
||||
* Display it for unlogged users
|
||||
* Add RSS feed
|
||||
* Allow remote follow
|
||||
* Allow remote comment ([@rigelk](https://github.com/rigelk))
|
||||
* Support Simplified Chinese ([@SerCom-KC](https://github.com/SerCom-KC))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix redundancy with old PeerTube torrents
|
||||
* Fix crash with `/static/dnt-policy/dnt-policy-1.0.txt` route
|
||||
* Fix redundancy totalVideos stats
|
||||
* Reduce video import TTL to 1 hour
|
||||
* Only duplicate public videos
|
||||
|
||||
|
||||
## v1.0.0-beta.14
|
||||
|
||||
### Features
|
||||
|
||||
* Video redundancy system (experimental)
|
||||
* Add peertube script (see [the doc](/support/doc/tools.md#cli-wrapper)) ([@rigelk](https://github.com/rigelk))
|
||||
* Improve download modal ([@rigelk](https://github.com/rigelk))
|
||||
* Add redirect after login ([@BO41](https://github.com/BO41))
|
||||
* Improve message when removing a user
|
||||
* Improve responsive on small screens
|
||||
* Improve performance:
|
||||
* Overview endpoint
|
||||
* SQL requests of watch page endpoints
|
||||
* SQL requests of ActivityPub endpoints
|
||||
* Cache user token
|
||||
* Videos infinite scroll in the web browser
|
||||
* Add warning if one of the storage directory is in the peertube production directory
|
||||
* Auto focus first field on login ([@rigelk](https://github.com/rigelk))
|
||||
* Add chevron hotkeys to change playback rate ([@rigelk](https://github.com/rigelk))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix 24 hours delay to process views
|
||||
* Fix tag search on overview page
|
||||
* Handle actors search beginning with '@'
|
||||
* Fix "no results" on overview page
|
||||
* Fix iOS player playback/subtitles menu
|
||||
* Fix description/comments that break the video watch page
|
||||
* Don't get recommended videos twice
|
||||
* Fix admin access to moderators
|
||||
* Fix nav tab and tag color in dark theme ([@rigelk](https://github.com/rigelk))
|
||||
* Fix help popover overflow ([@rigelk](https://github.com/rigelk))
|
||||
* Fix comment deletion with mastodon (only with new comments)
|
||||
|
||||
|
||||
## v1.0.0-beta.13
|
||||
|
||||
### Features
|
||||
|
||||
* Improve keyboard navigation ([@rigelk](https://github.com/rigelk))
|
||||
* Remember theme in local storage ([@rigelk](https://github.com/rigelk))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix upgrade/installation on node 8.12 (bcrypt issue)
|
||||
* Fix video channel deletion
|
||||
* Fix video channel RSS
|
||||
* Fix video views increment
|
||||
|
||||
|
||||
## v1.0.0-beta.12
|
||||
|
||||
**If you have not updated to v1.0.0-beta.10, see the v1.0.0-beta.10.pre.1 changelog, in particular how to upgrade**
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* Users can now use the name they want for their channel.
|
||||
We will therefore favour the display of video channel handles/names instead of account in the future.
|
||||
|
||||
### Documentation
|
||||
|
||||
* Add SECURITY.md document
|
||||
* Add TCP/IP tuning template to prevent buffer bloat/latency ([@scanlime](https://github.com/scanlime))
|
||||
* Add `parse-log` admin tool documentation
|
||||
* Improve README schemas ([@Edznux](https://github.com/edznux))
|
||||
|
||||
### nginx template
|
||||
|
||||
* Add gzip support ([@scanlime](https://github.com/scanlime))
|
||||
|
||||
### Docker template
|
||||
|
||||
* Add quota to the docker configuration values ([@kaiyou](https://github.com/kaiyou))
|
||||
|
||||
### Features
|
||||
|
||||
* Add portuguese and swedish languages
|
||||
* Support user subscriptions
|
||||
* Add ability to search videos or channels with their URL/handle (can be opt-out by the admin)
|
||||
* Add "videos overview" page (pick randomly some categories/tags/channels and display their videos)
|
||||
* Add ability to set a name (left part of the handle) to a channel instead of UUID
|
||||
* Users can "give" their videos to other local users (WIP, feedback welcome) ([@grizio](https://github.com/grizio))
|
||||
* Add keyboard shortcuts (press `?` to see them) ([@rigelk](https://github.com/rigelk))
|
||||
* Add ability to set daily video upload quota to users ([@Nutomic](https://github.com/nutomic))
|
||||
* Add user email verification (can be opt-in by the admin) ([@joshmorel](https://github.com/joshmorel))
|
||||
* Improve video watch page style ([@rigelk](https://github.com/rigelk))
|
||||
* Trending page takes into account views from the last x days (defined by the admin in the configuration file)
|
||||
* Add "start at" checkbox in the video share modal
|
||||
* Add instance capabilities table in the signup page ([@rigelk](https://github.com/rigelk))
|
||||
* Improve video abuses display in admin ([@Nutomic](https://github.com/nutomic))
|
||||
* Add "my videos" shortcut in menu ([@LeoMouyna](https://github.com/LeoMouyna))
|
||||
* Support 0.75 and 1.25 playback speeds ([@Glandos](https://github.com/Glandos))
|
||||
* Improve error message on actor name conflict
|
||||
* Improve videos list/search SQL query (split it into 2 queries)
|
||||
* Make left menu show the scrollbar only on hover/focus ([@rigelk](https://github.com/rigelk))
|
||||
* Other videos column in watch page show related tagged videos if possible ([@jorropo](https://github.com/jorropo))
|
||||
* Password change errors more friendly ([@jorropo](https://github.com/jorropo))
|
||||
* Improve labels for video privacies (video upload/update)
|
||||
* Add theming via CSS custom properties ([@rigelk](https://github.com/rigelk))
|
||||
* Add dark theme ([@rigelk](https://github.com/rigelk))
|
||||
* Add input color to cope with browser themes ([@rigelk](https://github.com/rigelk))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix player video playback (videos never ends or infinite load after seeking)
|
||||
* Fix video URL import with videos having a small title
|
||||
* Make HSTS opt-in and leave it to the reverse-proxy ([@rigelk](https://github.com/rigelk))
|
||||
* Fix search results on mobile
|
||||
* Do not import live streaming
|
||||
* Fix NSFW filter when the instance decides to hide them and the user decides to list them
|
||||
* Delete highlighted comment too if needed
|
||||
* Fix ffmpeg auto thread admin configuration ([@jorropo](https://github.com/jorropo))
|
||||
* ActivityPub: use height instead of width to represent the video resolution
|
||||
* Fix thumbnail/preview in upload.js script
|
||||
* Fix import-videos.js duplicate detection
|
||||
* Fix occitan language label
|
||||
|
||||
|
||||
## v1.0.0-beta.11
|
||||
|
||||
**If you have not updated to v1.0.0-beta.10, see the v1.0.0-beta.10.pre.1 changelog, in particular how to upgrade**
|
||||
|
||||
### Features
|
||||
|
||||
* Add ability to import videos from a URL (YouTube, Dailymotion, Vimeo, raw file etc) or torrent file/magnet.
|
||||
Should be explicitly enabled by the administrator in the configuration file
|
||||
* Add german, spanish, taiwan (traditional chinese) and occitan languages
|
||||
* Add ability to delete our account
|
||||
* Add ability to ban a user
|
||||
* Add ability to set a moderation comment to an abuse
|
||||
* Add state (pending, accepted, rejected) attribute to an abuse
|
||||
* Add ability to set a reason when blacklisting a video
|
||||
* Add ability to blacklist local videos
|
||||
* Improve abuse and blacklist tables
|
||||
* Add user quota used in users list
|
||||
* Tracker only accept known infohash (avoid people to use your tracker for files unrelated to PeerTube)
|
||||
* Add database pool configuration ([@rigelk](https://github.com/rigelk))
|
||||
* Add audit log ([@Nautigsam](https://github.com/Nautigsam))
|
||||
* Add ffmpeg nice and auto thread ([@jorropo](https://github.com/jorropo))
|
||||
* Upgrade to bootstrap 4
|
||||
* DNT support
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix videos FPS federation
|
||||
* Cleanup request files on bad request
|
||||
* Handle truncated markdown links
|
||||
* Fix dropdown position in menu
|
||||
* Translate subtitle languages in player
|
||||
* Translate player according the language of the interface
|
||||
* Fix reset my password button ([@joshmorel](https://github.com/joshmorel))
|
||||
|
||||
|
||||
## v1.0.0-beta.10
|
||||
|
||||
**See the v1.0.0-beta.10.pre.1 changelog, in particular how to upgrade**
|
||||
|
||||
### Bug fixes (from beta.10.pre.3)
|
||||
|
||||
* Fix caption upload on Mac OS
|
||||
|
||||
|
||||
## v1.0.0-beta.10.pre.3
|
||||
|
||||
**See the v1.0.0-beta.10.pre.1 changelog, in particular how to upgrade**
|
||||
|
||||
### Bug fixes (from beta.10.pre.2)
|
||||
|
||||
* Try to fix the infinite creation of Delete actor jobs by deleting kue migration
|
||||
* Cleanup SQL indexes
|
||||
* Try to optimize SQL search query
|
||||
* Try to optimize videos list SQL query
|
||||
* Add more logs and fix logger when having an error
|
||||
* Move subscription helper in the account line in video watch page
|
||||
* Fix responsive on videos search
|
||||
* Refresh orphan actors
|
||||
* Don't send a follow request if the follow was already accepted
|
||||
|
||||
|
||||
## v1.0.0-beta.10.pre.2
|
||||
|
||||
**See the v1.0.0-beta.10.pre.1 changelog, in particular how to upgrade**
|
||||
|
||||
### Bug fixes (from beta.10.pre.1)
|
||||
|
||||
* Fix captions/subtitles freeze in player
|
||||
* Fix attribute label width in video watch page
|
||||
* Fix player playback in Chrome
|
||||
* Revert SQL optimization when listing videos: it breaks the connection pool of some instances
|
||||
|
||||
|
||||
## v1.0.0-beta.10.pre.1
|
||||
|
||||
This version is a pre release because it contains many important changes, and requires manual steps before upgrading.
|
||||
|
||||
**Important:** Before upgrading run the following commands (no need to stop PeerTube) on your PeerTube database (in this example it's *peertube_prod*):
|
||||
|
||||
```
|
||||
sudo -u postgres psql peertube_prod -c 'CREATE EXTENSION IF NOT EXISTS unaccent;'
|
||||
sudo -u postgres psql peertube_prod -c 'CREATE EXTENSION IF NOT EXISTS pg_trgm;'
|
||||
```
|
||||
|
||||
You will need [PostgreSQL Contrib](https://www.postgresql.org/docs/9.6/static/contrib.html).
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* Require `unaccent` and `pg_trgm` PostgreSQL extension for the PeerTube database
|
||||
* `category` filter param is replaced by `categoryOneOf`
|
||||
* Switch job queue to [Bull](https://github.com/OptimalBits/bull). **PeerTube will not migrate your old pending jobs in this new queue manager**
|
||||
* Update nginx template (you need to [update manually](https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/production.md#nginx))
|
||||
* Update default cache size configurations
|
||||
* Update search API route: `/videos/search` becomes `/search/videos`
|
||||
* Needs Redis >= 2.8.18
|
||||
|
||||
### Features
|
||||
|
||||
* Add ability to change the language of the interface (currently available: english, french, basque, catalan, czech and esperanto)
|
||||
* Subtitles/captions support (.srt and .vtt)
|
||||
* Add advanced search
|
||||
* Add ability to click on category/language/licence/tags in watch page
|
||||
* Improve explanations of P2P & Privacy section in about page
|
||||
* Avoid design latency when the admin set custom CSS
|
||||
* Add ability to update video channel avatar
|
||||
* Limit video resolution depending on the video element size (Nitesh Sawant)
|
||||
* Show "Other videos" on a <1300px viewport ([@Simounet](https://github.com/simounet))
|
||||
* Add QR code to share videos URL ([@DeeJayBro](https://github.com/DeeJayBro))
|
||||
* Add "agree to the terms" checkbox in registration form
|
||||
* Add tracker rate limiter
|
||||
* Add author URL in OEmbed response
|
||||
* Display username instead of email in menu
|
||||
* Clarifying what extensions are accepted for upload ([@rigelk](https://github.com/rigelk))
|
||||
* Thumbnail support for RSS feeds ([@rigelk](https://github.com/rigelk))
|
||||
* Open CORS on API and static resources ([@rezonant](https://github.com/rezonant)
|
||||
* B-adapt 1 and B-frames 16 on ffmpeg transcoding: ([@Anton-Latukha](https://github.com/Anton-Latukha)). See https://github.com/Chocobozzz/PeerTube/pull/774 for more information
|
||||
* Support Redis socket ([@rigelk](https://github.com/rigelk))
|
||||
* Improve video `start` param to support string times (for example: 2m42s))
|
||||
* Display table next/prev/first/last icons in admin tables
|
||||
* NodeInfo support ([@rigelk](https://github.com/rigelk))
|
||||
* Improve HTTP headers security ([@rigelk](https://github.com/rigelk))
|
||||
* Improve client accessibility (for screen reader users etc)
|
||||
* Optimize SQL requests (in particular the one to list videos)
|
||||
* Optimize images ([@jorropo](https://github.com/jorropo))
|
||||
* Add esperanto, lojban, klingon and kotava (audio/subtitle) languages
|
||||
* Allow uploads of videos <8GB (*experimental*)
|
||||
* Handle FPS > 30 (*experimental*)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix avatars/thumbnails update (cache issue)
|
||||
* Fix pagination on admin job table when changing the job state
|
||||
* Fix SQL transaction retryer log
|
||||
* Correctly handle error when remote instance is down
|
||||
* Fix account videos URL when scrolling
|
||||
* Avoid commenting twice by disabling comment submit button when sending the comment
|
||||
* Reset confirm component input when closing it
|
||||
* Fix video speed when video resolutions changes ([@grizio](https://github.com/grizio))
|
||||
* Disable hotkeys modifiers for numbers ([@rigelk](https://github.com/rigelk))
|
||||
* Reset published date on video publish (scheduled or after a transcoding)
|
||||
* Avoid 404 title on the first page load
|
||||
* Fix forgot password message regarding email
|
||||
* Remove scroll to top when closing the menu ([@ebrehault](https://github.com/ebrehault))
|
||||
* Use UUID for channel link in watch page
|
||||
|
||||
### Docker
|
||||
|
||||
* Add PEERTUBE_SMTP_DISABLE_STARTTLS config env
|
||||
|
||||
|
||||
## v1.0.0-beta.9
|
||||
|
||||
### Features
|
||||
|
||||
* Theater/Cinema mode in player
|
||||
* Add ability to wait transcoding before publishing it
|
||||
* Add ability for uploaders to schedule video update
|
||||
* Add time display to see where we seek the video
|
||||
* Add title in player peers info to show total downloaded/uploaded data
|
||||
* Provide magnet URI in player and download modal ([@rigelk](https://github.com/rigelk))
|
||||
* Add warning if the domain name is different from the one of the first start of Peertube
|
||||
* Add resolution to create-transcoding-job script ([@fflorent](https://github.com/fflorent))
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix dislikes number in video watch page
|
||||
* Fix import when the imported file has the same extension than an already existing file
|
||||
* Fix bad RSS descriptions when filtering videos by account or channel
|
||||
* Fix RSS results limit
|
||||
* Fix glitch when updating player volume
|
||||
* Use local object URLs for feeds
|
||||
* Automatically jump to the highlighted thread
|
||||
* Fix account link width on video view ([@sesn](https://github.com/sesn))
|
||||
* Prevent commenting twice
|
||||
* Blue links color in comments
|
||||
* Fix quota precision in users list
|
||||
* Handle markdown in account/video channel pages
|
||||
* Fix avatar image in channel page
|
||||
* Fix slow HTTP fallback on Firefox
|
||||
* Do not create a user with the same username than another actor name
|
||||
* Reset search on page change
|
||||
* Fix images size limit
|
||||
* Log torrent errors/warnings in the console, instead of disturbing users
|
||||
|
||||
|
||||
## v1.0.0-beta.8
|
||||
|
||||
### Features
|
||||
|
||||
* Docker:
|
||||
* Add disable_starttls and transcoding configuration variables
|
||||
* `.env` file to define env variables (instead of defining them in `docker-compose.yml`)
|
||||
* Some improvements that should make the upgrades less painful
|
||||
* Add ability to manually run transcoding jobs (admin with CLI)
|
||||
* Add ability to import a video file (admin with CLI)
|
||||
* Add context menu to the player
|
||||
* Add number of videos published by an account/video channel
|
||||
* Improve player progress bar
|
||||
* Improve Twitter configuration help tooltips
|
||||
* Pick average video file instead of max quality in "Auto" resolution mode
|
||||
* Increase access token lifetime to 1 day
|
||||
* Add video comments RSS
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Clicking on "Download" correctly opens a popup to download the video
|
||||
(instead of opening the video in a new tab)
|
||||
* Fix frequent logout
|
||||
* Fix `publishedAt` video attribute when following a new instance
|
||||
* Correctly resumes the video on "PeerTube" link click in embed
|
||||
* Fix markdown links truncation
|
||||
* Fix account/channel pages not updated if we only change the account/channel
|
||||
* Fix player resolution change that plays even if the video was paused
|
||||
* Fix posting view in embed that contains search params
|
||||
* Fix video watch tooltips regarding subscriptions by using the account name
|
||||
instead of the display name
|
||||
* Rename "my settings" to "my account" in menu
|
||||
|
||||
|
||||
## v1.0.0-beta.7
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* Account client URLs are now `/accounts/{username}/` (and not `/accounts/{id}/`)
|
||||
|
||||
### Documentation
|
||||
|
||||
* Better documentation on how to deploy with Docker: https://github.com/Chocobozzz/PeerTube/blob/develop/support/doc/docker.md
|
||||
|
||||
### Features
|
||||
|
||||
* Add short description in about page
|
||||
* Add owner account name in video channel page
|
||||
* Improve performance in ActivityPub controllers
|
||||
* Video **support** field inherits video channel **support** field when uploading/updating a video
|
||||
* Resume video when clicking on "PeerTube" link in embed
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix player on Android
|
||||
* Fix player when Firefox has cookies disabled
|
||||
* Reload "my videos" after a delete
|
||||
* Fix missing key configuration when upgrading with Docker
|
||||
* Fix CC audience in Activity Pub objects/activities
|
||||
|
||||
|
||||
## v1.0.0-beta.6
|
||||
|
||||
### Features
|
||||
|
||||
* Handle concurrent requests in cache middleware
|
||||
* Add ability to enable registration by IP
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix insane SQL request when loading all video attributes
|
||||
|
||||
|
||||
## v1.0.0-beta.5
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* Update Docker Compose (https://github.com/Chocobozzz/PeerTube/commit/fd5e57bbe2accbdb16b6aa65337c5ef44b5bd8fb)
|
||||
* Rename client routes:
|
||||
* `/admin/users/add` to `/admin/users/create`
|
||||
* `/videos/edit/:uuid` to `/videos/update/:uuid`
|
||||
* `/admin/users/:id/update` to `/admin/users/update/:id`
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* Adding basic helpers to guide users for comments/subscribe to accounts
|
||||
* Add ability to move a video in another channel
|
||||
* Improve web browser RAM consumption when watching (long) videos
|
||||
* Support robots.txt in configuration
|
||||
* Add ability to select the Redis database in configuration
|
||||
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix error message on token expiration
|
||||
* Increase menu icon size
|
||||
* Add timeout and TTL to request jobs to fix stuck job
|
||||
* Fix responsive account about page
|
||||
* Fix updating description account
|
||||
* Account/video channel descriptions are not required anymore
|
||||
* Fix video channel description and support max length (500 characters now)
|
||||
* Fix "..." for buttons (delete/edit) in admin tables
|
||||
* Fix overflow in markdown textarea preview
|
||||
* Add ability to embed videos in a Twitter card
|
||||
* Use `publishedAt` attribute when sorting videos
|
||||
* Fix concurrent requests in videos list
|
||||
* Fix player on iOS
|
||||
|
||||
|
||||
## v1.0.0-beta.4
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* Hide by default NSFW videos. Update the `instance.default_nsfw_policy` configuration to `blur` to keep the old behaviour
|
||||
* Move video channels routes:
|
||||
* `/videos/channels` routes to `/video-channels`
|
||||
* `/videos/accounts/{accountId}/channels` route to `/accounts/{accountId}/video-channels`
|
||||
* PeerTube now listen on 127.0.0.1 by default
|
||||
* Use ISO 639 for language (*en*, *es*, *fr*...)
|
||||
* Tools (`import-videos`...) need the language ISO639 code instead of a number
|
||||
* API (`upload`, `update`, `list`...) need/return the language ISO639 code instead of a number
|
||||
|
||||
### Features
|
||||
|
||||
* Add `publishedAt` attribute to videos
|
||||
* Improve player:
|
||||
* Smooth progress bar
|
||||
* Settings menu
|
||||
* Automatic resolution (depending on the user bandwidth)
|
||||
* Some animations/effects
|
||||
* More reactive when clicking on play
|
||||
* Handle autoplay blocking by some web browsers
|
||||
* Better responsive
|
||||
* Add ability to link a specific timestamp. Example: https://peertube2.cpy.re/videos/watch/f78a97f8-a142-4ce1-a5bd-154bf9386504?start=58
|
||||
* Add an id to the body to override current CSS (for custom CSS)
|
||||
* Add privacy argument to `upload.ts` script
|
||||
* RSS/Atom/JSON-feed for videos recently-added/trending/account
|
||||
* Support hostname binding in the configuration
|
||||
* Add ability to click on an account in the video watch page (link to a search)
|
||||
* Better responsive on many comment replies
|
||||
* Move follows in the job queue
|
||||
* Add ability to choose the NSFW videos policy: hide, blur or display. Could be overrode by the user
|
||||
* Add video privacy information in *my videos page*
|
||||
* Use the video name for the torrent file name instead of the UUID
|
||||
* Handle errors in embed (video not found, server error...)
|
||||
* Account view (videos uploaded by this account + video channel owned by this account + about pages)
|
||||
* Video channel view (videos uploaded in this channel + about pages)
|
||||
* Video channel management (avatar update is still missing)
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix "show more" description on video change
|
||||
* Accept unlisted comments
|
||||
* Don't start application until all components were initialized
|
||||
* Fix word-break in video description and video comments
|
||||
* Don't add a `.` after the URL in the "forgot password" email
|
||||
|
||||
|
||||
|
||||
## v1.0.0-beta.3
|
||||
|
||||
### Features
|
||||
|
||||
* Add hover background color in menu
|
||||
* Add info about the initial user quota in the registration form
|
||||
* Add link to register in the login form
|
||||
* Prevent brute force login attack
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix bad federation with videos with special utf characters in description (again)
|
||||
* Fix views system behind a reverse proxy
|
||||
|
||||
|
||||
## v1.0.0-beta.2
|
||||
|
||||
### Features
|
||||
|
||||
* More logging in SMTP module
|
||||
* Add option to disable starttls in SMTP module
|
||||
* Update STUN servers (using framasoft.org and stunprotocol.org now)
|
||||
* Min comment length is 1 now (useful for emoji...)
|
||||
* Better embed video player in small screens
|
||||
* Reduce display time of title/description/control bar in embed on inactivity
|
||||
* Add sign languages for videos attribute
|
||||
* Add autoplay parameter for embed
|
||||
* Videos search on account username and host too
|
||||
* Redirect to homepage on empty search
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix mentions in comment replies
|
||||
* Logo/Title redirects to the default route
|
||||
* Fix bad federation with videos with special utf characters in description
|
||||
* Fix pagination on mobile
|
||||
* Use instance name for page titles
|
||||
* Fix bad id for Create activities (ActivityPub)
|
||||
* Handle inner actors instead of just handling actor ids (ActivityPub)
|
||||
* Fallback to torrent file if infohash is incorrect
|
||||
* Fix admin config errors display/validation
|
||||
* Add public to Announces (ActivityPub)
|
||||
* Fix inability to run client when cookies are disabled
|
||||
* Fix words breaking in videos description
|
||||
* Graceful exit when import videos script fails
|
||||
* Fix import videos with long names
|
||||
* Fix login with a password containing special characters
|
||||
* Fix player error flickering with an unsupported video format
|
||||
* Fix comment delete federation
|
||||
* Fix communication of a PeerTube instance and Mastodon
|
||||
* Fix custom configuration with number values
|
||||
|
||||
|
||||
## v1.0.0-beta.1
|
||||
|
||||
Nothing new here, but PeerTube is stable enough for being in beta now.
|
||||
|
||||
|
||||
## v1.0.0-alpha.9
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* Update videos list/search/get API response:
|
||||
* Removed `resolution` field
|
||||
* Removed `resolutionLabel` field
|
||||
* Removed `category` field
|
||||
* Removed `categoryLabel` field
|
||||
* Removed `licence` field
|
||||
* Removed `licenceLabel` field
|
||||
* Removed `language` field
|
||||
* Removed `languageLabel` field
|
||||
* Removed `privacy` field
|
||||
* Removed `privacyLabel` field
|
||||
* Added `resolution.id` field
|
||||
* Added `resolution.label` field
|
||||
* Added `category.id` field
|
||||
* Added `category.label` field
|
||||
* Added `licence.id` field
|
||||
* Added `licence.label` field
|
||||
* Added `language.id` field
|
||||
* Added `language.label` field
|
||||
* Added `privacy.id` field
|
||||
* Added `privacy.label` field
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix video_share_url duplicate key on failed transcoding job
|
||||
|
||||
|
||||
## v1.0.0-alpha.8
|
||||
|
||||
### Features
|
||||
|
||||
* Add ability to set a short instance description
|
||||
|
||||
|
||||
## v1.0.0-alpha.7
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* Update videos list/search API response:
|
||||
* Removed `accountName` field
|
||||
* Removed `serverHost` field
|
||||
* Added `account.name` field
|
||||
* Added `account.displayName` field
|
||||
* Added `account.host` field
|
||||
* Added `account.url` field
|
||||
* Added `account.avatar` field
|
||||
* Update video abuses API response:
|
||||
* Removed `reporterUsername` field
|
||||
* Removed `reporterServerHost` field
|
||||
* Removed `videoId` field
|
||||
* Removed `videoUUID` field
|
||||
* Removed `videoName` field
|
||||
* Added `reporterAccount` field
|
||||
* Added `video.id` field
|
||||
* Added `video.name` field
|
||||
* Added `video.uuid` field
|
||||
* Added `video.url` field
|
||||
|
||||
### Features
|
||||
|
||||
* Add "Local" in menu that lists only local videos
|
||||
|
||||
|
||||
## v1.0.0-alpha.4
|
||||
|
||||
### Features
|
||||
|
||||
* Add iOS support
|
||||
|
||||
|
||||
## v1.0.0-alpha.1
|
||||
|
||||
### Features
|
||||
|
||||
* Add messages about privacy and P2P
|
||||
* Add stats route
|
||||
* Add playback setting
|
||||
|
||||
|
||||
## v0.0.29-alpha
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* Use only 1 thread for transcoding by default
|
||||
|
||||
### Features
|
||||
|
||||
* Add help to JS/CSS custom configuration inputs
|
||||
* Keep ratio in video thumbnail generation
|
||||
* Handle video in portrait mode
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix complete description on some videos
|
||||
* Fix job sorting in administration
|
||||
|
||||
|
||||
## v0.0.28-alpha
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* Enable original file transcoding by default in configuration
|
||||
* Disable transcoding in other definitions in configuration
|
||||
|
||||
### Features
|
||||
|
||||
* Fallback to HTTP if video cannot be loaded
|
||||
* Limit to 30 FPS in transcoding
|
||||
|
||||
|
||||
## v0.0.27-alpha
|
||||
|
||||
### Features
|
||||
|
||||
* Add ability for admin to inject custom JavaScript/CSS
|
||||
* Add help tooltip on some fields
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix comment reply highlighting
|
||||
|
||||
|
||||
## v0.0.26-alpha
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* Renamed script `import-youtube.js` to `import-videos.js`
|
||||
* Renamed `import-video.js` argument `youtube-url` to `target-url`
|
||||
|
||||
### Features
|
||||
|
||||
* Add "Support" attribute/button on videos
|
||||
* Add ability to import from all [supported sites](https://rg3.github.io/youtube-dl/supportedsites.html) of youtube-dl
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix custom instance name overflow
|
||||
|
||||
|
||||
## v0.0.25-alpha
|
||||
|
||||
### Features
|
||||
|
||||
* Add ability to link a specific comment
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fix avatars on video watch page
|
||||
|
||||
|
||||
## v0.0.24-alpha
|
||||
|
||||
### Features
|
||||
|
||||
* Publish comments with *ctrl + enter*
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Don't stuck on active jobs
|
||||
* Fix deleting a video with comments
|
||||
* Fix infinite scroll (videos list)
|
@ -0,0 +1,86 @@
|
||||
# Contributor Covenant Code of Conduct
|
||||
|
||||
## Our pledge
|
||||
|
||||
In order to create an open and welcoming environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of:
|
||||
|
||||
* age
|
||||
* body size
|
||||
* disability
|
||||
* gender identity and expression
|
||||
* level of experience
|
||||
* education
|
||||
* socio-economic status
|
||||
* nationality
|
||||
* personal appearance
|
||||
* ethnicity
|
||||
* religion
|
||||
* sexual identity and orientation
|
||||
* etc.
|
||||
|
||||
## Our standards
|
||||
|
||||
A supplemental goal of this Code of Conduct is to increase open source and culture citizenship by encouraging participants to recognize and strengthen the relationships between our actions and their effects on our community.
|
||||
|
||||
Communities mirror the societies in which they exist and positive action is essential to counteract the many forms of inequality and abuses of power that exist in society.
|
||||
|
||||
If you see someone who is making an extra effort to ensure our community is welcoming, friendly, and encourages all participants to contribute to the fullest extent, please recognize their efforts.
|
||||
|
||||
You can contribute to creating a positive environment in many ways. For example you can:
|
||||
|
||||
* use welcoming and inclusive language
|
||||
* be respectful of differing viewpoints and experiences
|
||||
* accept constructive criticism gracefully
|
||||
* focus on what is best for the community
|
||||
* show empathy towards other community members
|
||||
|
||||
You should not:
|
||||
|
||||
* use sexualised language or imagery
|
||||
* make unwelcome sexual advances
|
||||
* troll, and make insulting or derogatory comments
|
||||
* make personal or political attacks
|
||||
* harass others, in public or private
|
||||
* publish others' private information, such as a physical or electronic address, without explicit permission
|
||||
* engage in any other conduct which could reasonably be considered inappropriate in a professional setting
|
||||
* etc.
|
||||
|
||||
## Our responsibilities
|
||||
|
||||
As project maintainers, we are responsible for clarifying the standards of acceptable behaviour and we are expected to take appropriate and fair corrective action in response to any instances of unacceptable behaviour.
|
||||
|
||||
We have the right and responsibility to remove, edit, or reject:
|
||||
|
||||
* comments
|
||||
* commits
|
||||
* code
|
||||
* wiki edits
|
||||
* issues
|
||||
* other contributions that are not aligned to this code of conduct
|
||||
|
||||
We also reserve the right to temporarily or permanently ban any contributor for other behaviours we deem inappropriate, threatening, offensive, or harmful.
|
||||
|
||||
## Scope
|
||||
|
||||
This code of conduct applies whenever you are representing the project or community. For example, you may be:
|
||||
|
||||
* working in a project space online or in the public (i.e.: github.com, framacolibri.org, IRC)
|
||||
* using an official project email address
|
||||
* posting via an official social media account
|
||||
* participating in an online or offline event
|
||||
|
||||
Project maintainers may further define and clarify representation of a project.
|
||||
|
||||
## Enforcement
|
||||
|
||||
You should report any instances of abusive, harassing, or otherwise unacceptable behaviour to the project team at peertube@framasoft.org. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain the anonymity of the reporter of an incident. We may post further details of specific enforcement policies separately.
|
||||
|
||||
Project maintainers who do not follow or enforce this code of conduct in good faith may face temporary or permanent consequences. These will be determined by members of the project's leadership.
|
||||
|
||||
## Attribution
|
||||
|
||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
||||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
|
||||
|
||||
[homepage]: https://www.contributor-covenant.org
|
||||
[version]: http://contributor-covenant.org/version/1/4/
|
@ -0,0 +1,9 @@
|
||||
# Code & Translators contributors
|
||||
|
||||
* [Anthony](https://cif.su/)
|
||||
|
||||
# Design
|
||||
|
||||
|
||||
# Icons
|
||||
|
@ -0,0 +1,71 @@
|
||||
Security is core to our values, and we value the input of hackers acting in good faith to help us maintain a high standard for the security and privacy for our users. This includes encouraging responsible vulnerability research and disclosure. This policy sets out our definition of good faith in the context of finding and reporting vulnerabilities, as well as what you can expect from us in return.
|
||||
|
||||
## Expectations
|
||||
|
||||
When working with us according to this policy, you can expect us to:
|
||||
- Extend Safe Harbor (see below) for your vulnerability research that is related to this policy;
|
||||
- Work with you to understand and validate your report
|
||||
- Work to remediate discovered vulnerabilities in a timely manner; and
|
||||
- Recognize your contribution to improving our security if you are the first to report a unique vulnerability, and your report triggers a code or configuration change.
|
||||
|
||||
## Safe Harbor
|
||||
|
||||
When conducting vulnerability research according to this policy, we consider this research to be:
|
||||
- Authorized in accordance with the law, and we will not initiate or support legal action against you for accidental, good faith violations of this policy;
|
||||
- Exempt from the Digital Millennium Copyright Act (DMCA), and we will not bring a claim against you for circumvention of technology controls;
|
||||
- Exempt from restrictions in our Terms & Conditions that would interfere with conducting security research, and we waive those restrictions on a limited basis for work done under this policy;
|
||||
- Lawful, helpful to the overall security of the Internet, and conducted in good faith.
|
||||
|
||||
You are expected, as always, to comply with all applicable laws.
|
||||
|
||||
If at any time you have concerns or are uncertain whether your security research is consistent with this policy, please submit a report through one of our Official Channels before going any further.
|
||||
|
||||
## Ground Rules
|
||||
|
||||
To encourage vulnerability research and to avoid any confusion between good-faith hacking and malicious attack, we ask that you:
|
||||
- Play by the rules. This includes following this policy, as well as any other relevant agreements. If there is any inconsistency between this policy and any other relevant terms, the terms of this policy will prevail.
|
||||
- Report any vulnerability you have discovered promptly.
|
||||
- Avoid violating the privacy of others, disrupting our systems, destroying data, and/or harming user experience.
|
||||
- Use only the Official Channels to discuss vulnerability information with us.
|
||||
- Keep the details of any discovered vulnerabilities confidential until they are fixed, according to the Disclosure Terms in this policy.
|
||||
- Perform testing only on in-scope systems, and respect systems and activities which are out-of-scope. Systems currently considered in-scope are the official demonstration/test servers provided by the PeerTube development team.
|
||||
- If a vulnerability provides unintended access to data: Limit the amount of data you access to the minimum required for effectively demonstrating a Proof of Concept; and cease testing and submit a report immediately if you encounter any user data during testing, such as Personally Identifiable Information (PII), Personal Healthcare Information (PHI), credit card data, or proprietary information.
|
||||
- You should only interact with test accounts you own or with explicit permission from the account holder.
|
||||
- Do not engage in extortion.
|
||||
|
||||
## Disclosure Terms
|
||||
|
||||
The vulnerability is kept private until a majority of instances known on instances.joinpeertube.org have updated to a safe version of PeerTube or applied a hotfix. The PeerTube development team coordinates efforts to update once the patch is issued.
|
||||
|
||||
## Official Channels
|
||||
|
||||
To help us receive vulnerability submissions we use the following official reporting channel:
|
||||
- peertube-security@framasoft.org
|
||||
|
||||
The following PGP key can be used to encrypt your email:
|
||||
|
||||
```
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mDMEZjD41hYJKwYBBAHaRw8BAQdAfhTpNfIk8/doN8j+PnGzNazK6p6KXEatqz1L
|
||||
ARAmlU20M1BlZXJUdWJlIFNlY3VyaXR5IDxwZWVydHViZS1zZWN1cml0eUBmcmFt
|
||||
YXNvZnQub3JnPoiTBBMWCgA7FiEEr+3Jvd9JW64FG8cvQOaXHEo/b6cFAmYw+NYC
|
||||
GwMFCwkIBwICIgIGFQoJCAsCBBYCAwECHgcCF4AACgkQQOaXHEo/b6fRbgD8DiAL
|
||||
7o3eeHuYnQe1I+SnSHU6RDVk/OY27+ZFSrWgsYMBAAA16aGGkbmme1mmig+iEMiL
|
||||
uhjVAfwuXb0VzrxqqmYMuDgEZjD41hIKKwYBBAGXVQEFAQEHQDCVpwHHyrS9rCQq
|
||||
0uXbPTWkWuf8yZJqpzZSoG3KY5JZAwEIB4h4BBgWCgAgFiEEr+3Jvd9JW64FG8cv
|
||||
QOaXHEo/b6cFAmYw+NYCGwwACgkQQOaXHEo/b6fwmAEAsiJDN2GG7sNA2ExjoNT8
|
||||
P0hnqJkaRh8WJ/pi3u+QlWABAJj5qRhA3Om7SYJjzYfe3fEnrS5cTW51qc96r7GU
|
||||
IdUI
|
||||
=y06w
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
||||
```
|
||||
|
||||
If you think you have found a vulnerability, please include the following details with your report and be as descriptive as possible:
|
||||
- The location and nature of the vulnerability,
|
||||
- A detailed description of the steps required to reproduce the vulnerability (screenshots, compressed screen recordings, and proof-of-concept scripts are all helpful), and
|
||||
- Your name/handle and a link for recognition.
|
||||
|
||||
If you would like to encrypt the information, please use our GPG key.
|
||||
|
||||
We may modify the terms of this program or terminate this program at any time. We will not apply any changes we make to these program terms retroactively.
|
@ -0,0 +1,4 @@
|
||||
src
|
||||
meta.json
|
||||
tsconfig.json
|
||||
scripts
|
@ -0,0 +1,43 @@
|
||||
# PeerTube CLI
|
||||
|
||||
## Usage
|
||||
|
||||
See https://docs.joinpeertube.org/maintain/tools#remote-tools
|
||||
|
||||
## Dev
|
||||
|
||||
## Install dependencies
|
||||
|
||||
```bash
|
||||
cd peertube-root
|
||||
yarn install --pure-lockfile
|
||||
cd apps/peertube-cli && yarn install --pure-lockfile
|
||||
```
|
||||
|
||||
## Develop
|
||||
|
||||
```bash
|
||||
cd peertube-root
|
||||
npm run dev:peertube-cli
|
||||
```
|
||||
|
||||
## Build
|
||||
|
||||
```bash
|
||||
cd peertube-root
|
||||
npm run build:peertube-cli
|
||||
```
|
||||
|
||||
## Run
|
||||
|
||||
```bash
|
||||
cd peertube-root
|
||||
node apps/peertube-cli/dist/peertube-cli.js --help
|
||||
```
|
||||
|
||||
## Publish on NPM
|
||||
|
||||
```bash
|
||||
cd peertube-root
|
||||
(cd apps/peertube-cli && npm version patch) && npm run build:peertube-cli && (cd apps/peertube-cli && npm publish --access=public)
|
||||
```
|
@ -0,0 +1,19 @@
|
||||
{
|
||||
"name": "@peertube/peertube-cli",
|
||||
"version": "1.0.2",
|
||||
"type": "module",
|
||||
"main": "dist/peertube.js",
|
||||
"bin": "dist/peertube.js",
|
||||
"engines": {
|
||||
"node": ">=16.x"
|
||||
},
|
||||
"scripts": {},
|
||||
"license": "AGPL-3.0",
|
||||
"private": false,
|
||||
"devDependencies": {
|
||||
"application-config": "^3.0.0",
|
||||
"cli-table3": "^0.6.0",
|
||||
"netrc-parser": "^3.1.6"
|
||||
},
|
||||
"dependencies": {}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
import * as esbuild from 'esbuild'
|
||||
import { readFileSync } from 'fs'
|
||||
|
||||
const packageJSON = JSON.parse(readFileSync(new URL('../package.json', import.meta.url)))
|
||||
|
||||
export const esbuildOptions = {
|
||||
entryPoints: [ './src/peertube.ts' ],
|
||||
bundle: true,
|
||||
platform: 'node',
|
||||
format: 'esm',
|
||||
target: 'node16',
|
||||
external: [
|
||||
'./lib-cov/fluent-ffmpeg',
|
||||
'pg-hstore'
|
||||
],
|
||||
outfile: './dist/peertube.js',
|
||||
banner: {
|
||||
js: `const require = (await import("node:module")).createRequire(import.meta.url);` +
|
||||
`const __filename = (await import("node:url")).fileURLToPath(import.meta.url);` +
|
||||
`const __dirname = (await import("node:path")).dirname(__filename);`
|
||||
},
|
||||
define: {
|
||||
'process.env.PACKAGE_VERSION': `'${packageJSON.version}'`
|
||||
}
|
||||
}
|
||||
|
||||
await esbuild.build(esbuildOptions)
|
@ -0,0 +1,7 @@
|
||||
import * as esbuild from 'esbuild'
|
||||
import { esbuildOptions } from './build.js'
|
||||
|
||||
const context = await esbuild.context(esbuildOptions)
|
||||
|
||||
// Enable watch mode
|
||||
await context.watch()
|
@ -0,0 +1,171 @@
|
||||
import CliTable3 from 'cli-table3'
|
||||
import prompt from 'prompt'
|
||||
import { Command } from '@commander-js/extra-typings'
|
||||
import { assignToken, buildServer, getNetrc, getSettings, writeSettings } from './shared/index.js'
|
||||
|
||||
export function defineAuthProgram () {
|
||||
const program = new Command()
|
||||
.name('auth')
|
||||
.description('Register your accounts on remote instances to use them with other commands')
|
||||
|
||||
program
|
||||
.command('add')
|
||||
.description('remember your accounts on remote instances for easier use')
|
||||
.option('-u, --url <url>', 'Server url')
|
||||
.option('-U, --username <username>', 'Username')
|
||||
.option('-p, --password <token>', 'Password')
|
||||
.option('--default', 'add the entry as the new default')
|
||||
.action(options => {
|
||||
/* eslint-disable no-import-assign */
|
||||
prompt.override = options
|
||||
prompt.start()
|
||||
prompt.get({
|
||||
properties: {
|
||||
url: {
|
||||
description: 'instance url',
|
||||
conform: value => isURLaPeerTubeInstance(value),
|
||||
message: 'It should be an URL (https://peertube.example.com)',
|
||||
required: true
|
||||
},
|
||||
username: {
|
||||
conform: value => typeof value === 'string' && value.length !== 0,
|
||||
message: 'Name must be only letters, spaces, or dashes',
|
||||
required: true
|
||||
},
|
||||
password: {
|
||||
hidden: true,
|
||||
replace: '*',
|
||||
required: true
|
||||
}
|
||||
}
|
||||
}, async (_, result) => {
|
||||
|
||||
// Check credentials
|
||||
try {
|
||||
// Strip out everything after the domain:port.
|
||||
// See https://github.com/Chocobozzz/PeerTube/issues/3520
|
||||
result.url = stripExtraneousFromPeerTubeUrl(result.url)
|
||||
|
||||
const server = buildServer(result.url)
|
||||
await assignToken(server, result.username, result.password)
|
||||
} catch (err) {
|
||||
console.error(err.message)
|
||||
process.exit(-1)
|
||||
}
|
||||
|
||||
await setInstance(result.url, result.username, result.password, options.default)
|
||||
|
||||
process.exit(0)
|
||||
})
|
||||
})
|
||||
|
||||
program
|
||||
.command('del <url>')
|
||||
.description('Unregisters a remote instance')
|
||||
.action(async url => {
|
||||
await delInstance(url)
|
||||
|
||||
process.exit(0)
|
||||
})
|
||||
|
||||
program
|
||||
.command('list')
|
||||
.description('List registered remote instances')
|
||||
.action(async () => {
|
||||
const [ settings, netrc ] = await Promise.all([ getSettings(), getNetrc() ])
|
||||
|
||||
const table = new CliTable3({
|
||||
head: [ 'instance', 'login' ],
|
||||
colWidths: [ 30, 30 ]
|
||||
}) as any
|
||||
|
||||
settings.remotes.forEach(element => {
|
||||
if (!netrc.machines[element]) return
|
||||
|
||||
table.push([
|
||||
element,
|
||||
netrc.machines[element].login
|
||||
])
|
||||
})
|
||||
|
||||
console.log(table.toString())
|
||||
|
||||
process.exit(0)
|
||||
})
|
||||
|
||||
program
|
||||
.command('set-default <url>')
|
||||
.description('Set an existing entry as default')
|
||||
.action(async url => {
|
||||
const settings = await getSettings()
|
||||
const instanceExists = settings.remotes.includes(url)
|
||||
|
||||
if (instanceExists) {
|
||||
settings.default = settings.remotes.indexOf(url)
|
||||
await writeSettings(settings)
|
||||
|
||||
process.exit(0)
|
||||
} else {
|
||||
console.log('<url> is not a registered instance.')
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
program.addHelpText('after', '\n\n Examples:\n\n' +
|
||||
' $ peertube auth add -u https://peertube.cpy.re -U "PEERTUBE_USER" --password "PEERTUBE_PASSWORD"\n' +
|
||||
' $ peertube auth add -u https://peertube.cpy.re -U root\n' +
|
||||
' $ peertube auth list\n' +
|
||||
' $ peertube auth del https://peertube.cpy.re\n'
|
||||
)
|
||||
|
||||
return program
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Private
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
async function delInstance (url: string) {
|
||||
const [ settings, netrc ] = await Promise.all([ getSettings(), getNetrc() ])
|
||||
|
||||
const index = settings.remotes.indexOf(url)
|
||||
settings.remotes.splice(index)
|
||||
|
||||
if (settings.default === index) settings.default = -1
|
||||
|
||||
await writeSettings(settings)
|
||||
|
||||
delete netrc.machines[url]
|
||||
|
||||
await netrc.save()
|
||||
}
|
||||
|
||||
async function setInstance (url: string, username: string, password: string, isDefault: boolean) {
|
||||
const [ settings, netrc ] = await Promise.all([ getSettings(), getNetrc() ])
|
||||
|
||||
if (settings.remotes.includes(url) === false) {
|
||||
settings.remotes.push(url)
|
||||
}
|
||||
|
||||
if (isDefault || settings.remotes.length === 1) {
|
||||
settings.default = settings.remotes.length - 1
|
||||
}
|
||||
|
||||
await writeSettings(settings)
|
||||
|
||||
netrc.machines[url] = { login: username, password }
|
||||
await netrc.save()
|
||||
}
|
||||
|
||||
function isURLaPeerTubeInstance (url: string) {
|
||||
return url.startsWith('http://') || url.startsWith('https://')
|
||||
}
|
||||
|
||||
function stripExtraneousFromPeerTubeUrl (url: string) {
|
||||
// Get everything before the 3rd /.
|
||||
const urlLength = url.includes('/', 8)
|
||||
? url.indexOf('/', 8)
|
||||
: url.length
|
||||
|
||||
return url.substring(0, urlLength)
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
import { Command } from '@commander-js/extra-typings'
|
||||
import { assignToken, buildServer } from './shared/index.js'
|
||||
|
||||
export function defineGetAccessProgram () {
|
||||
const program = new Command()
|
||||
.name('get-access-token')
|
||||
.description('Get a peertube access token')
|
||||
.alias('token')
|
||||
|
||||
program
|
||||
.option('-u, --url <url>', 'Server url')
|
||||
.option('-n, --username <username>', 'Username')
|
||||
.option('-p, --password <token>', 'Password')
|
||||
.action(async options => {
|
||||
try {
|
||||
if (
|
||||
!options.url ||
|
||||
!options.username ||
|
||||
!options.password
|
||||
) {
|
||||
if (!options.url) console.error('--url field is required.')
|
||||
if (!options.username) console.error('--username field is required.')
|
||||
if (!options.password) console.error('--password field is required.')
|
||||
|
||||
process.exit(-1)
|
||||
}
|
||||
|
||||
const server = buildServer(options.url)
|
||||
await assignToken(server, options.username, options.password)
|
||||
|
||||
console.log(server.accessToken)
|
||||
} catch (err) {
|
||||
console.error('Cannot get access token: ' + err.message)
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
return program
|
||||
}
|
@ -0,0 +1,167 @@
|
||||
import CliTable3 from 'cli-table3'
|
||||
import { isAbsolute } from 'path'
|
||||
import { Command } from '@commander-js/extra-typings'
|
||||
import { PluginType, PluginType_Type } from '@peertube/peertube-models'
|
||||
import { assignToken, buildServer, CommonProgramOptions, getServerCredentials } from './shared/index.js'
|
||||
|
||||
export function definePluginsProgram () {
|
||||
const program = new Command()
|
||||
|
||||
program
|
||||
.name('plugins')
|
||||
.description('Manage instance plugins/themes')
|
||||
.alias('p')
|
||||
|
||||
program
|
||||
.command('list')
|
||||
.description('List installed plugins')
|
||||
.option('-u, --url <url>', 'Server url')
|
||||
.option('-U, --username <username>', 'Username')
|
||||
.option('-p, --password <token>', 'Password')
|
||||
.option('-t, --only-themes', 'List themes only')
|
||||
.option('-P, --only-plugins', 'List plugins only')
|
||||
.action(async options => {
|
||||
try {
|
||||
await pluginsListCLI(options)
|
||||
} catch (err) {
|
||||
console.error('Cannot list plugins: ' + err.message)
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
program
|
||||
.command('install')
|
||||
.description('Install a plugin or a theme')
|
||||
.option('-u, --url <url>', 'Server url')
|
||||
.option('-U, --username <username>', 'Username')
|
||||
.option('-p, --password <token>', 'Password')
|
||||
.option('-P --path <path>', 'Install from a path')
|
||||
.option('-n, --npm-name <npmName>', 'Install from npm')
|
||||
.option('--plugin-version <pluginVersion>', 'Specify the plugin version to install (only available when installing from npm)')
|
||||
.action(async options => {
|
||||
try {
|
||||
await installPluginCLI(options)
|
||||
} catch (err) {
|
||||
console.error('Cannot install plugin: ' + err.message)
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
program
|
||||
.command('update')
|
||||
.description('Update a plugin or a theme')
|
||||
.option('-u, --url <url>', 'Server url')
|
||||
.option('-U, --username <username>', 'Username')
|
||||
.option('-p, --password <token>', 'Password')
|
||||
.option('-P --path <path>', 'Update from a path')
|
||||
.option('-n, --npm-name <npmName>', 'Update from npm')
|
||||
.action(async options => {
|
||||
try {
|
||||
await updatePluginCLI(options)
|
||||
} catch (err) {
|
||||
console.error('Cannot update plugin: ' + err.message)
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
program
|
||||
.command('uninstall')
|
||||
.description('Uninstall a plugin or a theme')
|
||||
.option('-u, --url <url>', 'Server url')
|
||||
.option('-U, --username <username>', 'Username')
|
||||
.option('-p, --password <token>', 'Password')
|
||||
.option('-n, --npm-name <npmName>', 'NPM plugin/theme name')
|
||||
.action(async options => {
|
||||
try {
|
||||
await uninstallPluginCLI(options)
|
||||
} catch (err) {
|
||||
console.error('Cannot uninstall plugin: ' + err.message)
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
return program
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
async function pluginsListCLI (options: CommonProgramOptions & { onlyThemes?: true, onlyPlugins?: true }) {
|
||||
const { url, username, password } = await getServerCredentials(options)
|
||||
const server = buildServer(url)
|
||||
await assignToken(server, username, password)
|
||||
|
||||
let pluginType: PluginType_Type
|
||||
if (options.onlyThemes) pluginType = PluginType.THEME
|
||||
if (options.onlyPlugins) pluginType = PluginType.PLUGIN
|
||||
|
||||
const { data } = await server.plugins.list({ start: 0, count: 100, sort: 'name', pluginType })
|
||||
|
||||
const table = new CliTable3({
|
||||
head: [ 'name', 'version', 'homepage' ],
|
||||
colWidths: [ 50, 20, 50 ]
|
||||
}) as any
|
||||
|
||||
for (const plugin of data) {
|
||||
const npmName = plugin.type === PluginType.PLUGIN
|
||||
? 'peertube-plugin-' + plugin.name
|
||||
: 'peertube-theme-' + plugin.name
|
||||
|
||||
table.push([
|
||||
npmName,
|
||||
plugin.version,
|
||||
plugin.homepage
|
||||
])
|
||||
}
|
||||
|
||||
console.log(table.toString())
|
||||
}
|
||||
|
||||
async function installPluginCLI (options: CommonProgramOptions & { path?: string, npmName?: string, pluginVersion?: string }) {
|
||||
if (!options.path && !options.npmName) {
|
||||
throw new Error('You need to specify the npm name or the path of the plugin you want to install.')
|
||||
}
|
||||
|
||||
if (options.path && !isAbsolute(options.path)) {
|
||||
throw new Error('Path should be absolute.')
|
||||
}
|
||||
|
||||
const { url, username, password } = await getServerCredentials(options)
|
||||
const server = buildServer(url)
|
||||
await assignToken(server, username, password)
|
||||
|
||||
await server.plugins.install({ npmName: options.npmName, path: options.path, pluginVersion: options.pluginVersion })
|
||||
|
||||
console.log('Plugin installed.')
|
||||
}
|
||||
|
||||
async function updatePluginCLI (options: CommonProgramOptions & { path?: string, npmName?: string }) {
|
||||
if (!options.path && !options.npmName) {
|
||||
throw new Error('You need to specify the npm name or the path of the plugin you want to update.')
|
||||
}
|
||||
|
||||
if (options.path && !isAbsolute(options.path)) {
|
||||
throw new Error('Path should be absolute.')
|
||||
}
|
||||
|
||||
const { url, username, password } = await getServerCredentials(options)
|
||||
const server = buildServer(url)
|
||||
await assignToken(server, username, password)
|
||||
|
||||
await server.plugins.update({ npmName: options.npmName, path: options.path })
|
||||
|
||||
console.log('Plugin updated.')
|
||||
}
|
||||
|
||||
async function uninstallPluginCLI (options: CommonProgramOptions & { npmName?: string }) {
|
||||
if (!options.npmName) {
|
||||
throw new Error('You need to specify the npm name of the plugin/theme you want to uninstall.')
|
||||
}
|
||||
|
||||
const { url, username, password } = await getServerCredentials(options)
|
||||
const server = buildServer(url)
|
||||
await assignToken(server, username, password)
|
||||
|
||||
await server.plugins.uninstall({ npmName: options.npmName })
|
||||
|
||||
console.log('Plugin uninstalled.')
|
||||
}
|
@ -0,0 +1,186 @@
|
||||
import bytes from 'bytes'
|
||||
import CliTable3 from 'cli-table3'
|
||||
import { URL } from 'url'
|
||||
import { Command } from '@commander-js/extra-typings'
|
||||
import { forceNumber, uniqify } from '@peertube/peertube-core-utils'
|
||||
import { HttpStatusCode, VideoRedundanciesTarget } from '@peertube/peertube-models'
|
||||
import { assignToken, buildServer, CommonProgramOptions, getServerCredentials } from './shared/index.js'
|
||||
|
||||
export function defineRedundancyProgram () {
|
||||
const program = new Command()
|
||||
.name('redundancy')
|
||||
.description('Manage instance redundancies')
|
||||
.alias('r')
|
||||
|
||||
program
|
||||
.command('list-remote-redundancies')
|
||||
.description('List remote redundancies on your videos')
|
||||
.option('-u, --url <url>', 'Server url')
|
||||
.option('-U, --username <username>', 'Username')
|
||||
.option('-p, --password <token>', 'Password')
|
||||
.action(async options => {
|
||||
try {
|
||||
await listRedundanciesCLI({ target: 'my-videos', ...options })
|
||||
} catch (err) {
|
||||
console.error('Cannot list remote redundancies: ' + err.message)
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
program
|
||||
.command('list-my-redundancies')
|
||||
.description('List your redundancies of remote videos')
|
||||
.option('-u, --url <url>', 'Server url')
|
||||
.option('-U, --username <username>', 'Username')
|
||||
.option('-p, --password <token>', 'Password')
|
||||
.action(async options => {
|
||||
try {
|
||||
await listRedundanciesCLI({ target: 'remote-videos', ...options })
|
||||
} catch (err) {
|
||||
console.error('Cannot list redundancies: ' + err.message)
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
program
|
||||
.command('add')
|
||||
.description('Duplicate a video in your redundancy system')
|
||||
.option('-u, --url <url>', 'Server url')
|
||||
.option('-U, --username <username>', 'Username')
|
||||
.option('-p, --password <token>', 'Password')
|
||||
.requiredOption('-v, --video <videoId>', 'Video id to duplicate', parseInt)
|
||||
.action(async options => {
|
||||
try {
|
||||
await addRedundancyCLI(options)
|
||||
} catch (err) {
|
||||
console.error('Cannot duplicate video: ' + err.message)
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
program
|
||||
.command('remove')
|
||||
.description('Remove a video from your redundancies')
|
||||
.option('-u, --url <url>', 'Server url')
|
||||
.option('-U, --username <username>', 'Username')
|
||||
.option('-p, --password <token>', 'Password')
|
||||
.requiredOption('-v, --video <videoId>', 'Video id to remove from redundancies', parseInt)
|
||||
.action(async options => {
|
||||
try {
|
||||
await removeRedundancyCLI(options)
|
||||
} catch (err) {
|
||||
console.error('Cannot remove redundancy: ' + err)
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
return program
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
async function listRedundanciesCLI (options: CommonProgramOptions & { target: VideoRedundanciesTarget }) {
|
||||
const { target } = options
|
||||
|
||||
const { url, username, password } = await getServerCredentials(options)
|
||||
const server = buildServer(url)
|
||||
await assignToken(server, username, password)
|
||||
|
||||
const { data } = await server.redundancy.listVideos({ start: 0, count: 100, sort: 'name', target })
|
||||
|
||||
const table = new CliTable3({
|
||||
head: [ 'video id', 'video name', 'video url', 'files', 'playlists', 'by instances', 'total size' ]
|
||||
}) as any
|
||||
|
||||
for (const redundancy of data) {
|
||||
const webVideoFiles = redundancy.redundancies.files
|
||||
const streamingPlaylists = redundancy.redundancies.streamingPlaylists
|
||||
|
||||
let totalSize = ''
|
||||
if (target === 'remote-videos') {
|
||||
const tmp = webVideoFiles.concat(streamingPlaylists)
|
||||
.reduce((a, b) => a + b.size, 0)
|
||||
|
||||
// FIXME: don't use external dependency to stringify bytes: we already have the functions in the client
|
||||
totalSize = bytes(tmp)
|
||||
}
|
||||
|
||||
const instances = uniqify(
|
||||
webVideoFiles.concat(streamingPlaylists)
|
||||
.map(r => r.fileUrl)
|
||||
.map(u => new URL(u).host)
|
||||
)
|
||||
|
||||
table.push([
|
||||
redundancy.id.toString(),
|
||||
redundancy.name,
|
||||
redundancy.url,
|
||||
webVideoFiles.length,
|
||||
streamingPlaylists.length,
|
||||
instances.join('\n'),
|
||||
totalSize
|
||||
])
|
||||
}
|
||||
|
||||
console.log(table.toString())
|
||||
}
|
||||
|
||||
async function addRedundancyCLI (options: { video: number } & CommonProgramOptions) {
|
||||
const { url, username, password } = await getServerCredentials(options)
|
||||
const server = buildServer(url)
|
||||
await assignToken(server, username, password)
|
||||
|
||||
if (!options.video || isNaN(options.video)) {
|
||||
throw new Error('You need to specify the video id to duplicate and it should be a number.')
|
||||
}
|
||||
|
||||
try {
|
||||
await server.redundancy.addVideo({ videoId: options.video })
|
||||
|
||||
console.log('Video will be duplicated by your instance!')
|
||||
} catch (err) {
|
||||
if (err.message.includes(HttpStatusCode.CONFLICT_409)) {
|
||||
throw new Error('This video is already duplicated by your instance.')
|
||||
}
|
||||
|
||||
if (err.message.includes(HttpStatusCode.NOT_FOUND_404)) {
|
||||
throw new Error('This video id does not exist.')
|
||||
}
|
||||
|
||||
throw err
|
||||
}
|
||||
}
|
||||
|
||||
async function removeRedundancyCLI (options: CommonProgramOptions & { video: number }) {
|
||||
const { url, username, password } = await getServerCredentials(options)
|
||||
const server = buildServer(url)
|
||||
await assignToken(server, username, password)
|
||||
|
||||
if (!options.video || isNaN(options.video)) {
|
||||
throw new Error('You need to specify the video id to remove from your redundancies')
|
||||
}
|
||||
|
||||
const videoId = forceNumber(options.video)
|
||||
|
||||
const myVideoRedundancies = await server.redundancy.listVideos({ target: 'my-videos' })
|
||||
let videoRedundancy = myVideoRedundancies.data.find(r => videoId === r.id)
|
||||
|
||||
if (!videoRedundancy) {
|
||||
const remoteVideoRedundancies = await server.redundancy.listVideos({ target: 'remote-videos' })
|
||||
videoRedundancy = remoteVideoRedundancies.data.find(r => videoId === r.id)
|
||||
}
|
||||
|
||||
if (!videoRedundancy) {
|
||||
throw new Error('Video redundancy not found.')
|
||||
}
|
||||
|
||||
const ids = videoRedundancy.redundancies.files
|
||||
.concat(videoRedundancy.redundancies.streamingPlaylists)
|
||||
.map(r => r.id)
|
||||
|
||||
for (const id of ids) {
|
||||
await server.redundancy.removeVideo({ redundancyId: id })
|
||||
}
|
||||
|
||||
console.log('Video redundancy removed!')
|
||||
}
|
@ -0,0 +1,170 @@
|
||||
import { Command } from '@commander-js/extra-typings'
|
||||
import { VideoCommentPolicy, VideoPrivacy, VideoPrivacyType } from '@peertube/peertube-models'
|
||||
import { PeerTubeServer } from '@peertube/peertube-server-commands'
|
||||
import { access, constants } from 'fs/promises'
|
||||
import { isAbsolute } from 'path'
|
||||
import { inspect } from 'util'
|
||||
import { assignToken, buildServer, getServerCredentials, listOptions } from './shared/index.js'
|
||||
|
||||
type UploadOptions = {
|
||||
url?: string
|
||||
username?: string
|
||||
password?: string
|
||||
thumbnail?: string
|
||||
preview?: string
|
||||
file?: string
|
||||
videoName?: string
|
||||
category?: number
|
||||
licence?: number
|
||||
language?: string
|
||||
tags?: string[]
|
||||
nsfw?: true
|
||||
videoDescription?: string
|
||||
privacy?: VideoPrivacyType
|
||||
channelName?: string
|
||||
noCommentsEnabled?: true
|
||||
support?: string
|
||||
noWaitTranscoding?: true
|
||||
noDownloadEnabled?: true
|
||||
}
|
||||
|
||||
export function defineUploadProgram () {
|
||||
const program = new Command('upload')
|
||||
.description('Upload a video on a PeerTube instance')
|
||||
.alias('up')
|
||||
|
||||
program
|
||||
.option('-u, --url <url>', 'Server url')
|
||||
.option('-U, --username <username>', 'Username')
|
||||
.option('-p, --password <token>', 'Password')
|
||||
.option('-b, --thumbnail <thumbnailPath>', 'Thumbnail path')
|
||||
.option('--preview <previewPath>', 'Preview path')
|
||||
.option('-f, --file <file>', 'Video absolute file path')
|
||||
.option('-n, --video-name <name>', 'Video name')
|
||||
.option('-c, --category <category_number>', 'Category number', parseInt)
|
||||
.option('-l, --licence <licence_number>', 'Licence number', parseInt)
|
||||
.option('-L, --language <language_code>', 'Language ISO 639 code (fr or en...)')
|
||||
.option('-t, --tags <tags>', 'Video tags', listOptions)
|
||||
.option('-N, --nsfw', 'Video is Not Safe For Work')
|
||||
.option('-d, --video-description <description>', 'Video description')
|
||||
.option('-P, --privacy <privacy_number>', 'Privacy', v => parseInt(v) as VideoPrivacyType)
|
||||
.option('-C, --channel-name <channel_name>', 'Channel name')
|
||||
.option('--no-comments-enabled', 'Disable video comments')
|
||||
.option('-s, --support <support>', 'Video support text')
|
||||
.option('--no-wait-transcoding', 'Do not wait transcoding before publishing the video')
|
||||
.option('--no-download-enabled', 'Disable video download')
|
||||
.option('-v, --verbose <verbose>', 'Verbosity, from 0/\'error\' to 4/\'debug\'', 'info')
|
||||
.action(async options => {
|
||||
try {
|
||||
const { url, username, password } = await getServerCredentials(options)
|
||||
|
||||
if (!options.videoName || !options.file) {
|
||||
if (!options.videoName) console.error('--video-name is required.')
|
||||
if (!options.file) console.error('--file is required.')
|
||||
|
||||
process.exit(-1)
|
||||
}
|
||||
|
||||
if (isAbsolute(options.file) === false) {
|
||||
console.error('File path should be absolute.')
|
||||
process.exit(-1)
|
||||
}
|
||||
|
||||
await run({ ...options, url, username, password })
|
||||
} catch (err) {
|
||||
console.error('Cannot upload video: ' + err.message)
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
return program
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Private
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
async function run (options: UploadOptions) {
|
||||
const { url, username, password } = options
|
||||
|
||||
const server = buildServer(url)
|
||||
await assignToken(server, username, password)
|
||||
|
||||
await access(options.file, constants.F_OK)
|
||||
|
||||
console.log('Uploading %s video...', options.videoName)
|
||||
|
||||
const baseAttributes = await buildVideoAttributesFromCommander(server, options)
|
||||
|
||||
const attributes = {
|
||||
...baseAttributes,
|
||||
|
||||
fixture: options.file,
|
||||
thumbnailfile: options.thumbnail,
|
||||
previewfile: options.preview
|
||||
}
|
||||
|
||||
try {
|
||||
await server.videos.upload({ attributes })
|
||||
console.log(`Video ${options.videoName} uploaded.`)
|
||||
process.exit(0)
|
||||
} catch (err) {
|
||||
const message = err.message || ''
|
||||
if (message.includes('413')) {
|
||||
console.error('Aborted: user quota is exceeded or video file is too big for this PeerTube instance.')
|
||||
} else {
|
||||
console.error(inspect(err))
|
||||
}
|
||||
|
||||
process.exit(-1)
|
||||
}
|
||||
}
|
||||
|
||||
async function buildVideoAttributesFromCommander (server: PeerTubeServer, options: UploadOptions) {
|
||||
const defaultBooleanAttributes = {
|
||||
nsfw: false,
|
||||
downloadEnabled: true,
|
||||
waitTranscoding: true
|
||||
}
|
||||
|
||||
const booleanAttributes: { [id in keyof typeof defaultBooleanAttributes]: boolean } | {} = {}
|
||||
|
||||
for (const key of Object.keys(defaultBooleanAttributes)) {
|
||||
if (options[key] !== undefined) {
|
||||
booleanAttributes[key] = options[key]
|
||||
} else {
|
||||
booleanAttributes[key] = defaultBooleanAttributes[key]
|
||||
}
|
||||
}
|
||||
|
||||
const videoAttributes = {
|
||||
name: options.videoName,
|
||||
category: options.category || undefined,
|
||||
licence: options.licence || undefined,
|
||||
language: options.language || undefined,
|
||||
privacy: options.privacy || VideoPrivacy.PUBLIC,
|
||||
support: options.support || undefined,
|
||||
description: options.videoDescription || undefined,
|
||||
tags: options.tags || undefined,
|
||||
|
||||
commentsPolicy: options.noCommentsEnabled !== undefined
|
||||
? options.noCommentsEnabled === true
|
||||
? VideoCommentPolicy.DISABLED
|
||||
: VideoCommentPolicy.ENABLED
|
||||
: undefined,
|
||||
|
||||
...booleanAttributes
|
||||
}
|
||||
|
||||
if (options.channelName) {
|
||||
const videoChannel = await server.channels.get({ channelName: options.channelName })
|
||||
|
||||
Object.assign(videoAttributes, { channelId: videoChannel.id })
|
||||
|
||||
if (!videoAttributes.support && videoChannel.support) {
|
||||
Object.assign(videoAttributes, { support: videoChannel.support })
|
||||
}
|
||||
}
|
||||
|
||||
return videoAttributes
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import { Command } from '@commander-js/extra-typings'
|
||||
import { defineAuthProgram } from './peertube-auth.js'
|
||||
import { defineGetAccessProgram } from './peertube-get-access-token.js'
|
||||
import { definePluginsProgram } from './peertube-plugins.js'
|
||||
import { defineRedundancyProgram } from './peertube-redundancy.js'
|
||||
import { defineUploadProgram } from './peertube-upload.js'
|
||||
import { getSettings, version } from './shared/index.js'
|
||||
|
||||
const program = new Command()
|
||||
|
||||
program
|
||||
.version(version, '-v, --version')
|
||||
.usage('[command] [options]')
|
||||
|
||||
program.addCommand(defineAuthProgram())
|
||||
program.addCommand(defineUploadProgram())
|
||||
program.addCommand(defineRedundancyProgram())
|
||||
program.addCommand(definePluginsProgram())
|
||||
program.addCommand(defineGetAccessProgram())
|
||||
|
||||
// help on no command
|
||||
if (!process.argv.slice(2).length) {
|
||||
const logo = '░P░e░e░r░T░u░b░e░'
|
||||
console.log(`
|
||||
___/),.._ ` + logo + `
|
||||
/' ,. ."'._
|
||||
( "' '-.__"-._ ,-
|
||||
\\'='='), "\\ -._-"-. -"/
|
||||
/ ""/"\\,_\\,__"" _" /,-
|
||||
/ / -" _/"/
|
||||
/ | ._\\\\ |\\ |_.".-" /
|
||||
/ | __\\)|)|),/|_." _,."
|
||||
/ \\_." " ") | ).-""---''--
|
||||
( "/.""7__-""''
|
||||
| " ."._--._
|
||||
\\ \\ (_ __ "" ".,_
|
||||
\\.,. \\ "" -"".-"
|
||||
".,_, (",_-,,,-".-
|
||||
"'-,\\_ __,-"
|
||||
",)" ")
|
||||
/"\\-"
|
||||
,"\\/
|
||||
_,.__/"\\/_ (the CLI for red chocobos)
|
||||
/ \\) "./, ".
|
||||
--/---"---" "-) )---- by Chocobozzz et al.\n`)
|
||||
}
|
||||
|
||||
getSettings()
|
||||
.then(settings => {
|
||||
const state = (settings.default === undefined || settings.default === -1)
|
||||
? 'no instance selected, commands will require explicit arguments'
|
||||
: 'instance ' + settings.remotes[settings.default] + ' selected'
|
||||
|
||||
program
|
||||
.addHelpText('after', '\n\n State: ' + state + '\n\n' +
|
||||
' Examples:\n\n' +
|
||||
' $ peertube auth add -u "PEERTUBE_URL" -U "PEERTUBE_USER" --password "PEERTUBE_PASSWORD"\n' +
|
||||
' $ peertube up <videoFile>\n'
|
||||
)
|
||||
.parse(process.argv)
|
||||
})
|
||||
.catch(err => console.error(err))
|
@ -0,0 +1,195 @@
|
||||
import applicationConfig from 'application-config'
|
||||
import { Netrc } from 'netrc-parser'
|
||||
import { join } from 'path'
|
||||
import { createLogger, format, transports } from 'winston'
|
||||
import { UserRole } from '@peertube/peertube-models'
|
||||
import { getAppNumber, isTestInstance, root } from '@peertube/peertube-node-utils'
|
||||
import { PeerTubeServer } from '@peertube/peertube-server-commands'
|
||||
|
||||
export type CommonProgramOptions = {
|
||||
url?: string
|
||||
username?: string
|
||||
password?: string
|
||||
}
|
||||
|
||||
let configName = 'PeerTube/CLI'
|
||||
if (isTestInstance()) configName += `-${getAppNumber()}`
|
||||
|
||||
const config = applicationConfig(configName)
|
||||
|
||||
const version: string = process.env.PACKAGE_VERSION
|
||||
|
||||
async function getAdminTokenOrDie (server: PeerTubeServer, username: string, password: string) {
|
||||
const token = await server.login.getAccessToken(username, password)
|
||||
const me = await server.users.getMyInfo({ token })
|
||||
|
||||
if (me.role.id !== UserRole.ADMINISTRATOR) {
|
||||
console.error('You must be an administrator.')
|
||||
process.exit(-1)
|
||||
}
|
||||
|
||||
return token
|
||||
}
|
||||
|
||||
interface Settings {
|
||||
remotes: any[]
|
||||
default: number
|
||||
}
|
||||
|
||||
async function getSettings () {
|
||||
const defaultSettings: Settings = {
|
||||
remotes: [],
|
||||
default: -1
|
||||
}
|
||||
|
||||
const data = await config.read() as Promise<Settings>
|
||||
|
||||
return Object.keys(data).length === 0
|
||||
? defaultSettings
|
||||
: data
|
||||
}
|
||||
|
||||
async function getNetrc () {
|
||||
const netrc = isTestInstance()
|
||||
? new Netrc(join(root(import.meta.url), 'test' + getAppNumber(), 'netrc'))
|
||||
: new Netrc()
|
||||
|
||||
await netrc.load()
|
||||
|
||||
return netrc
|
||||
}
|
||||
|
||||
function writeSettings (settings: Settings) {
|
||||
return config.write(settings)
|
||||
}
|
||||
|
||||
function deleteSettings () {
|
||||
return config.trash()
|
||||
}
|
||||
|
||||
function getRemoteObjectOrDie (
|
||||
options: CommonProgramOptions,
|
||||
settings: Settings,
|
||||
netrc: Netrc
|
||||
): { url: string, username: string, password: string } {
|
||||
|
||||
function exitIfNoOptions (optionNames: string[], errorPrefix: string = '') {
|
||||
let exit = false
|
||||
|
||||
for (const key of optionNames) {
|
||||
if (!options[key]) {
|
||||
if (exit === false && errorPrefix) console.error(errorPrefix)
|
||||
|
||||
console.error(`--${key} field is required`)
|
||||
exit = true
|
||||
}
|
||||
}
|
||||
|
||||
if (exit) process.exit(-1)
|
||||
}
|
||||
|
||||
// If username or password are specified, both are mandatory
|
||||
if (options.username || options.password) {
|
||||
exitIfNoOptions([ 'username', 'password' ])
|
||||
}
|
||||
|
||||
// If no available machines, url, username and password args are mandatory
|
||||
if (Object.keys(netrc.machines).length === 0) {
|
||||
exitIfNoOptions([ 'url', 'username', 'password' ], 'No account found in netrc')
|
||||
}
|
||||
|
||||
if (settings.remotes.length === 0 || settings.default === -1) {
|
||||
exitIfNoOptions([ 'url' ], 'No default instance found')
|
||||
}
|
||||
|
||||
let url: string = options.url
|
||||
let username: string = options.username
|
||||
let password: string = options.password
|
||||
|
||||
if (!url && settings.default !== -1) url = settings.remotes[settings.default]
|
||||
|
||||
const machine = netrc.machines[url]
|
||||
if ((!username || !password) && !machine) {
|
||||
console.error('Cannot find existing configuration for %s.', url)
|
||||
process.exit(-1)
|
||||
}
|
||||
|
||||
if (!username && machine) username = machine.login
|
||||
if (!password && machine) password = machine.password
|
||||
|
||||
return { url, username, password }
|
||||
}
|
||||
|
||||
function listOptions (val: string) {
|
||||
return val.split(',')
|
||||
}
|
||||
|
||||
function getServerCredentials (options: CommonProgramOptions) {
|
||||
return Promise.all([ getSettings(), getNetrc() ])
|
||||
.then(([ settings, netrc ]) => {
|
||||
return getRemoteObjectOrDie(options, settings, netrc)
|
||||
})
|
||||
}
|
||||
|
||||
function buildServer (url: string) {
|
||||
return new PeerTubeServer({ url })
|
||||
}
|
||||
|
||||
async function assignToken (server: PeerTubeServer, username: string, password: string) {
|
||||
const bodyClient = await server.login.getClient()
|
||||
const client = { id: bodyClient.client_id, secret: bodyClient.client_secret }
|
||||
|
||||
const body = await server.login.login({ client, user: { username, password } })
|
||||
|
||||
server.accessToken = body.access_token
|
||||
}
|
||||
|
||||
function getLogger (logLevel = 'info') {
|
||||
const logLevels = {
|
||||
0: 0,
|
||||
error: 0,
|
||||
1: 1,
|
||||
warn: 1,
|
||||
2: 2,
|
||||
info: 2,
|
||||
3: 3,
|
||||
verbose: 3,
|
||||
4: 4,
|
||||
debug: 4
|
||||
}
|
||||
|
||||
const logger = createLogger({
|
||||
levels: logLevels,
|
||||
format: format.combine(
|
||||
format.splat(),
|
||||
format.simple()
|
||||
),
|
||||
transports: [
|
||||
new (transports.Console)({
|
||||
level: logLevel
|
||||
})
|
||||
]
|
||||
})
|
||||
|
||||
return logger
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
version,
|
||||
getLogger,
|
||||
getSettings,
|
||||
getNetrc,
|
||||
getRemoteObjectOrDie,
|
||||
writeSettings,
|
||||
deleteSettings,
|
||||
|
||||
getServerCredentials,
|
||||
|
||||
listOptions,
|
||||
|
||||
getAdminTokenOrDie,
|
||||
buildServer,
|
||||
assignToken
|
||||
}
|
@ -0,0 +1 @@
|
||||
export * from './cli.js'
|
@ -0,0 +1,15 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./",
|
||||
"outDir": "./dist",
|
||||
"rootDir": "src",
|
||||
"tsBuildInfoFile": "./dist/.tsbuildinfo"
|
||||
},
|
||||
"references": [
|
||||
{ "path": "../../packages/core-utils" },
|
||||
{ "path": "../../packages/models" },
|
||||
{ "path": "../../packages/node-utils" },
|
||||
{ "path": "../../packages/server-commands" }
|
||||
]
|
||||
}
|
@ -0,0 +1,236 @@
|
||||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@colors/colors@1.5.0":
|
||||
version "1.5.0"
|
||||
resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9"
|
||||
integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ==
|
||||
|
||||
ansi-regex@^5.0.1:
|
||||
version "5.0.1"
|
||||
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
|
||||
integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
|
||||
|
||||
application-config-path@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/application-config-path/-/application-config-path-1.0.0.tgz#9c25b8c00ac9a342db27275abd3f38c67bbe5a05"
|
||||
integrity sha512-6ZDlLTlfqrTybVzZJDpX2K2ZufqyMyiTbOG06GpxmkmczFgTN+YYRGcTcMCXv/F5P5SrZijVjzzpPUE9BvheLg==
|
||||
|
||||
application-config@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/application-config/-/application-config-3.0.0.tgz#9adec84dd2d81e97dd78ea0dffcbf97381a1f55c"
|
||||
integrity sha512-7ViR4soQJDx2O9iLf1vGxvekkPqvwqV/AZ2OL3DNcAQrg03UjJE1VeBk7oYNoN9AKB0eNyVrcM7kPD30NKeLLw==
|
||||
dependencies:
|
||||
application-config-path "^1.0.0"
|
||||
load-json-file "^7.0.1"
|
||||
write-json-file "^5.0.0"
|
||||
|
||||
cli-table3@^0.6.0:
|
||||
version "0.6.5"
|
||||
resolved "https://registry.yarnpkg.com/cli-table3/-/cli-table3-0.6.5.tgz#013b91351762739c16a9567c21a04632e449bf2f"
|
||||
integrity sha512-+W/5efTR7y5HRD7gACw9yQjqMVvEMLBHmboM/kPWam+H+Hmyrgjh6YncVKK122YZkXrLudzTuAukUw9FnMf7IQ==
|
||||
dependencies:
|
||||
string-width "^4.2.0"
|
||||
optionalDependencies:
|
||||
"@colors/colors" "1.5.0"
|
||||
|
||||
cross-spawn@^6.0.0:
|
||||
version "6.0.6"
|
||||
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.6.tgz#30d0efa0712ddb7eb5a76e1e8721bffafa6b5d57"
|
||||
integrity sha512-VqCUuhcd1iB+dsv8gxPttb5iZh/D0iubSP21g36KXdEuf6I5JiioesUVjpCdHV9MZRUfVFlvwtIUyPfxo5trtw==
|
||||
dependencies:
|
||||
nice-try "^1.0.4"
|
||||
path-key "^2.0.1"
|
||||
semver "^5.5.0"
|
||||
shebang-command "^1.2.0"
|
||||
which "^1.2.9"
|
||||
|
||||
debug@^3.1.0:
|
||||
version "3.2.7"
|
||||
resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a"
|
||||
integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==
|
||||
dependencies:
|
||||
ms "^2.1.1"
|
||||
|
||||
detect-indent@^7.0.0:
|
||||
version "7.0.1"
|
||||
resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-7.0.1.tgz#cbb060a12842b9c4d333f1cac4aa4da1bb66bc25"
|
||||
integrity sha512-Mc7QhQ8s+cLrnUfU/Ji94vG/r8M26m8f++vyres4ZoojaRDpZ1eSIh/EpzLNwlWuvzSZ3UbDFspjFvTDXe6e/g==
|
||||
|
||||
emoji-regex@^8.0.0:
|
||||
version "8.0.0"
|
||||
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
|
||||
integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
|
||||
|
||||
execa@^0.10.0:
|
||||
version "0.10.0"
|
||||
resolved "https://registry.yarnpkg.com/execa/-/execa-0.10.0.tgz#ff456a8f53f90f8eccc71a96d11bdfc7f082cb50"
|
||||
integrity sha512-7XOMnz8Ynx1gGo/3hyV9loYNPWM94jG3+3T3Y8tsfSstFmETmENCMU/A/zj8Lyaj1lkgEepKepvd6240tBRvlw==
|
||||
dependencies:
|
||||
cross-spawn "^6.0.0"
|
||||
get-stream "^3.0.0"
|
||||
is-stream "^1.1.0"
|
||||
npm-run-path "^2.0.0"
|
||||
p-finally "^1.0.0"
|
||||
signal-exit "^3.0.0"
|
||||
strip-eof "^1.0.0"
|
||||
|
||||
get-stream@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14"
|
||||
integrity sha512-GlhdIUuVakc8SJ6kK0zAFbiGzRFzNnY4jUuEbV9UROo4Y+0Ny4fjvcZFVTeDA4odpFyOQzaw6hXukJSq/f28sQ==
|
||||
|
||||
imurmurhash@^0.1.4:
|
||||
version "0.1.4"
|
||||
resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea"
|
||||
integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==
|
||||
|
||||
is-fullwidth-code-point@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d"
|
||||
integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==
|
||||
|
||||
is-plain-obj@^4.0.0:
|
||||
version "4.1.0"
|
||||
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-4.1.0.tgz#d65025edec3657ce032fd7db63c97883eaed71f0"
|
||||
integrity sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==
|
||||
|
||||
is-stream@^1.1.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44"
|
||||
integrity sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==
|
||||
|
||||
is-typedarray@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a"
|
||||
integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==
|
||||
|
||||
isexe@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"
|
||||
integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==
|
||||
|
||||
load-json-file@^7.0.1:
|
||||
version "7.0.1"
|
||||
resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-7.0.1.tgz#a3c9fde6beffb6bedb5acf104fad6bb1604e1b00"
|
||||
integrity sha512-Gnxj3ev3mB5TkVBGad0JM6dmLiQL+o0t23JPBZ9sd+yvSLk05mFoqKBw5N8gbbkU4TNXyqCgIrl/VM17OgUIgQ==
|
||||
|
||||
ms@^2.1.1:
|
||||
version "2.1.3"
|
||||
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
|
||||
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
|
||||
|
||||
netrc-parser@^3.1.6:
|
||||
version "3.1.6"
|
||||
resolved "https://registry.yarnpkg.com/netrc-parser/-/netrc-parser-3.1.6.tgz#7243c9ec850b8e805b9bdc7eae7b1450d4a96e72"
|
||||
integrity sha512-lY+fmkqSwntAAjfP63jB4z5p5WbuZwyMCD3pInT7dpHU/Gc6Vv90SAC6A0aNiqaRGHiuZFBtiwu+pu8W/Eyotw==
|
||||
dependencies:
|
||||
debug "^3.1.0"
|
||||
execa "^0.10.0"
|
||||
|
||||
nice-try@^1.0.4:
|
||||
version "1.0.5"
|
||||
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
|
||||
integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==
|
||||
|
||||
npm-run-path@^2.0.0:
|
||||
version "2.0.2"
|
||||
resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f"
|
||||
integrity sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==
|
||||
dependencies:
|
||||
path-key "^2.0.0"
|
||||
|
||||
p-finally@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae"
|
||||
integrity sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==
|
||||
|
||||
path-key@^2.0.0, path-key@^2.0.1:
|
||||
version "2.0.1"
|
||||
resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40"
|
||||
integrity sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==
|
||||
|
||||
semver@^5.5.0:
|
||||
version "5.7.2"
|
||||
resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8"
|
||||
integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==
|
||||
|
||||
shebang-command@^1.2.0:
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
|
||||
integrity sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==
|
||||
dependencies:
|
||||
shebang-regex "^1.0.0"
|
||||
|
||||
shebang-regex@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"
|
||||
integrity sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==
|
||||
|
||||
signal-exit@^3.0.0, signal-exit@^3.0.2:
|
||||
version "3.0.7"
|
||||
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9"
|
||||
integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==
|
||||
|
||||
sort-keys@^5.0.0:
|
||||
version "5.1.0"
|
||||
resolved "https://registry.yarnpkg.com/sort-keys/-/sort-keys-5.1.0.tgz#50a3f3d1ad3c5a76d043e0aeeba7299241e9aa5c"
|
||||
integrity sha512-aSbHV0DaBcr7u0PVHXzM6NbZNAtrr9sF6+Qfs9UUVG7Ll3jQ6hHi8F/xqIIcn2rvIVbr0v/2zyjSdwSV47AgLQ==
|
||||
dependencies:
|
||||
is-plain-obj "^4.0.0"
|
||||
|
||||
string-width@^4.2.0:
|
||||
version "4.2.3"
|
||||
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
|
||||
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
|
||||
dependencies:
|
||||
emoji-regex "^8.0.0"
|
||||
is-fullwidth-code-point "^3.0.0"
|
||||
strip-ansi "^6.0.1"
|
||||
|
||||
strip-ansi@^6.0.1:
|
||||
version "6.0.1"
|
||||
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
|
||||
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
|
||||
dependencies:
|
||||
ansi-regex "^5.0.1"
|
||||
|
||||
strip-eof@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf"
|
||||
integrity sha512-7FCwGGmx8mD5xQd3RPUvnSpUXHM3BWuzjtpD4TXsfcZ9EL4azvVVUscFYwD9nx8Kh+uCBC00XBtAykoMHwTh8Q==
|
||||
|
||||
typedarray-to-buffer@^3.1.5:
|
||||
version "3.1.5"
|
||||
resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz#a97ee7a9ff42691b9f783ff1bc5112fe3fca9080"
|
||||
integrity sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==
|
||||
dependencies:
|
||||
is-typedarray "^1.0.0"
|
||||
|
||||
which@^1.2.9:
|
||||
version "1.3.1"
|
||||
resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a"
|
||||
integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==
|
||||
dependencies:
|
||||
isexe "^2.0.0"
|
||||
|
||||
write-file-atomic@^3.0.3:
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-3.0.3.tgz#56bd5c5a5c70481cd19c571bd39ab965a5de56e8"
|
||||
integrity sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==
|
||||
dependencies:
|
||||
imurmurhash "^0.1.4"
|
||||
is-typedarray "^1.0.0"
|
||||
signal-exit "^3.0.2"
|
||||
typedarray-to-buffer "^3.1.5"
|
||||
|
||||
write-json-file@^5.0.0:
|
||||
version "5.0.0"
|
||||
resolved "https://registry.yarnpkg.com/write-json-file/-/write-json-file-5.0.0.tgz#11c329a8ea9e8e23fb92a87cc27412a15f87708b"
|
||||
integrity sha512-ddSsCLa4aQ3kI21BthINo4q905/wfhvQ3JL3774AcRjBaiQmfn5v4rw77jQ7T6CmAit9VOQO+FsLyPkwxoB1fw==
|
||||
dependencies:
|
||||
detect-indent "^7.0.0"
|
||||
is-plain-obj "^4.0.0"
|
||||
sort-keys "^5.0.0"
|
||||
write-file-atomic "^3.0.3"
|
@ -0,0 +1,3 @@
|
||||
node_modules
|
||||
dist
|
||||
meta.json
|
@ -0,0 +1,4 @@
|
||||
src
|
||||
meta.json
|
||||
tsconfig.json
|
||||
scripts
|
@ -0,0 +1,43 @@
|
||||
# PeerTube runner
|
||||
|
||||
Runner program to execute jobs (transcoding...) of remote PeerTube instances.
|
||||
|
||||
Commands below has to be run at the root of PeerTube git repository.
|
||||
|
||||
## Dev
|
||||
|
||||
### Install dependencies
|
||||
|
||||
```bash
|
||||
cd peertube-root
|
||||
yarn install --pure-lockfile
|
||||
cd apps/peertube-runner && yarn install --pure-lockfile
|
||||
```
|
||||
|
||||
### Develop
|
||||
|
||||
```bash
|
||||
cd peertube-root
|
||||
npm run dev:peertube-runner
|
||||
```
|
||||
|
||||
### Build
|
||||
|
||||
```bash
|
||||
cd peertube-root
|
||||
npm run build:peertube-runner
|
||||
```
|
||||
|
||||
### Run
|
||||
|
||||
```bash
|
||||
cd peertube-root
|
||||
node apps/peertube-runner/dist/peertube-runner.js --help
|
||||
```
|
||||
|
||||
### Publish on NPM
|
||||
|
||||
```bash
|
||||
cd peertube-root
|
||||
(cd apps/peertube-runner && npm version patch) && npm run build:peertube-runner && (cd apps/peertube-runner && npm publish --access=public)
|
||||
```
|
@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "@peertube/peertube-runner",
|
||||
"version": "0.0.22",
|
||||
"type": "module",
|
||||
"main": "dist/peertube-runner.js",
|
||||
"bin": "dist/peertube-runner.js",
|
||||
"engines": {
|
||||
"node": ">=16.x"
|
||||
},
|
||||
"license": "AGPL-3.0",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@iarna/toml": "^2.2.5",
|
||||
"@peertube/net-ipc": "^2.2.0",
|
||||
"@types/follow-redirects": "1.14.4",
|
||||
"env-paths": "^3.0.0",
|
||||
"follow-redirects": "^1.15.5",
|
||||
"pino": "^9.2.0",
|
||||
"pino-pretty": "^11.2.1"
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
import * as esbuild from 'esbuild'
|
||||
import { readFileSync } from 'fs'
|
||||
|
||||
const packageJSON = JSON.parse(readFileSync(new URL('../package.json', import.meta.url)))
|
||||
|
||||
export const esbuildOptions = {
|
||||
entryPoints: [ './src/peertube-runner.ts' ],
|
||||
bundle: true,
|
||||
platform: 'node',
|
||||
format: 'esm',
|
||||
target: 'node16',
|
||||
external: [
|
||||
'./lib-cov/fluent-ffmpeg',
|
||||
'pg-hstore'
|
||||
],
|
||||
outfile: './dist/peertube-runner.js',
|
||||
banner: {
|
||||
js: `const require = (await import("node:module")).createRequire(import.meta.url);` +
|
||||
`const __filename = (await import("node:url")).fileURLToPath(import.meta.url);` +
|
||||
`const __dirname = (await import("node:path")).dirname(__filename);`
|
||||
},
|
||||
define: {
|
||||
'process.env.PACKAGE_VERSION': `'${packageJSON.version}'`
|
||||
}
|
||||
}
|
||||
|
||||
await esbuild.build(esbuildOptions)
|
@ -0,0 +1,7 @@
|
||||
import * as esbuild from 'esbuild'
|
||||
import { esbuildOptions } from './build.js'
|
||||
|
||||
const context = await esbuild.context(esbuildOptions)
|
||||
|
||||
// Enable watch mode
|
||||
await context.watch()
|
@ -0,0 +1,113 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
import { Command, InvalidArgumentError } from '@commander-js/extra-typings'
|
||||
import { RunnerJobType } from '@peertube/peertube-models'
|
||||
import { listRegistered, registerRunner, unregisterRunner } from './register/index.js'
|
||||
import { RunnerServer } from './server/index.js'
|
||||
import { getSupportedJobsList } from './server/shared/supported-job.js'
|
||||
import { ConfigManager, logger } from './shared/index.js'
|
||||
|
||||
const program = new Command()
|
||||
.version(process.env.PACKAGE_VERSION)
|
||||
.option(
|
||||
'--id <id>',
|
||||
'Runner server id, so you can run multiple PeerTube server runners with different configurations on the same machine',
|
||||
'default'
|
||||
)
|
||||
.option('--verbose', 'Run in verbose mode')
|
||||
.hook('preAction', thisCommand => {
|
||||
const options = thisCommand.opts()
|
||||
|
||||
ConfigManager.Instance.init(options.id)
|
||||
|
||||
if (options.verbose === true) {
|
||||
logger.level = 'debug'
|
||||
}
|
||||
})
|
||||
|
||||
program.command('server')
|
||||
.description('Run in server mode, to execute remote jobs of registered PeerTube instances')
|
||||
.option(
|
||||
'--enable-job <type>',
|
||||
'Enable this job type (multiple --enable-job options can be specified). ' +
|
||||
'By default all supported jobs are enabled). ' +
|
||||
'Supported job types: ' + getSupportedJobsList().join(', '),
|
||||
(value: RunnerJobType, previous: RunnerJobType[]) => [ ...previous, value ],
|
||||
[]
|
||||
)
|
||||
.action(async options => {
|
||||
try {
|
||||
let enabledJobs: Set<RunnerJobType>
|
||||
|
||||
if (options.enableJob) {
|
||||
for (const jobType of options.enableJob) {
|
||||
if (getSupportedJobsList().includes(jobType) !== true) {
|
||||
throw new InvalidArgumentError(`${jobType} is not a supported job`)
|
||||
}
|
||||
|
||||
enabledJobs = new Set(options.enableJob)
|
||||
}
|
||||
}
|
||||
|
||||
await new RunnerServer(enabledJobs).run()
|
||||
} catch (err) {
|
||||
logger.error(err, 'Cannot run PeerTube runner as server mode')
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
program.command('register')
|
||||
.description('Register a new PeerTube instance to process runner jobs')
|
||||
.requiredOption('--url <url>', 'PeerTube instance URL', parseUrl)
|
||||
.requiredOption('--registration-token <token>', 'Runner registration token (can be found in PeerTube instance administration')
|
||||
.requiredOption('--runner-name <name>', 'Runner name')
|
||||
.option('--runner-description <description>', 'Runner description')
|
||||
.action(async options => {
|
||||
try {
|
||||
await registerRunner(options)
|
||||
} catch (err) {
|
||||
console.error('Cannot register this PeerTube runner.')
|
||||
console.error(err)
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
program.command('unregister')
|
||||
.description('Unregister the runner from PeerTube instance')
|
||||
.requiredOption('--url <url>', 'PeerTube instance URL', parseUrl)
|
||||
.requiredOption('--runner-name <name>', 'Runner name')
|
||||
.action(async options => {
|
||||
try {
|
||||
await unregisterRunner(options)
|
||||
} catch (err) {
|
||||
console.error('Cannot unregister this PeerTube runner.')
|
||||
console.error(err)
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
program.command('list-registered')
|
||||
.description('List registered PeerTube instances')
|
||||
.action(async () => {
|
||||
try {
|
||||
await listRegistered()
|
||||
} catch (err) {
|
||||
console.error('Cannot list registered PeerTube instances.')
|
||||
console.error(err)
|
||||
process.exit(-1)
|
||||
}
|
||||
})
|
||||
|
||||
program.parse()
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Private
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function parseUrl (url: string) {
|
||||
if (url.startsWith('http://') !== true && url.startsWith('https://') !== true) {
|
||||
throw new InvalidArgumentError('URL should start with a http:// or https://')
|
||||
}
|
||||
|
||||
return url
|
||||
}
|
@ -0,0 +1 @@
|
||||
export * from './register.js'
|
@ -0,0 +1,36 @@
|
||||
import { IPCClient } from '../shared/ipc/index.js'
|
||||
|
||||
export async function registerRunner (options: {
|
||||
url: string
|
||||
registrationToken: string
|
||||
runnerName: string
|
||||
runnerDescription?: string
|
||||
}) {
|
||||
const client = new IPCClient()
|
||||
await client.run()
|
||||
|
||||
await client.askRegister(options)
|
||||
|
||||
client.stop()
|
||||
}
|
||||
|
||||
export async function unregisterRunner (options: {
|
||||
url: string
|
||||
runnerName: string
|
||||
}) {
|
||||
const client = new IPCClient()
|
||||
await client.run()
|
||||
|
||||
await client.askUnregister(options)
|
||||
|
||||
client.stop()
|
||||
}
|
||||
|
||||
export async function listRegistered () {
|
||||
const client = new IPCClient()
|
||||
await client.run()
|
||||
|
||||
await client.askListRegistered()
|
||||
|
||||
client.stop()
|
||||
}
|
@ -0,0 +1 @@
|
||||
export * from './server.js'
|
@ -0,0 +1,2 @@
|
||||
export * from './shared/index.js'
|
||||
export * from './process.js'
|
@ -0,0 +1,51 @@
|
||||
import {
|
||||
RunnerJobLiveRTMPHLSTranscodingPayload,
|
||||
RunnerJobStudioTranscodingPayload,
|
||||
RunnerJobTranscriptionPayload,
|
||||
RunnerJobVODAudioMergeTranscodingPayload,
|
||||
RunnerJobVODHLSTranscodingPayload,
|
||||
RunnerJobVODWebVideoTranscodingPayload
|
||||
} from '@peertube/peertube-models'
|
||||
import { logger } from '../../shared/index.js'
|
||||
import { processAudioMergeTranscoding, processHLSTranscoding, ProcessOptions, processWebVideoTranscoding } from './shared/index.js'
|
||||
import { ProcessLiveRTMPHLSTranscoding } from './shared/process-live.js'
|
||||
import { processStudioTranscoding } from './shared/process-studio.js'
|
||||
import { processVideoTranscription } from './shared/process-transcription.js'
|
||||
|
||||
export async function processJob (options: ProcessOptions) {
|
||||
const { server, job } = options
|
||||
|
||||
logger.info(`[${server.url}] Processing job of type ${job.type}: ${job.uuid}`, { payload: job.payload })
|
||||
|
||||
switch (job.type) {
|
||||
case 'vod-audio-merge-transcoding':
|
||||
await processAudioMergeTranscoding(options as ProcessOptions<RunnerJobVODAudioMergeTranscodingPayload>)
|
||||
break
|
||||
|
||||
case 'vod-web-video-transcoding':
|
||||
await processWebVideoTranscoding(options as ProcessOptions<RunnerJobVODWebVideoTranscodingPayload>)
|
||||
break
|
||||
|
||||
case 'vod-hls-transcoding':
|
||||
await processHLSTranscoding(options as ProcessOptions<RunnerJobVODHLSTranscodingPayload>)
|
||||
break
|
||||
|
||||
case 'live-rtmp-hls-transcoding':
|
||||
await new ProcessLiveRTMPHLSTranscoding(options as ProcessOptions<RunnerJobLiveRTMPHLSTranscodingPayload>).process()
|
||||
break
|
||||
|
||||
case 'video-studio-transcoding':
|
||||
await processStudioTranscoding(options as ProcessOptions<RunnerJobStudioTranscodingPayload>)
|
||||
break
|
||||
|
||||
case 'video-transcription':
|
||||
await processVideoTranscription(options as ProcessOptions<RunnerJobTranscriptionPayload>)
|
||||
break
|
||||
|
||||
default:
|
||||
logger.error(`Unknown job ${job.type} to process`)
|
||||
return
|
||||
}
|
||||
|
||||
logger.info(`[${server.url}] Finished processing job of type ${job.type}: ${job.uuid}`)
|
||||
}
|
@ -0,0 +1,119 @@
|
||||
import { pick } from '@peertube/peertube-core-utils'
|
||||
import { FFmpegEdition, FFmpegLive, FFmpegVOD, getDefaultAvailableEncoders, getDefaultEncodersToTry } from '@peertube/peertube-ffmpeg'
|
||||
import { RunnerJob, RunnerJobPayload } from '@peertube/peertube-models'
|
||||
import { buildUUID } from '@peertube/peertube-node-utils'
|
||||
import { PeerTubeServer } from '@peertube/peertube-server-commands'
|
||||
import { remove } from 'fs-extra/esm'
|
||||
import { join } from 'path'
|
||||
import { ConfigManager, downloadFile, logger } from '../../../shared/index.js'
|
||||
import { getWinstonLogger } from './winston-logger.js'
|
||||
|
||||
export type JobWithToken <T extends RunnerJobPayload = RunnerJobPayload> = RunnerJob<T> & { jobToken: string }
|
||||
|
||||
export type ProcessOptions <T extends RunnerJobPayload = RunnerJobPayload> = {
|
||||
server: PeerTubeServer
|
||||
job: JobWithToken<T>
|
||||
runnerToken: string
|
||||
}
|
||||
|
||||
export async function downloadInputFile (options: {
|
||||
url: string
|
||||
job: JobWithToken
|
||||
runnerToken: string
|
||||
}) {
|
||||
const { url, job, runnerToken } = options
|
||||
const destination = join(ConfigManager.Instance.getTranscodingDirectory(), buildUUID())
|
||||
|
||||
try {
|
||||
await downloadFile({ url, jobToken: job.jobToken, runnerToken, destination })
|
||||
} catch (err) {
|
||||
remove(destination)
|
||||
.catch(err => logger.error({ err }, `Cannot remove ${destination}`))
|
||||
|
||||
throw err
|
||||
}
|
||||
|
||||
return destination
|
||||
}
|
||||
|
||||
export async function downloadSeparatedAudioFileIfNeeded (options: {
|
||||
urls: string[]
|
||||
job: JobWithToken
|
||||
runnerToken: string
|
||||
}) {
|
||||
const { urls } = options
|
||||
|
||||
if (!urls || urls.length === 0) return undefined
|
||||
|
||||
return downloadInputFile({ url: urls[0], ...pick(options, [ 'job', 'runnerToken' ]) })
|
||||
}
|
||||
|
||||
export function scheduleTranscodingProgress (options: {
|
||||
server: PeerTubeServer
|
||||
runnerToken: string
|
||||
job: JobWithToken
|
||||
progressGetter: () => number
|
||||
}) {
|
||||
const { job, server, progressGetter, runnerToken } = options
|
||||
|
||||
const updateInterval = ConfigManager.Instance.isTestInstance()
|
||||
? 500
|
||||
: 60000
|
||||
|
||||
const update = () => {
|
||||
server.runnerJobs.update({ jobToken: job.jobToken, jobUUID: job.uuid, runnerToken, progress: progressGetter() })
|
||||
.catch(err => logger.error({ err }, 'Cannot send job progress'))
|
||||
}
|
||||
|
||||
const interval = setInterval(() => {
|
||||
update()
|
||||
}, updateInterval)
|
||||
|
||||
update()
|
||||
|
||||
return interval
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export function buildFFmpegVOD (options: {
|
||||
onJobProgress: (progress: number) => void
|
||||
}) {
|
||||
const { onJobProgress } = options
|
||||
|
||||
return new FFmpegVOD({
|
||||
...getCommonFFmpegOptions(),
|
||||
|
||||
updateJobProgress: arg => {
|
||||
const progress = arg < 0 || arg > 100
|
||||
? undefined
|
||||
: arg
|
||||
|
||||
onJobProgress(progress)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
export function buildFFmpegLive () {
|
||||
return new FFmpegLive(getCommonFFmpegOptions())
|
||||
}
|
||||
|
||||
export function buildFFmpegEdition () {
|
||||
return new FFmpegEdition(getCommonFFmpegOptions())
|
||||
}
|
||||
|
||||
function getCommonFFmpegOptions () {
|
||||
const config = ConfigManager.Instance.getConfig()
|
||||
|
||||
return {
|
||||
niceness: config.ffmpeg.nice,
|
||||
threads: config.ffmpeg.threads,
|
||||
tmpDirectory: ConfigManager.Instance.getTranscodingDirectory(),
|
||||
profile: 'default',
|
||||
availableEncoders: {
|
||||
available: getDefaultAvailableEncoders(),
|
||||
encodersToTry: getDefaultEncodersToTry()
|
||||
},
|
||||
logger: getWinstonLogger()
|
||||
}
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
export * from './common.js'
|
||||
export * from './process-vod.js'
|
||||
export * from './winston-logger.js'
|
@ -0,0 +1,387 @@
|
||||
import { wait } from '@peertube/peertube-core-utils'
|
||||
import {
|
||||
ffprobePromise,
|
||||
getVideoStreamBitrate,
|
||||
getVideoStreamDimensionsInfo,
|
||||
hasAudioStream,
|
||||
hasVideoStream
|
||||
} from '@peertube/peertube-ffmpeg'
|
||||
import {
|
||||
LiveRTMPHLSTranscodingSuccess,
|
||||
LiveRTMPHLSTranscodingUpdatePayload,
|
||||
PeerTubeProblemDocument,
|
||||
RunnerJobLiveRTMPHLSTranscodingPayload,
|
||||
ServerErrorCode
|
||||
} from '@peertube/peertube-models'
|
||||
import { buildUUID } from '@peertube/peertube-node-utils'
|
||||
import { FSWatcher, watch } from 'chokidar'
|
||||
import { FfmpegCommand } from 'fluent-ffmpeg'
|
||||
import { ensureDir, remove } from 'fs-extra/esm'
|
||||
import { readFile } from 'fs/promises'
|
||||
import { basename, join } from 'path'
|
||||
import { ConfigManager } from '../../../shared/config-manager.js'
|
||||
import { logger } from '../../../shared/index.js'
|
||||
import { buildFFmpegLive, ProcessOptions } from './common.js'
|
||||
|
||||
type CustomLiveRTMPHLSTranscodingUpdatePayload =
|
||||
Omit<LiveRTMPHLSTranscodingUpdatePayload, 'resolutionPlaylistFile'> & { resolutionPlaylistFile?: [ Buffer, string ] | Blob | string }
|
||||
|
||||
export class ProcessLiveRTMPHLSTranscoding {
|
||||
|
||||
private readonly outputPath: string
|
||||
private readonly fsWatchers: FSWatcher[] = []
|
||||
|
||||
// Playlist name -> chunks
|
||||
private readonly pendingChunksPerPlaylist = new Map<string, string[]>()
|
||||
|
||||
private readonly playlistsCreated = new Set<string>()
|
||||
private allPlaylistsCreated = false
|
||||
|
||||
private latestFilteredPlaylistContent: { [name: string]: string } = {}
|
||||
|
||||
private ffmpegCommand: FfmpegCommand
|
||||
|
||||
private ended = false
|
||||
private errored = false
|
||||
|
||||
constructor (private readonly options: ProcessOptions<RunnerJobLiveRTMPHLSTranscodingPayload>) {
|
||||
this.outputPath = join(ConfigManager.Instance.getTranscodingDirectory(), buildUUID())
|
||||
|
||||
logger.debug(`Using ${this.outputPath} to process live rtmp hls transcoding job ${options.job.uuid}`)
|
||||
}
|
||||
|
||||
process () {
|
||||
const job = this.options.job
|
||||
const payload = job.payload
|
||||
|
||||
return new Promise<void>(async (res, rej) => {
|
||||
try {
|
||||
await ensureDir(this.outputPath)
|
||||
|
||||
logger.info(`Probing ${payload.input.rtmpUrl}`)
|
||||
const probe = await ffprobePromise(payload.input.rtmpUrl)
|
||||
logger.info({ probe }, `Probed ${payload.input.rtmpUrl}`)
|
||||
|
||||
const hasAudio = await hasAudioStream(payload.input.rtmpUrl, probe)
|
||||
const hasVideo = await hasVideoStream(payload.input.rtmpUrl, probe)
|
||||
const bitrate = await getVideoStreamBitrate(payload.input.rtmpUrl, probe)
|
||||
const { ratio } = await getVideoStreamDimensionsInfo(payload.input.rtmpUrl, probe)
|
||||
|
||||
const m3u8Watcher = watch(this.outputPath + '/*.m3u8')
|
||||
this.fsWatchers.push(m3u8Watcher)
|
||||
|
||||
const tsWatcher = watch(this.outputPath + '/*.ts')
|
||||
this.fsWatchers.push(tsWatcher)
|
||||
|
||||
m3u8Watcher.on('change', p => {
|
||||
logger.debug(`${p} m3u8 playlist changed`)
|
||||
})
|
||||
|
||||
m3u8Watcher.on('add', p => {
|
||||
this.playlistsCreated.add(p)
|
||||
|
||||
if (this.playlistsCreated.size === this.options.job.payload.output.toTranscode.length + 1) {
|
||||
this.allPlaylistsCreated = true
|
||||
logger.info('All m3u8 playlists are created.')
|
||||
}
|
||||
})
|
||||
|
||||
tsWatcher.on('add', async p => {
|
||||
try {
|
||||
await this.sendPendingChunks()
|
||||
} catch (err) {
|
||||
this.onUpdateError({ err, rej, res })
|
||||
}
|
||||
|
||||
const playlistName = this.getPlaylistIdFromTS(p)
|
||||
|
||||
const pendingChunks = this.pendingChunksPerPlaylist.get(playlistName) || []
|
||||
pendingChunks.push(p)
|
||||
|
||||
this.pendingChunksPerPlaylist.set(playlistName, pendingChunks)
|
||||
})
|
||||
|
||||
tsWatcher.on('unlink', p => {
|
||||
this.sendDeletedChunkUpdate(p)
|
||||
.catch(err => this.onUpdateError({ err, rej, res }))
|
||||
})
|
||||
|
||||
this.ffmpegCommand = await buildFFmpegLive().getLiveTranscodingCommand({
|
||||
inputUrl: payload.input.rtmpUrl,
|
||||
|
||||
outPath: this.outputPath,
|
||||
masterPlaylistName: 'master.m3u8',
|
||||
|
||||
segmentListSize: payload.output.segmentListSize,
|
||||
segmentDuration: payload.output.segmentDuration,
|
||||
|
||||
toTranscode: payload.output.toTranscode,
|
||||
splitAudioAndVideo: true,
|
||||
|
||||
bitrate,
|
||||
ratio,
|
||||
|
||||
hasAudio,
|
||||
hasVideo,
|
||||
probe
|
||||
})
|
||||
|
||||
logger.info(`Running live transcoding for ${payload.input.rtmpUrl}`)
|
||||
|
||||
this.ffmpegCommand.on('error', (err, stdout, stderr) => {
|
||||
this.onFFmpegError({ err, stdout, stderr })
|
||||
|
||||
res()
|
||||
})
|
||||
|
||||
this.ffmpegCommand.on('end', () => {
|
||||
this.onFFmpegEnded()
|
||||
.catch(err => logger.error({ err }, 'Error in FFmpeg end handler'))
|
||||
|
||||
res()
|
||||
})
|
||||
|
||||
this.ffmpegCommand.run()
|
||||
} catch (err) {
|
||||
rej(err)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
private onUpdateError (options: {
|
||||
err: Error
|
||||
res: () => void
|
||||
rej: (reason?: any) => void
|
||||
}) {
|
||||
const { err, res, rej } = options
|
||||
|
||||
if (this.errored) return
|
||||
if (this.ended) return
|
||||
|
||||
this.errored = true
|
||||
|
||||
this.ffmpegCommand.kill('SIGINT')
|
||||
|
||||
const type = ((err as any).res?.body as PeerTubeProblemDocument)?.code
|
||||
if (type === ServerErrorCode.RUNNER_JOB_NOT_IN_PROCESSING_STATE) {
|
||||
logger.info('Stopping transcoding as the job is not in processing state anymore')
|
||||
|
||||
this.sendSuccess()
|
||||
.catch(err => logger.error({ err }, 'Cannot send success'))
|
||||
|
||||
res()
|
||||
} else {
|
||||
logger.error({ err }, 'Cannot send update after added/deleted chunk, stopping live transcoding')
|
||||
|
||||
this.sendError(err)
|
||||
.catch(subErr => logger.error({ err: subErr }, 'Cannot send error'))
|
||||
|
||||
rej(err)
|
||||
}
|
||||
|
||||
this.cleanup()
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
private onFFmpegError (options: {
|
||||
err: any
|
||||
stdout: string
|
||||
stderr: string
|
||||
}) {
|
||||
const { err, stdout, stderr } = options
|
||||
|
||||
// Don't care that we killed the ffmpeg process
|
||||
if (err?.message?.includes('Exiting normally')) return
|
||||
if (this.errored) return
|
||||
if (this.ended) return
|
||||
|
||||
this.errored = true
|
||||
|
||||
logger.error({ err, stdout, stderr }, 'FFmpeg transcoding error.')
|
||||
|
||||
this.sendError(err)
|
||||
.catch(subErr => logger.error({ err: subErr }, 'Cannot send error'))
|
||||
|
||||
this.cleanup()
|
||||
}
|
||||
|
||||
private async sendError (err: Error) {
|
||||
await this.options.server.runnerJobs.error({
|
||||
jobToken: this.options.job.jobToken,
|
||||
jobUUID: this.options.job.uuid,
|
||||
runnerToken: this.options.runnerToken,
|
||||
message: err.message
|
||||
})
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
private async onFFmpegEnded () {
|
||||
if (this.ended) return
|
||||
|
||||
this.ended = true
|
||||
logger.info('FFmpeg ended, sending success to server')
|
||||
|
||||
// Wait last ffmpeg chunks generation
|
||||
await wait(1500)
|
||||
|
||||
this.sendSuccess()
|
||||
.catch(err => logger.error({ err }, 'Cannot send success'))
|
||||
|
||||
this.cleanup()
|
||||
}
|
||||
|
||||
private async sendSuccess () {
|
||||
const successBody: LiveRTMPHLSTranscodingSuccess = {}
|
||||
|
||||
await this.options.server.runnerJobs.success({
|
||||
jobToken: this.options.job.jobToken,
|
||||
jobUUID: this.options.job.uuid,
|
||||
runnerToken: this.options.runnerToken,
|
||||
payload: successBody
|
||||
})
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
private sendDeletedChunkUpdate (deletedChunk: string): Promise<any> {
|
||||
if (this.ended) return Promise.resolve()
|
||||
|
||||
logger.debug(`Sending removed live chunk ${deletedChunk} update`)
|
||||
|
||||
const videoChunkFilename = basename(deletedChunk)
|
||||
|
||||
let payload: CustomLiveRTMPHLSTranscodingUpdatePayload = {
|
||||
type: 'remove-chunk',
|
||||
videoChunkFilename
|
||||
}
|
||||
|
||||
if (this.allPlaylistsCreated) {
|
||||
const playlistName = this.getPlaylistName(videoChunkFilename)
|
||||
|
||||
payload = {
|
||||
...payload,
|
||||
|
||||
masterPlaylistFile: join(this.outputPath, 'master.m3u8'),
|
||||
resolutionPlaylistFilename: playlistName,
|
||||
resolutionPlaylistFile: this.buildPlaylistFileParam(playlistName)
|
||||
}
|
||||
}
|
||||
|
||||
return this.updateWithRetry(payload)
|
||||
}
|
||||
|
||||
private async sendPendingChunks (): Promise<any> {
|
||||
if (this.ended) return Promise.resolve()
|
||||
|
||||
const parallelPromises: Promise<any>[] = []
|
||||
|
||||
for (const playlist of this.pendingChunksPerPlaylist.keys()) {
|
||||
let sequentialPromises: Promise<any>
|
||||
|
||||
for (const chunk of this.pendingChunksPerPlaylist.get(playlist)) {
|
||||
logger.debug(`Sending added live chunk ${chunk} update`)
|
||||
|
||||
const videoChunkFilename = basename(chunk)
|
||||
|
||||
const payloadBuilder = async () => {
|
||||
let payload: CustomLiveRTMPHLSTranscodingUpdatePayload = {
|
||||
type: 'add-chunk',
|
||||
videoChunkFilename,
|
||||
videoChunkFile: chunk
|
||||
}
|
||||
|
||||
if (this.allPlaylistsCreated) {
|
||||
const playlistName = this.getPlaylistName(videoChunkFilename)
|
||||
|
||||
await this.updatePlaylistContent(playlistName, videoChunkFilename)
|
||||
|
||||
payload = {
|
||||
...payload,
|
||||
|
||||
masterPlaylistFile: join(this.outputPath, 'master.m3u8'),
|
||||
resolutionPlaylistFilename: playlistName,
|
||||
resolutionPlaylistFile: this.buildPlaylistFileParam(playlistName)
|
||||
}
|
||||
}
|
||||
|
||||
return payload
|
||||
}
|
||||
|
||||
const p = payloadBuilder().then(p => this.updateWithRetry(p))
|
||||
|
||||
if (!sequentialPromises) sequentialPromises = p
|
||||
else sequentialPromises = sequentialPromises.then(() => p)
|
||||
}
|
||||
|
||||
parallelPromises.push(sequentialPromises)
|
||||
this.pendingChunksPerPlaylist.set(playlist, [])
|
||||
}
|
||||
|
||||
await Promise.all(parallelPromises)
|
||||
}
|
||||
|
||||
private async updateWithRetry (payload: CustomLiveRTMPHLSTranscodingUpdatePayload, currentTry = 1): Promise<any> {
|
||||
if (this.ended || this.errored) return
|
||||
|
||||
try {
|
||||
await this.options.server.runnerJobs.update({
|
||||
jobToken: this.options.job.jobToken,
|
||||
jobUUID: this.options.job.uuid,
|
||||
runnerToken: this.options.runnerToken,
|
||||
payload: payload as any
|
||||
})
|
||||
} catch (err) {
|
||||
if (currentTry >= 3) throw err
|
||||
if ((err.res?.body as PeerTubeProblemDocument)?.code === ServerErrorCode.RUNNER_JOB_NOT_IN_PROCESSING_STATE) throw err
|
||||
|
||||
logger.warn({ err }, 'Will retry update after error')
|
||||
await wait(250)
|
||||
|
||||
return this.updateWithRetry(payload, currentTry + 1)
|
||||
}
|
||||
}
|
||||
|
||||
private getPlaylistName (videoChunkFilename: string) {
|
||||
return `${videoChunkFilename.split('-')[0]}.m3u8`
|
||||
}
|
||||
|
||||
private getPlaylistIdFromTS (segmentPath: string) {
|
||||
const playlistIdMatcher = /^([\d+])-/
|
||||
|
||||
return basename(segmentPath).match(playlistIdMatcher)[1]
|
||||
}
|
||||
|
||||
private async updatePlaylistContent (playlistName: string, latestChunkFilename: string) {
|
||||
const m3u8Path = join(this.outputPath, playlistName)
|
||||
const playlistContent = await readFile(m3u8Path, 'utf-8')
|
||||
|
||||
// Remove new chunk references, that will be processed later
|
||||
this.latestFilteredPlaylistContent[playlistName] = playlistContent
|
||||
.substring(0, playlistContent.lastIndexOf(latestChunkFilename) + latestChunkFilename.length) + '\n'
|
||||
}
|
||||
|
||||
private buildPlaylistFileParam (playlistName: string) {
|
||||
return [
|
||||
Buffer.from(this.latestFilteredPlaylistContent[playlistName], 'utf-8'),
|
||||
join(this.outputPath, 'master.m3u8')
|
||||
] as [ Buffer, string ]
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
private cleanup () {
|
||||
logger.debug(`Cleaning up job ${this.options.job.uuid}`)
|
||||
|
||||
for (const fsWatcher of this.fsWatchers) {
|
||||
fsWatcher.close()
|
||||
.catch(err => logger.error({ err }, 'Cannot close watcher'))
|
||||
}
|
||||
|
||||
remove(this.outputPath)
|
||||
.catch(err => logger.error({ err }, `Cannot remove ${this.outputPath}`))
|
||||
}
|
||||
}
|
@ -0,0 +1,186 @@
|
||||
import { pick } from '@peertube/peertube-core-utils'
|
||||
import {
|
||||
RunnerJobStudioTranscodingPayload,
|
||||
VideoStudioTask,
|
||||
VideoStudioTaskCutPayload,
|
||||
VideoStudioTaskIntroPayload,
|
||||
VideoStudioTaskOutroPayload,
|
||||
VideoStudioTaskPayload,
|
||||
VideoStudioTaskWatermarkPayload,
|
||||
VideoStudioTranscodingSuccess
|
||||
} from '@peertube/peertube-models'
|
||||
import { buildUUID } from '@peertube/peertube-node-utils'
|
||||
import { remove } from 'fs-extra/esm'
|
||||
import { join } from 'path'
|
||||
import { ConfigManager } from '../../../shared/config-manager.js'
|
||||
import { logger } from '../../../shared/index.js'
|
||||
import {
|
||||
buildFFmpegEdition,
|
||||
downloadInputFile,
|
||||
downloadSeparatedAudioFileIfNeeded,
|
||||
JobWithToken,
|
||||
ProcessOptions,
|
||||
scheduleTranscodingProgress
|
||||
} from './common.js'
|
||||
|
||||
export async function processStudioTranscoding (options: ProcessOptions<RunnerJobStudioTranscodingPayload>) {
|
||||
const { server, job, runnerToken } = options
|
||||
const payload = job.payload
|
||||
|
||||
let videoInputPath: string
|
||||
let separatedAudioInputPath: string
|
||||
|
||||
let tmpVideoInputFilePath: string
|
||||
let tmpSeparatedAudioInputFilePath: string
|
||||
|
||||
let outputPath: string
|
||||
|
||||
let tasksProgress = 0
|
||||
|
||||
const updateProgressInterval = scheduleTranscodingProgress({
|
||||
job,
|
||||
server,
|
||||
runnerToken,
|
||||
progressGetter: () => tasksProgress
|
||||
})
|
||||
|
||||
try {
|
||||
logger.info(`Downloading input file ${payload.input.videoFileUrl} for job ${job.jobToken}`)
|
||||
|
||||
videoInputPath = await downloadInputFile({ url: payload.input.videoFileUrl, runnerToken, job })
|
||||
separatedAudioInputPath = await downloadSeparatedAudioFileIfNeeded({ urls: payload.input.separatedAudioFileUrl, runnerToken, job })
|
||||
|
||||
tmpVideoInputFilePath = videoInputPath
|
||||
tmpSeparatedAudioInputFilePath = separatedAudioInputPath
|
||||
|
||||
logger.info(`Input file ${payload.input.videoFileUrl} downloaded for job ${job.jobToken}. Running studio transcoding tasks.`)
|
||||
|
||||
for (const task of payload.tasks) {
|
||||
const outputFilename = 'output-edition-' + buildUUID() + '.mp4'
|
||||
outputPath = join(ConfigManager.Instance.getTranscodingDirectory(), outputFilename)
|
||||
|
||||
await processTask({
|
||||
videoInputPath: tmpVideoInputFilePath,
|
||||
separatedAudioInputPath: tmpSeparatedAudioInputFilePath,
|
||||
outputPath,
|
||||
task,
|
||||
job,
|
||||
runnerToken
|
||||
})
|
||||
|
||||
if (tmpVideoInputFilePath) await remove(tmpVideoInputFilePath)
|
||||
if (tmpSeparatedAudioInputFilePath) await remove(tmpSeparatedAudioInputFilePath)
|
||||
|
||||
// For the next iteration
|
||||
tmpVideoInputFilePath = outputPath
|
||||
tmpSeparatedAudioInputFilePath = undefined
|
||||
|
||||
tasksProgress += Math.floor(100 / payload.tasks.length)
|
||||
}
|
||||
|
||||
const successBody: VideoStudioTranscodingSuccess = {
|
||||
videoFile: outputPath
|
||||
}
|
||||
|
||||
await server.runnerJobs.success({
|
||||
jobToken: job.jobToken,
|
||||
jobUUID: job.uuid,
|
||||
runnerToken,
|
||||
payload: successBody
|
||||
})
|
||||
} finally {
|
||||
if (tmpVideoInputFilePath) await remove(tmpVideoInputFilePath)
|
||||
if (tmpSeparatedAudioInputFilePath) await remove(tmpSeparatedAudioInputFilePath)
|
||||
if (outputPath) await remove(outputPath)
|
||||
if (updateProgressInterval) clearInterval(updateProgressInterval)
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Private
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
type TaskProcessorOptions <T extends VideoStudioTaskPayload = VideoStudioTaskPayload> = {
|
||||
videoInputPath: string
|
||||
separatedAudioInputPath: string
|
||||
|
||||
outputPath: string
|
||||
|
||||
task: T
|
||||
runnerToken: string
|
||||
job: JobWithToken
|
||||
}
|
||||
|
||||
const taskProcessors: { [id in VideoStudioTask['name']]: (options: TaskProcessorOptions) => Promise<any> } = {
|
||||
'add-intro': processAddIntroOutro,
|
||||
'add-outro': processAddIntroOutro,
|
||||
'cut': processCut,
|
||||
'add-watermark': processAddWatermark
|
||||
}
|
||||
|
||||
async function processTask (options: TaskProcessorOptions) {
|
||||
const { task } = options
|
||||
|
||||
const processor = taskProcessors[options.task.name]
|
||||
if (!process) throw new Error('Unknown task ' + task.name)
|
||||
|
||||
return processor(options)
|
||||
}
|
||||
|
||||
async function processAddIntroOutro (options: TaskProcessorOptions<VideoStudioTaskIntroPayload | VideoStudioTaskOutroPayload>) {
|
||||
const { videoInputPath, task, runnerToken, job } = options
|
||||
|
||||
logger.debug(`Adding intro/outro to ${videoInputPath}`)
|
||||
|
||||
const introOutroPath = await downloadInputFile({ url: task.options.file, runnerToken, job })
|
||||
|
||||
try {
|
||||
await buildFFmpegEdition().addIntroOutro({
|
||||
...pick(options, [ 'videoInputPath', 'separatedAudioInputPath', 'outputPath' ]),
|
||||
|
||||
introOutroPath,
|
||||
type: task.name === 'add-intro'
|
||||
? 'intro'
|
||||
: 'outro'
|
||||
})
|
||||
} finally {
|
||||
await remove(introOutroPath)
|
||||
}
|
||||
}
|
||||
|
||||
function processCut (options: TaskProcessorOptions<VideoStudioTaskCutPayload>) {
|
||||
const { videoInputPath, task } = options
|
||||
|
||||
logger.debug(`Cutting ${videoInputPath}`)
|
||||
|
||||
return buildFFmpegEdition().cutVideo({
|
||||
...pick(options, [ 'videoInputPath', 'separatedAudioInputPath', 'outputPath' ]),
|
||||
|
||||
start: task.options.start,
|
||||
end: task.options.end
|
||||
})
|
||||
}
|
||||
|
||||
async function processAddWatermark (options: TaskProcessorOptions<VideoStudioTaskWatermarkPayload>) {
|
||||
const { videoInputPath, task, runnerToken, job } = options
|
||||
|
||||
logger.debug(`Adding watermark to ${videoInputPath}`)
|
||||
|
||||
const watermarkPath = await downloadInputFile({ url: task.options.file, runnerToken, job })
|
||||
|
||||
try {
|
||||
await buildFFmpegEdition().addWatermark({
|
||||
...pick(options, [ 'videoInputPath', 'separatedAudioInputPath', 'outputPath' ]),
|
||||
|
||||
watermarkPath,
|
||||
|
||||
videoFilters: {
|
||||
watermarkSizeRatio: task.options.watermarkSizeRatio,
|
||||
horitonzalMarginRatio: task.options.horitonzalMarginRatio,
|
||||
verticalMarginRatio: task.options.verticalMarginRatio
|
||||
}
|
||||
})
|
||||
} finally {
|
||||
await remove(watermarkPath)
|
||||
}
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
import { hasAudioStream } from '@peertube/peertube-ffmpeg'
|
||||
import { RunnerJobTranscriptionPayload, TranscriptionSuccess } from '@peertube/peertube-models'
|
||||
import { buildSUUID } from '@peertube/peertube-node-utils'
|
||||
import { TranscriptionModel, WhisperBuiltinModel, transcriberFactory } from '@peertube/peertube-transcription'
|
||||
import { remove } from 'fs-extra/esm'
|
||||
import { join } from 'path'
|
||||
import { ConfigManager } from '../../../shared/config-manager.js'
|
||||
import { logger } from '../../../shared/index.js'
|
||||
import { ProcessOptions, downloadInputFile, scheduleTranscodingProgress } from './common.js'
|
||||
import { getWinstonLogger } from './winston-logger.js'
|
||||
|
||||
export async function processVideoTranscription (options: ProcessOptions<RunnerJobTranscriptionPayload>) {
|
||||
const { server, job, runnerToken } = options
|
||||
|
||||
const config = ConfigManager.Instance.getConfig().transcription
|
||||
|
||||
const payload = job.payload
|
||||
|
||||
let inputPath: string
|
||||
|
||||
const updateProgressInterval = scheduleTranscodingProgress({
|
||||
job,
|
||||
server,
|
||||
runnerToken,
|
||||
progressGetter: () => undefined
|
||||
})
|
||||
|
||||
const outputPath = join(ConfigManager.Instance.getTranscriptionDirectory(), buildSUUID())
|
||||
|
||||
const transcriber = transcriberFactory.createFromEngineName({
|
||||
engineName: config.engine,
|
||||
enginePath: config.enginePath,
|
||||
logger: getWinstonLogger()
|
||||
})
|
||||
|
||||
try {
|
||||
logger.info(`Downloading input file ${payload.input.videoFileUrl} for transcription job ${job.jobToken}`)
|
||||
|
||||
inputPath = await downloadInputFile({ url: payload.input.videoFileUrl, runnerToken, job })
|
||||
|
||||
logger.info(`Downloaded input file ${payload.input.videoFileUrl} for job ${job.jobToken}. Running transcription.`)
|
||||
|
||||
if (await hasAudioStream(inputPath) !== true) {
|
||||
await server.runnerJobs.error({
|
||||
jobToken: job.jobToken,
|
||||
jobUUID: job.uuid,
|
||||
runnerToken,
|
||||
message: 'This input file does not contain audio'
|
||||
})
|
||||
|
||||
return
|
||||
}
|
||||
|
||||
const transcriptFile = await transcriber.transcribe({
|
||||
mediaFilePath: inputPath,
|
||||
model: config.modelPath
|
||||
? await TranscriptionModel.fromPath(config.modelPath)
|
||||
: new WhisperBuiltinModel(config.model),
|
||||
format: 'vtt',
|
||||
transcriptDirectory: outputPath
|
||||
})
|
||||
|
||||
const successBody: TranscriptionSuccess = {
|
||||
inputLanguage: transcriptFile.language,
|
||||
vttFile: transcriptFile.path
|
||||
}
|
||||
|
||||
await server.runnerJobs.success({
|
||||
jobToken: job.jobToken,
|
||||
jobUUID: job.uuid,
|
||||
runnerToken,
|
||||
payload: successBody
|
||||
})
|
||||
} finally {
|
||||
if (inputPath) await remove(inputPath)
|
||||
if (outputPath) await remove(outputPath)
|
||||
if (updateProgressInterval) clearInterval(updateProgressInterval)
|
||||
}
|
||||
}
|
@ -0,0 +1,218 @@
|
||||
import {
|
||||
RunnerJobVODAudioMergeTranscodingPayload,
|
||||
RunnerJobVODHLSTranscodingPayload,
|
||||
RunnerJobVODWebVideoTranscodingPayload,
|
||||
VODAudioMergeTranscodingSuccess,
|
||||
VODHLSTranscodingSuccess,
|
||||
VODWebVideoTranscodingSuccess
|
||||
} from '@peertube/peertube-models'
|
||||
import { buildUUID } from '@peertube/peertube-node-utils'
|
||||
import { remove } from 'fs-extra/esm'
|
||||
import { join } from 'path'
|
||||
import { ConfigManager } from '../../../shared/config-manager.js'
|
||||
import { logger } from '../../../shared/index.js'
|
||||
import {
|
||||
buildFFmpegVOD,
|
||||
downloadInputFile,
|
||||
downloadSeparatedAudioFileIfNeeded,
|
||||
ProcessOptions,
|
||||
scheduleTranscodingProgress
|
||||
} from './common.js'
|
||||
|
||||
export async function processWebVideoTranscoding (options: ProcessOptions<RunnerJobVODWebVideoTranscodingPayload>) {
|
||||
const { server, job, runnerToken } = options
|
||||
|
||||
const payload = job.payload
|
||||
|
||||
let ffmpegProgress: number
|
||||
let videoInputPath: string
|
||||
let separatedAudioInputPath: string
|
||||
|
||||
const outputPath = join(ConfigManager.Instance.getTranscodingDirectory(), `output-${buildUUID()}.mp4`)
|
||||
|
||||
const updateProgressInterval = scheduleTranscodingProgress({
|
||||
job,
|
||||
server,
|
||||
runnerToken,
|
||||
progressGetter: () => ffmpegProgress
|
||||
})
|
||||
|
||||
try {
|
||||
logger.info(`Downloading input file ${payload.input.videoFileUrl} for web video transcoding job ${job.jobToken}`)
|
||||
|
||||
videoInputPath = await downloadInputFile({ url: payload.input.videoFileUrl, runnerToken, job })
|
||||
separatedAudioInputPath = await downloadSeparatedAudioFileIfNeeded({ urls: payload.input.separatedAudioFileUrl, runnerToken, job })
|
||||
|
||||
logger.info(`Downloaded input file ${payload.input.videoFileUrl} for job ${job.jobToken}. Running web video transcoding.`)
|
||||
|
||||
const ffmpegVod = buildFFmpegVOD({
|
||||
onJobProgress: progress => { ffmpegProgress = progress }
|
||||
})
|
||||
|
||||
await ffmpegVod.transcode({
|
||||
type: 'video',
|
||||
|
||||
videoInputPath,
|
||||
separatedAudioInputPath,
|
||||
|
||||
outputPath,
|
||||
|
||||
inputFileMutexReleaser: () => {},
|
||||
|
||||
resolution: payload.output.resolution,
|
||||
fps: payload.output.fps
|
||||
})
|
||||
|
||||
const successBody: VODWebVideoTranscodingSuccess = {
|
||||
videoFile: outputPath
|
||||
}
|
||||
|
||||
await server.runnerJobs.success({
|
||||
jobToken: job.jobToken,
|
||||
jobUUID: job.uuid,
|
||||
runnerToken,
|
||||
payload: successBody
|
||||
})
|
||||
} finally {
|
||||
if (videoInputPath) await remove(videoInputPath)
|
||||
if (separatedAudioInputPath) await remove(separatedAudioInputPath)
|
||||
if (outputPath) await remove(outputPath)
|
||||
if (updateProgressInterval) clearInterval(updateProgressInterval)
|
||||
}
|
||||
}
|
||||
|
||||
export async function processHLSTranscoding (options: ProcessOptions<RunnerJobVODHLSTranscodingPayload>) {
|
||||
const { server, job, runnerToken } = options
|
||||
const payload = job.payload
|
||||
|
||||
let ffmpegProgress: number
|
||||
let videoInputPath: string
|
||||
let separatedAudioInputPath: string
|
||||
|
||||
const uuid = buildUUID()
|
||||
const outputPath = join(ConfigManager.Instance.getTranscodingDirectory(), `${uuid}-${payload.output.resolution}.m3u8`)
|
||||
const videoFilename = `${uuid}-${payload.output.resolution}-fragmented.mp4`
|
||||
const videoPath = join(join(ConfigManager.Instance.getTranscodingDirectory(), videoFilename))
|
||||
|
||||
const updateProgressInterval = scheduleTranscodingProgress({
|
||||
job,
|
||||
server,
|
||||
runnerToken,
|
||||
progressGetter: () => ffmpegProgress
|
||||
})
|
||||
|
||||
try {
|
||||
logger.info(`Downloading input file ${payload.input.videoFileUrl} for HLS transcoding job ${job.jobToken}`)
|
||||
|
||||
videoInputPath = await downloadInputFile({ url: payload.input.videoFileUrl, runnerToken, job })
|
||||
separatedAudioInputPath = await downloadSeparatedAudioFileIfNeeded({ urls: payload.input.separatedAudioFileUrl, runnerToken, job })
|
||||
|
||||
logger.info(`Downloaded input file ${payload.input.videoFileUrl} for job ${job.jobToken}. Running HLS transcoding.`)
|
||||
|
||||
const ffmpegVod = buildFFmpegVOD({
|
||||
onJobProgress: progress => { ffmpegProgress = progress }
|
||||
})
|
||||
|
||||
await ffmpegVod.transcode({
|
||||
type: 'hls',
|
||||
copyCodecs: false,
|
||||
|
||||
videoInputPath,
|
||||
separatedAudioInputPath,
|
||||
|
||||
hlsPlaylist: { videoFilename },
|
||||
outputPath,
|
||||
|
||||
inputFileMutexReleaser: () => {},
|
||||
|
||||
resolution: payload.output.resolution,
|
||||
fps: payload.output.fps,
|
||||
separatedAudio: payload.output.separatedAudio
|
||||
})
|
||||
|
||||
const successBody: VODHLSTranscodingSuccess = {
|
||||
resolutionPlaylistFile: outputPath,
|
||||
videoFile: videoPath
|
||||
}
|
||||
|
||||
await server.runnerJobs.success({
|
||||
jobToken: job.jobToken,
|
||||
jobUUID: job.uuid,
|
||||
runnerToken,
|
||||
payload: successBody
|
||||
})
|
||||
} finally {
|
||||
if (videoInputPath) await remove(videoInputPath)
|
||||
if (separatedAudioInputPath) await remove(separatedAudioInputPath)
|
||||
if (outputPath) await remove(outputPath)
|
||||
if (videoPath) await remove(videoPath)
|
||||
if (updateProgressInterval) clearInterval(updateProgressInterval)
|
||||
}
|
||||
}
|
||||
|
||||
export async function processAudioMergeTranscoding (options: ProcessOptions<RunnerJobVODAudioMergeTranscodingPayload>) {
|
||||
const { server, job, runnerToken } = options
|
||||
const payload = job.payload
|
||||
|
||||
let ffmpegProgress: number
|
||||
let audioPath: string
|
||||
let previewPath: string
|
||||
|
||||
const outputPath = join(ConfigManager.Instance.getTranscodingDirectory(), `output-${buildUUID()}.mp4`)
|
||||
|
||||
const updateProgressInterval = scheduleTranscodingProgress({
|
||||
job,
|
||||
server,
|
||||
runnerToken,
|
||||
progressGetter: () => ffmpegProgress
|
||||
})
|
||||
|
||||
try {
|
||||
logger.info(
|
||||
`Downloading input files ${payload.input.audioFileUrl} and ${payload.input.previewFileUrl} ` +
|
||||
`for audio merge transcoding job ${job.jobToken}`
|
||||
)
|
||||
|
||||
audioPath = await downloadInputFile({ url: payload.input.audioFileUrl, runnerToken, job })
|
||||
previewPath = await downloadInputFile({ url: payload.input.previewFileUrl, runnerToken, job })
|
||||
|
||||
logger.info(
|
||||
`Downloaded input files ${payload.input.audioFileUrl} and ${payload.input.previewFileUrl} ` +
|
||||
`for job ${job.jobToken}. Running audio merge transcoding.`
|
||||
)
|
||||
|
||||
const ffmpegVod = buildFFmpegVOD({
|
||||
onJobProgress: progress => { ffmpegProgress = progress }
|
||||
})
|
||||
|
||||
await ffmpegVod.transcode({
|
||||
type: 'merge-audio',
|
||||
|
||||
audioPath,
|
||||
videoInputPath: previewPath,
|
||||
|
||||
outputPath,
|
||||
|
||||
inputFileMutexReleaser: () => {},
|
||||
|
||||
resolution: payload.output.resolution,
|
||||
fps: payload.output.fps
|
||||
})
|
||||
|
||||
const successBody: VODAudioMergeTranscodingSuccess = {
|
||||
videoFile: outputPath
|
||||
}
|
||||
|
||||
await server.runnerJobs.success({
|
||||
jobToken: job.jobToken,
|
||||
jobUUID: job.uuid,
|
||||
runnerToken,
|
||||
payload: successBody
|
||||
})
|
||||
} finally {
|
||||
if (audioPath) await remove(audioPath)
|
||||
if (previewPath) await remove(previewPath)
|
||||
if (outputPath) await remove(outputPath)
|
||||
if (updateProgressInterval) clearInterval(updateProgressInterval)
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
import { LogFn } from 'pino'
|
||||
import { logger } from '../../../shared/index.js'
|
||||
|
||||
export function getWinstonLogger () {
|
||||
return {
|
||||
info: buildLogLevelFn(logger.info.bind(logger)),
|
||||
debug: buildLogLevelFn(logger.debug.bind(logger)),
|
||||
warn: buildLogLevelFn(logger.warn.bind(logger)),
|
||||
error: buildLogLevelFn(logger.error.bind(logger))
|
||||
}
|
||||
}
|
||||
|
||||
function buildLogLevelFn (log: LogFn) {
|
||||
return (arg1: string, arg2?: object) => {
|
||||
if (arg2) return log(arg2, arg1)
|
||||
|
||||
return log(arg1)
|
||||
}
|
||||
}
|
@ -0,0 +1,336 @@
|
||||
import { ensureDir, remove } from 'fs-extra/esm'
|
||||
import { readdir } from 'fs/promises'
|
||||
import { join } from 'path'
|
||||
import { io, Socket } from 'socket.io-client'
|
||||
import { pick, shuffle, wait } from '@peertube/peertube-core-utils'
|
||||
import { PeerTubeProblemDocument, RunnerJobType, ServerErrorCode } from '@peertube/peertube-models'
|
||||
import { PeerTubeServer as PeerTubeServerCommand } from '@peertube/peertube-server-commands'
|
||||
import { ConfigManager } from '../shared/index.js'
|
||||
import { IPCServer } from '../shared/ipc/index.js'
|
||||
import { logger } from '../shared/logger.js'
|
||||
import { JobWithToken, processJob } from './process/index.js'
|
||||
import { getSupportedJobsList, isJobSupported } from './shared/index.js'
|
||||
|
||||
type PeerTubeServer = PeerTubeServerCommand & {
|
||||
runnerToken: string
|
||||
runnerName: string
|
||||
runnerDescription?: string
|
||||
}
|
||||
|
||||
export class RunnerServer {
|
||||
private servers: PeerTubeServer[] = []
|
||||
private processingJobs: { job: JobWithToken, server: PeerTubeServer }[] = []
|
||||
|
||||
private checkingAvailableJobs = false
|
||||
|
||||
private cleaningUp = false
|
||||
private initialized = false
|
||||
|
||||
private readonly enabledJobsArray: RunnerJobType[]
|
||||
|
||||
private readonly sockets = new Map<PeerTubeServer, Socket>()
|
||||
|
||||
constructor (private readonly enabledJobs?: Set<RunnerJobType>) {
|
||||
this.enabledJobsArray = enabledJobs
|
||||
? Array.from(enabledJobs)
|
||||
: getSupportedJobsList()
|
||||
}
|
||||
|
||||
async run () {
|
||||
logger.info('Running PeerTube runner in server mode')
|
||||
|
||||
logger.info('Supported and enabled job types: ' + this.enabledJobsArray.join(', '))
|
||||
|
||||
await ConfigManager.Instance.load()
|
||||
|
||||
for (const registered of ConfigManager.Instance.getConfig().registeredInstances) {
|
||||
const serverCommand = new PeerTubeServerCommand({ url: registered.url })
|
||||
|
||||
this.loadServer(Object.assign(serverCommand, registered))
|
||||
|
||||
logger.info(`Loading registered instance ${registered.url}`)
|
||||
}
|
||||
|
||||
// Run IPC
|
||||
const ipcServer = new IPCServer()
|
||||
try {
|
||||
await ipcServer.run(this)
|
||||
} catch (err) {
|
||||
logger.error('Cannot start local socket for IPC communication', err)
|
||||
process.exit(-1)
|
||||
}
|
||||
|
||||
// Cleanup on exit
|
||||
for (const code of [ 'SIGTERM', 'SIGINT', 'SIGUSR1', 'SIGUSR2', 'uncaughtException' ]) {
|
||||
process.on(code, async (err, origin) => {
|
||||
if (code === 'uncaughtException') {
|
||||
logger.error({ err, origin }, 'uncaughtException')
|
||||
}
|
||||
|
||||
await this.onExit()
|
||||
})
|
||||
}
|
||||
|
||||
// Process jobs
|
||||
await ensureDir(ConfigManager.Instance.getTranscodingDirectory())
|
||||
await this.cleanupTMP()
|
||||
|
||||
logger.info(`Using ${ConfigManager.Instance.getTranscodingDirectory()} for transcoding directory`)
|
||||
|
||||
this.initialized = true
|
||||
await this.checkAvailableJobs()
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
async registerRunner (options: {
|
||||
url: string
|
||||
registrationToken: string
|
||||
runnerName: string
|
||||
runnerDescription?: string
|
||||
}) {
|
||||
const { url, registrationToken, runnerName, runnerDescription } = options
|
||||
|
||||
logger.info(`Registering runner ${runnerName} on ${url}...`)
|
||||
|
||||
const serverCommand = new PeerTubeServerCommand({ url })
|
||||
const { runnerToken } = await serverCommand.runners.register({ name: runnerName, description: runnerDescription, registrationToken })
|
||||
|
||||
const server: PeerTubeServer = Object.assign(serverCommand, {
|
||||
runnerToken,
|
||||
runnerName,
|
||||
runnerDescription
|
||||
})
|
||||
|
||||
this.loadServer(server)
|
||||
await this.saveRegisteredInstancesInConf()
|
||||
|
||||
logger.info(`Registered runner ${runnerName} on ${url}`)
|
||||
}
|
||||
|
||||
private loadServer (server: PeerTubeServer) {
|
||||
this.servers.push(server)
|
||||
|
||||
const url = server.url + '/runners'
|
||||
const socket = io(url, {
|
||||
auth: {
|
||||
runnerToken: server.runnerToken
|
||||
},
|
||||
transports: [ 'websocket' ]
|
||||
})
|
||||
|
||||
socket.on('connect_error', err => logger.warn({ err }, `Cannot connect to ${url} socket`))
|
||||
socket.on('available-jobs', () => this.safeAsyncCheckAvailableJobs())
|
||||
|
||||
socket.on('connect', () => {
|
||||
logger.info(`Connected to ${url} socket`)
|
||||
|
||||
this.safeAsyncCheckAvailableJobs()
|
||||
})
|
||||
socket.on('disconnect', () => logger.warn(`Disconnected from ${url} socket`))
|
||||
socket.io.on('ping', () => logger.debug(`Received a "ping" for ${url}`))
|
||||
|
||||
this.sockets.set(server, socket)
|
||||
}
|
||||
|
||||
async unregisterRunner (options: {
|
||||
url: string
|
||||
runnerName: string
|
||||
}) {
|
||||
const { url, runnerName } = options
|
||||
|
||||
const server = this.servers.find(s => s.url === url && s.runnerName === runnerName)
|
||||
if (!server) {
|
||||
logger.error(`Unknown server ${url} - ${runnerName} to unregister`)
|
||||
return
|
||||
}
|
||||
|
||||
logger.info(`Unregistering runner ${runnerName} on ${url}...`)
|
||||
|
||||
try {
|
||||
await server.runners.unregister({ runnerToken: server.runnerToken })
|
||||
} catch (err) {
|
||||
logger.error({ err }, `Cannot unregister runner ${runnerName} on ${url}`)
|
||||
}
|
||||
|
||||
this.unloadServer(server)
|
||||
await this.saveRegisteredInstancesInConf()
|
||||
|
||||
logger.info(`Unregistered runner ${runnerName} on ${url}`)
|
||||
}
|
||||
|
||||
private unloadServer (server: PeerTubeServer) {
|
||||
this.servers = this.servers.filter(s => s !== server)
|
||||
|
||||
const socket = this.sockets.get(server)
|
||||
socket.disconnect()
|
||||
|
||||
this.sockets.delete(server)
|
||||
}
|
||||
|
||||
listRegistered () {
|
||||
return {
|
||||
servers: this.servers.map(s => {
|
||||
return {
|
||||
url: s.url,
|
||||
runnerName: s.runnerName,
|
||||
runnerDescription: s.runnerDescription
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
private safeAsyncCheckAvailableJobs () {
|
||||
this.checkAvailableJobs()
|
||||
.catch(err => logger.error({ err }, `Cannot check available jobs`))
|
||||
}
|
||||
|
||||
private async checkAvailableJobs () {
|
||||
if (!this.initialized) return
|
||||
if (this.checkingAvailableJobs) return
|
||||
|
||||
this.checkingAvailableJobs = true
|
||||
|
||||
let hadAvailableJob = false
|
||||
|
||||
for (const server of shuffle([ ...this.servers ])) {
|
||||
try {
|
||||
logger.info('Checking available jobs on ' + server.url)
|
||||
|
||||
const job = await this.requestJob(server)
|
||||
if (!job) continue
|
||||
|
||||
hadAvailableJob = true
|
||||
|
||||
await this.tryToExecuteJobAsync(server, job)
|
||||
} catch (err) {
|
||||
hadAvailableJob = false
|
||||
|
||||
const code = (err.res?.body as PeerTubeProblemDocument)?.code
|
||||
|
||||
if (code === ServerErrorCode.RUNNER_JOB_NOT_IN_PENDING_STATE) {
|
||||
logger.debug({ err }, 'Runner job is not in pending state anymore, retry later')
|
||||
continue
|
||||
}
|
||||
|
||||
if (code === ServerErrorCode.UNKNOWN_RUNNER_TOKEN) {
|
||||
logger.error({ err }, `Unregistering ${server.url} as the runner token ${server.runnerToken} is invalid`)
|
||||
|
||||
await this.unregisterRunner({ url: server.url, runnerName: server.runnerName })
|
||||
continue
|
||||
}
|
||||
|
||||
logger.error({ err }, `Cannot request/accept job on ${server.url} for runner ${server.runnerName}`)
|
||||
}
|
||||
}
|
||||
|
||||
this.checkingAvailableJobs = false
|
||||
|
||||
if (hadAvailableJob && this.canProcessMoreJobs()) {
|
||||
await wait(2500)
|
||||
|
||||
this.checkAvailableJobs()
|
||||
.catch(err => logger.error({ err }, 'Cannot check more available jobs'))
|
||||
}
|
||||
}
|
||||
|
||||
private async requestJob (server: PeerTubeServer) {
|
||||
logger.debug(`Requesting jobs on ${server.url} for runner ${server.runnerName}`)
|
||||
|
||||
const { availableJobs } = await server.runnerJobs.request({
|
||||
runnerToken: server.runnerToken,
|
||||
|
||||
jobTypes: this.enabledJobsArray.length !== getSupportedJobsList().length
|
||||
? this.enabledJobsArray
|
||||
: undefined
|
||||
})
|
||||
|
||||
// FIXME: remove in PeerTube v8: jobTypes has been introduced in PeerTube v7, so do the filter here too
|
||||
const filtered = availableJobs.filter(j => isJobSupported(j, this.enabledJobs))
|
||||
|
||||
if (filtered.length === 0) {
|
||||
logger.debug(`No job available on ${server.url} for runner ${server.runnerName}`)
|
||||
return undefined
|
||||
}
|
||||
|
||||
return filtered[0]
|
||||
}
|
||||
|
||||
private async tryToExecuteJobAsync (server: PeerTubeServer, jobToAccept: { uuid: string }) {
|
||||
if (!this.canProcessMoreJobs()) {
|
||||
logger.info(
|
||||
`Do not process more jobs (processing ${this.processingJobs.length} / ${ConfigManager.Instance.getConfig().jobs.concurrency})`
|
||||
)
|
||||
return
|
||||
}
|
||||
|
||||
const { job } = await server.runnerJobs.accept({ runnerToken: server.runnerToken, jobUUID: jobToAccept.uuid })
|
||||
|
||||
const processingJob = { job, server }
|
||||
this.processingJobs.push(processingJob)
|
||||
|
||||
processJob({ server, job, runnerToken: server.runnerToken })
|
||||
.catch(err => {
|
||||
logger.error({ err }, 'Cannot process job')
|
||||
|
||||
server.runnerJobs.error({ jobToken: job.jobToken, jobUUID: job.uuid, runnerToken: server.runnerToken, message: err.message })
|
||||
.catch(err2 => logger.error({ err: err2 }, 'Cannot abort job after error'))
|
||||
})
|
||||
.finally(() => {
|
||||
this.processingJobs = this.processingJobs.filter(p => p !== processingJob)
|
||||
|
||||
return this.checkAvailableJobs()
|
||||
})
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
private saveRegisteredInstancesInConf () {
|
||||
const data = this.servers.map(s => {
|
||||
return pick(s, [ 'url', 'runnerToken', 'runnerName', 'runnerDescription' ])
|
||||
})
|
||||
|
||||
return ConfigManager.Instance.setRegisteredInstances(data)
|
||||
}
|
||||
|
||||
private canProcessMoreJobs () {
|
||||
return this.processingJobs.length < ConfigManager.Instance.getConfig().jobs.concurrency
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
private async cleanupTMP () {
|
||||
const files = await readdir(ConfigManager.Instance.getTranscodingDirectory())
|
||||
|
||||
for (const file of files) {
|
||||
await remove(join(ConfigManager.Instance.getTranscodingDirectory(), file))
|
||||
}
|
||||
}
|
||||
|
||||
private async onExit () {
|
||||
if (this.cleaningUp) return
|
||||
this.cleaningUp = true
|
||||
|
||||
logger.info('Cleaning up after program exit')
|
||||
|
||||
try {
|
||||
for (const { server, job } of this.processingJobs) {
|
||||
await server.runnerJobs.abort({
|
||||
jobToken: job.jobToken,
|
||||
jobUUID: job.uuid,
|
||||
reason: 'Runner stopped',
|
||||
runnerToken: server.runnerToken
|
||||
})
|
||||
}
|
||||
|
||||
await this.cleanupTMP()
|
||||
} catch (err) {
|
||||
logger.error(err)
|
||||
process.exit(-1)
|
||||
}
|
||||
|
||||
process.exit()
|
||||
}
|
||||
}
|
@ -0,0 +1 @@
|
||||
export * from './supported-job.js'
|
@ -0,0 +1,50 @@
|
||||
import {
|
||||
RunnerJobLiveRTMPHLSTranscodingPayload,
|
||||
RunnerJobPayload,
|
||||
RunnerJobStudioTranscodingPayload,
|
||||
RunnerJobTranscriptionPayload,
|
||||
RunnerJobType,
|
||||
RunnerJobVODAudioMergeTranscodingPayload,
|
||||
RunnerJobVODHLSTranscodingPayload,
|
||||
RunnerJobVODWebVideoTranscodingPayload,
|
||||
VideoStudioTaskPayload
|
||||
} from '@peertube/peertube-models'
|
||||
|
||||
const supportedMatrix: { [ id in RunnerJobType ]: (payload: RunnerJobPayload) => boolean } = {
|
||||
'vod-web-video-transcoding': (_payload: RunnerJobVODWebVideoTranscodingPayload) => {
|
||||
return true
|
||||
},
|
||||
'vod-hls-transcoding': (_payload: RunnerJobVODHLSTranscodingPayload) => {
|
||||
return true
|
||||
},
|
||||
'vod-audio-merge-transcoding': (_payload: RunnerJobVODAudioMergeTranscodingPayload) => {
|
||||
return true
|
||||
},
|
||||
'live-rtmp-hls-transcoding': (_payload: RunnerJobLiveRTMPHLSTranscodingPayload) => {
|
||||
return true
|
||||
},
|
||||
'video-studio-transcoding': (payload: RunnerJobStudioTranscodingPayload) => {
|
||||
const tasks = payload?.tasks
|
||||
const supported = new Set<VideoStudioTaskPayload['name']>([ 'add-intro', 'add-outro', 'add-watermark', 'cut' ])
|
||||
|
||||
if (!Array.isArray(tasks)) return false
|
||||
|
||||
return tasks.every(t => t && supported.has(t.name))
|
||||
},
|
||||
'video-transcription': (_payload: RunnerJobTranscriptionPayload) => {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
export function isJobSupported (job: { type: RunnerJobType, payload: RunnerJobPayload }, enabledJobs?: Set<RunnerJobType>) {
|
||||
if (enabledJobs && !enabledJobs.has(job.type)) return false
|
||||
|
||||
const fn = supportedMatrix[job.type]
|
||||
if (!fn) return false
|
||||
|
||||
return fn(job.payload as any)
|
||||
}
|
||||
|
||||
export function getSupportedJobsList () {
|
||||
return Object.keys(supportedMatrix) as unknown as RunnerJobType[]
|
||||
}
|
@ -0,0 +1,158 @@
|
||||
import { parse, stringify } from '@iarna/toml'
|
||||
import { TranscriptionEngineName, WhisperBuiltinModelName } from '@peertube/peertube-transcription'
|
||||
import envPaths from 'env-paths'
|
||||
import { ensureDir, pathExists, remove } from 'fs-extra/esm'
|
||||
import { readFile, writeFile } from 'fs/promises'
|
||||
import merge from 'lodash-es/merge.js'
|
||||
import { dirname, join } from 'path'
|
||||
import { logger } from '../shared/index.js'
|
||||
|
||||
const paths = envPaths('peertube-runner')
|
||||
|
||||
type Config = {
|
||||
jobs: {
|
||||
concurrency: number
|
||||
}
|
||||
|
||||
ffmpeg: {
|
||||
threads: number
|
||||
nice: number
|
||||
}
|
||||
|
||||
registeredInstances: {
|
||||
url: string
|
||||
runnerToken: string
|
||||
runnerName: string
|
||||
runnerDescription?: string
|
||||
}[]
|
||||
|
||||
transcription: {
|
||||
engine: TranscriptionEngineName
|
||||
enginePath: string | null
|
||||
model: WhisperBuiltinModelName
|
||||
modelPath: string | null
|
||||
}
|
||||
}
|
||||
|
||||
export class ConfigManager {
|
||||
private static instance: ConfigManager
|
||||
|
||||
private config: Config = {
|
||||
jobs: {
|
||||
concurrency: 2
|
||||
},
|
||||
ffmpeg: {
|
||||
threads: 2,
|
||||
nice: 20
|
||||
},
|
||||
transcription: {
|
||||
engine: 'whisper-ctranslate2',
|
||||
enginePath: null,
|
||||
model: 'small',
|
||||
modelPath: null
|
||||
},
|
||||
registeredInstances: []
|
||||
}
|
||||
|
||||
private id: string
|
||||
private configFilePath: string
|
||||
|
||||
private constructor () {}
|
||||
|
||||
init (id: string) {
|
||||
this.id = id
|
||||
this.configFilePath = join(this.getConfigDir(), 'config.toml')
|
||||
}
|
||||
|
||||
async load () {
|
||||
logger.info(`Using ${this.configFilePath} as configuration file`)
|
||||
|
||||
if (this.isTestInstance()) {
|
||||
logger.info('Removing configuration file as we are using the "test" id')
|
||||
await remove(this.configFilePath)
|
||||
}
|
||||
|
||||
await ensureDir(dirname(this.configFilePath))
|
||||
|
||||
if (!await pathExists(this.configFilePath)) {
|
||||
await this.save()
|
||||
}
|
||||
|
||||
const file = await readFile(this.configFilePath, 'utf-8')
|
||||
|
||||
this.config = merge(this.config, parse(file))
|
||||
}
|
||||
|
||||
save () {
|
||||
return writeFile(this.configFilePath, stringify(this.config))
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
async setRegisteredInstances (registeredInstances: {
|
||||
url: string
|
||||
runnerToken: string
|
||||
runnerName: string
|
||||
runnerDescription?: string
|
||||
}[]) {
|
||||
this.config.registeredInstances = registeredInstances
|
||||
|
||||
await this.save()
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
getConfig () {
|
||||
return this.deepFreeze(this.config)
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
getTranscodingDirectory () {
|
||||
return join(paths.cache, this.id, 'transcoding')
|
||||
}
|
||||
|
||||
getTranscriptionDirectory () {
|
||||
return join(paths.cache, this.id, 'transcription')
|
||||
}
|
||||
|
||||
getSocketDirectory () {
|
||||
return join(paths.data, this.id)
|
||||
}
|
||||
|
||||
getSocketPath () {
|
||||
return join(this.getSocketDirectory(), 'peertube-runner.sock')
|
||||
}
|
||||
|
||||
getConfigDir () {
|
||||
return join(paths.config, this.id)
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
isTestInstance () {
|
||||
return typeof this.id === 'string' && this.id.match(/^test-\d$/)
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
// Thanks: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze
|
||||
private deepFreeze <T extends object> (object: T) {
|
||||
const propNames = Reflect.ownKeys(object)
|
||||
|
||||
// Freeze properties before freezing self
|
||||
for (const name of propNames) {
|
||||
const value = object[name]
|
||||
|
||||
if ((value && typeof value === 'object') || typeof value === 'function') {
|
||||
this.deepFreeze(value)
|
||||
}
|
||||
}
|
||||
|
||||
return Object.freeze({ ...object })
|
||||
}
|
||||
|
||||
static get Instance () {
|
||||
return this.instance || (this.instance = new this())
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
import { createWriteStream } from 'fs'
|
||||
import { remove } from 'fs-extra/esm'
|
||||
import { RequestOptions } from 'https'
|
||||
import { http, https } from 'follow-redirects'
|
||||
import { logger } from './logger.js'
|
||||
|
||||
export function downloadFile (options: {
|
||||
url: string
|
||||
destination: string
|
||||
runnerToken: string
|
||||
jobToken: string
|
||||
}) {
|
||||
const { url, destination, runnerToken, jobToken } = options
|
||||
|
||||
logger.debug(`Downloading file ${url}`)
|
||||
|
||||
return new Promise<void>((res, rej) => {
|
||||
const parsed = new URL(url)
|
||||
|
||||
const body = JSON.stringify({
|
||||
runnerToken,
|
||||
jobToken
|
||||
})
|
||||
|
||||
const getOptions: RequestOptions = {
|
||||
method: 'POST',
|
||||
hostname: parsed.hostname,
|
||||
port: parsed.port,
|
||||
path: parsed.pathname,
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'Content-Length': Buffer.byteLength(body, 'utf-8')
|
||||
}
|
||||
}
|
||||
|
||||
const request = getRequest(url)(getOptions, response => {
|
||||
const code = response.statusCode ?? 0
|
||||
|
||||
if (code >= 400) {
|
||||
return rej(new Error(response.statusMessage))
|
||||
}
|
||||
|
||||
const file = createWriteStream(destination)
|
||||
file.on('finish', () => res())
|
||||
|
||||
response.pipe(file)
|
||||
})
|
||||
|
||||
request.on('error', err => {
|
||||
remove(destination)
|
||||
.catch(err => logger.error(err))
|
||||
|
||||
return rej(err)
|
||||
})
|
||||
|
||||
request.write(body)
|
||||
request.end()
|
||||
})
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function getRequest (url: string) {
|
||||
if (url.startsWith('https://')) return https.request.bind(https)
|
||||
|
||||
return http.request.bind(http)
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
export * from './config-manager.js'
|
||||
export * from './http.js'
|
||||
export * from './logger.js'
|
@ -0,0 +1,2 @@
|
||||
export * from './ipc-client.js'
|
||||
export * from './ipc-server.js'
|
@ -0,0 +1,88 @@
|
||||
import CliTable3 from 'cli-table3'
|
||||
import { ensureDir } from 'fs-extra/esm'
|
||||
import { Client as NetIPC } from '@peertube/net-ipc'
|
||||
import { ConfigManager } from '../config-manager.js'
|
||||
import { IPCReponse, IPCReponseData, IPCRequest } from './shared/index.js'
|
||||
|
||||
export class IPCClient {
|
||||
private netIPC: NetIPC
|
||||
|
||||
async run () {
|
||||
await ensureDir(ConfigManager.Instance.getSocketDirectory())
|
||||
|
||||
const socketPath = ConfigManager.Instance.getSocketPath()
|
||||
|
||||
this.netIPC = new NetIPC({ path: socketPath })
|
||||
|
||||
try {
|
||||
await this.netIPC.connect()
|
||||
} catch (err) {
|
||||
if (err.code === 'ECONNREFUSED') {
|
||||
throw new Error(
|
||||
'This runner is not currently running in server mode on this system. ' +
|
||||
'Please run it using the `server` command first (in another terminal for example) and then retry your command.'
|
||||
)
|
||||
}
|
||||
|
||||
throw err
|
||||
}
|
||||
}
|
||||
|
||||
async askRegister (options: {
|
||||
url: string
|
||||
registrationToken: string
|
||||
runnerName: string
|
||||
runnerDescription?: string
|
||||
}) {
|
||||
const req: IPCRequest = {
|
||||
type: 'register',
|
||||
...options
|
||||
}
|
||||
|
||||
const { success, error } = await this.netIPC.request(req) as IPCReponse
|
||||
|
||||
if (success) console.log('PeerTube instance registered')
|
||||
else console.error('Could not register PeerTube instance on runner server side', error)
|
||||
}
|
||||
|
||||
async askUnregister (options: {
|
||||
url: string
|
||||
runnerName: string
|
||||
}) {
|
||||
const req: IPCRequest = {
|
||||
type: 'unregister',
|
||||
...options
|
||||
}
|
||||
|
||||
const { success, error } = await this.netIPC.request(req) as IPCReponse
|
||||
|
||||
if (success) console.log('PeerTube instance unregistered')
|
||||
else console.error('Could not unregister PeerTube instance on runner server side', error)
|
||||
}
|
||||
|
||||
async askListRegistered () {
|
||||
const req: IPCRequest = {
|
||||
type: 'list-registered'
|
||||
}
|
||||
|
||||
const { success, error, data } = await this.netIPC.request(req) as IPCReponse<IPCReponseData>
|
||||
if (!success) {
|
||||
console.error('Could not list registered PeerTube instances', error)
|
||||
return
|
||||
}
|
||||
|
||||
const table = new CliTable3({
|
||||
head: [ 'instance', 'runner name', 'runner description' ]
|
||||
})
|
||||
|
||||
for (const server of data.servers) {
|
||||
table.push([ server.url, server.runnerName, server.runnerDescription ])
|
||||
}
|
||||
|
||||
console.log(table.toString())
|
||||
}
|
||||
|
||||
stop () {
|
||||
this.netIPC.destroy()
|
||||
}
|
||||
}
|
@ -0,0 +1,61 @@
|
||||
import { ensureDir } from 'fs-extra/esm'
|
||||
import { Server as NetIPC } from '@peertube/net-ipc'
|
||||
import { pick } from '@peertube/peertube-core-utils'
|
||||
import { RunnerServer } from '../../server/index.js'
|
||||
import { ConfigManager } from '../config-manager.js'
|
||||
import { logger } from '../logger.js'
|
||||
import { IPCReponse, IPCReponseData, IPCRequest } from './shared/index.js'
|
||||
|
||||
export class IPCServer {
|
||||
private netIPC: NetIPC
|
||||
private runnerServer: RunnerServer
|
||||
|
||||
async run (runnerServer: RunnerServer) {
|
||||
this.runnerServer = runnerServer
|
||||
|
||||
await ensureDir(ConfigManager.Instance.getSocketDirectory())
|
||||
|
||||
const socketPath = ConfigManager.Instance.getSocketPath()
|
||||
this.netIPC = new NetIPC({ path: socketPath })
|
||||
await this.netIPC.start()
|
||||
|
||||
logger.info(`IPC socket created on ${socketPath}`)
|
||||
|
||||
this.netIPC.on('request', async (req: IPCRequest, res) => {
|
||||
try {
|
||||
const data = await this.process(req)
|
||||
|
||||
this.sendReponse(res, { success: true, data })
|
||||
} catch (err) {
|
||||
logger.error('Cannot execute RPC call', err)
|
||||
this.sendReponse(res, { success: false, error: err.message })
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
private async process (req: IPCRequest) {
|
||||
switch (req.type) {
|
||||
case 'register':
|
||||
await this.runnerServer.registerRunner(pick(req, [ 'url', 'registrationToken', 'runnerName', 'runnerDescription' ]))
|
||||
return undefined
|
||||
|
||||
case 'unregister':
|
||||
await this.runnerServer.unregisterRunner(pick(req, [ 'url', 'runnerName' ]))
|
||||
return undefined
|
||||
|
||||
case 'list-registered':
|
||||
return Promise.resolve(this.runnerServer.listRegistered())
|
||||
|
||||
default:
|
||||
throw new Error('Unknown RPC call ' + (req as any).type)
|
||||
}
|
||||
}
|
||||
|
||||
private sendReponse <T extends IPCReponseData> (
|
||||
response: (data: any) => Promise<void>,
|
||||
body: IPCReponse<T>
|
||||
) {
|
||||
response(body)
|
||||
.catch(err => logger.error('Cannot send response after IPC request', err))
|
||||
}
|
||||
}
|
@ -0,0 +1,2 @@
|
||||
export * from './ipc-request.model.js'
|
||||
export * from './ipc-response.model.js'
|
@ -0,0 +1,15 @@
|
||||
export type IPCRequest =
|
||||
IPCRequestRegister |
|
||||
IPCRequestUnregister |
|
||||
IPCRequestListRegistered
|
||||
|
||||
export type IPCRequestRegister = {
|
||||
type: 'register'
|
||||
url: string
|
||||
registrationToken: string
|
||||
runnerName: string
|
||||
runnerDescription?: string
|
||||
}
|
||||
|
||||
export type IPCRequestUnregister = { type: 'unregister', url: string, runnerName: string }
|
||||
export type IPCRequestListRegistered = { type: 'list-registered' }
|
@ -0,0 +1,15 @@
|
||||
export type IPCReponse <T extends IPCReponseData = undefined> = {
|
||||
success: boolean
|
||||
error?: string
|
||||
data?: T
|
||||
}
|
||||
|
||||
export type IPCReponseData =
|
||||
// list registered
|
||||
{
|
||||
servers: {
|
||||
runnerName: string
|
||||
runnerDescription: string
|
||||
url: string
|
||||
}[]
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
import { pino } from 'pino'
|
||||
import pretty from 'pino-pretty'
|
||||
|
||||
const logger = pino(pretty({
|
||||
colorize: true
|
||||
}))
|
||||
|
||||
logger.level = 'info'
|
||||
|
||||
export {
|
||||
logger
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./",
|
||||
"outDir": "./dist",
|
||||
"rootDir": "src",
|
||||
"tsBuildInfoFile": "./dist/.tsbuildinfo"
|
||||
},
|
||||
"references": [
|
||||
{ "path": "../../packages/core-utils" },
|
||||
{ "path": "../../packages/ffmpeg" },
|
||||
{ "path": "../../packages/models" },
|
||||
{ "path": "../../packages/node-utils" },
|
||||
{ "path": "../../packages/server-commands" },
|
||||
{ "path": "../../packages/transcription" },
|
||||
]
|
||||
}
|
@ -0,0 +1,351 @@
|
||||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
||||
# yarn lockfile v1
|
||||
|
||||
|
||||
"@iarna/toml@^2.2.5":
|
||||
version "2.2.5"
|
||||
resolved "https://registry.yarnpkg.com/@iarna/toml/-/toml-2.2.5.tgz#b32366c89b43c6f8cefbdefac778b9c828e3ba8c"
|
||||
integrity sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==
|
||||
|
||||
"@msgpackr-extract/msgpackr-extract-darwin-arm64@3.0.3":
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/@msgpackr-extract/msgpackr-extract-darwin-arm64/-/msgpackr-extract-darwin-arm64-3.0.3.tgz#9edec61b22c3082018a79f6d1c30289ddf3d9d11"
|
||||
integrity sha512-QZHtlVgbAdy2zAqNA9Gu1UpIuI8Xvsd1v8ic6B2pZmeFnFcMWiPLfWXh7TVw4eGEZ/C9TH281KwhVoeQUKbyjw==
|
||||
|
||||
"@msgpackr-extract/msgpackr-extract-darwin-x64@3.0.3":
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/@msgpackr-extract/msgpackr-extract-darwin-x64/-/msgpackr-extract-darwin-x64-3.0.3.tgz#33677a275204898ad8acbf62734fc4dc0b6a4855"
|
||||
integrity sha512-mdzd3AVzYKuUmiWOQ8GNhl64/IoFGol569zNRdkLReh6LRLHOXxU4U8eq0JwaD8iFHdVGqSy4IjFL4reoWCDFw==
|
||||
|
||||
"@msgpackr-extract/msgpackr-extract-linux-arm64@3.0.3":
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/@msgpackr-extract/msgpackr-extract-linux-arm64/-/msgpackr-extract-linux-arm64-3.0.3.tgz#19edf7cdc2e7063ee328403c1d895a86dd28f4bb"
|
||||
integrity sha512-YxQL+ax0XqBJDZiKimS2XQaf+2wDGVa1enVRGzEvLLVFeqa5kx2bWbtcSXgsxjQB7nRqqIGFIcLteF/sHeVtQg==
|
||||
|
||||
"@msgpackr-extract/msgpackr-extract-linux-arm@3.0.3":
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/@msgpackr-extract/msgpackr-extract-linux-arm/-/msgpackr-extract-linux-arm-3.0.3.tgz#94fb0543ba2e28766c3fc439cabbe0440ae70159"
|
||||
integrity sha512-fg0uy/dG/nZEXfYilKoRe7yALaNmHoYeIoJuJ7KJ+YyU2bvY8vPv27f7UKhGRpY6euFYqEVhxCFZgAUNQBM3nw==
|
||||
|
||||
"@msgpackr-extract/msgpackr-extract-linux-x64@3.0.3":
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/@msgpackr-extract/msgpackr-extract-linux-x64/-/msgpackr-extract-linux-x64-3.0.3.tgz#4a0609ab5fe44d07c9c60a11e4484d3c38bbd6e3"
|
||||
integrity sha512-cvwNfbP07pKUfq1uH+S6KJ7dT9K8WOE4ZiAcsrSes+UY55E/0jLYc+vq+DO7jlmqRb5zAggExKm0H7O/CBaesg==
|
||||
|
||||
"@msgpackr-extract/msgpackr-extract-win32-x64@3.0.3":
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/@msgpackr-extract/msgpackr-extract-win32-x64/-/msgpackr-extract-win32-x64-3.0.3.tgz#0aa5502d547b57abfc4ac492de68e2006e417242"
|
||||
integrity sha512-x0fWaQtYp4E6sktbsdAqnehxDgEc/VwM7uLsRCYWaiGu0ykYdZPiS8zCWdnjHwyiumousxfBm4SO31eXqwEZhQ==
|
||||
|
||||
"@peertube/net-ipc@^2.2.0":
|
||||
version "2.2.1"
|
||||
resolved "https://registry.yarnpkg.com/@peertube/net-ipc/-/net-ipc-2.2.1.tgz#3d1c154a08b57cfea31ed760ec76fe2f69e35a19"
|
||||
integrity sha512-RyKIGC3EeQ+xnSccf592qqsaXWrGp4wGfGl4W+wxDoZkwsThZJuiSbX8aCC1qZBHaDo3EuRH3ZrwsKpNjnyDAQ==
|
||||
optionalDependencies:
|
||||
fast-zlib "^2.0.1"
|
||||
msgpackr "^1.3.2"
|
||||
|
||||
"@types/follow-redirects@1.14.4":
|
||||
version "1.14.4"
|
||||
resolved "https://registry.yarnpkg.com/@types/follow-redirects/-/follow-redirects-1.14.4.tgz#ca054d72ef574c77949fc5fff278b430fcd508ec"
|
||||
integrity sha512-GWXfsD0Jc1RWiFmMuMFCpXMzi9L7oPDVwxUnZdg89kDNnqsRfUKXEtUYtA98A6lig1WXH/CYY/fvPW9HuN5fTA==
|
||||
dependencies:
|
||||
"@types/node" "*"
|
||||
|
||||
"@types/node@*":
|
||||
version "22.9.3"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-22.9.3.tgz#08f3d64b3bc6d74b162d36f60213e8a6704ef2b4"
|
||||
integrity sha512-F3u1fs/fce3FFk+DAxbxc78DF8x0cY09RRL8GnXLmkJ1jvx3TtPdWoTT5/NiYfI5ASqXBmfqJi9dZ3gxMx4lzw==
|
||||
dependencies:
|
||||
undici-types "~6.19.8"
|
||||
|
||||
abort-controller@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392"
|
||||
integrity sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==
|
||||
dependencies:
|
||||
event-target-shim "^5.0.0"
|
||||
|
||||
atomic-sleep@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/atomic-sleep/-/atomic-sleep-1.0.0.tgz#eb85b77a601fc932cfe432c5acd364a9e2c9075b"
|
||||
integrity sha512-kNOjDqAh7px0XWNI+4QbzoiR/nTkHAWNud2uvnJquD1/x5a7EQZMJT0AczqK0Qn67oY/TTQ1LbUKajZpp3I9tQ==
|
||||
|
||||
base64-js@^1.3.1:
|
||||
version "1.5.1"
|
||||
resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a"
|
||||
integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==
|
||||
|
||||
buffer@^6.0.3:
|
||||
version "6.0.3"
|
||||
resolved "https://registry.yarnpkg.com/buffer/-/buffer-6.0.3.tgz#2ace578459cc8fbe2a70aaa8f52ee63b6a74c6c6"
|
||||
integrity sha512-FTiCpNxtwiZZHEZbcbTIcZjERVICn9yq/pDFkTl95/AxzD1naBctN7YO68riM/gLSDY7sdrMby8hofADYuuqOA==
|
||||
dependencies:
|
||||
base64-js "^1.3.1"
|
||||
ieee754 "^1.2.1"
|
||||
|
||||
colorette@^2.0.7:
|
||||
version "2.0.20"
|
||||
resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.20.tgz#9eb793e6833067f7235902fcd3b09917a000a95a"
|
||||
integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==
|
||||
|
||||
dateformat@^4.6.3:
|
||||
version "4.6.3"
|
||||
resolved "https://registry.yarnpkg.com/dateformat/-/dateformat-4.6.3.tgz#556fa6497e5217fedb78821424f8a1c22fa3f4b5"
|
||||
integrity sha512-2P0p0pFGzHS5EMnhdxQi7aJN+iMheud0UhG4dlE1DLAlvL8JHjJJTX/CSm4JXwV0Ka5nGk3zC5mcb5bUQUxxMA==
|
||||
|
||||
detect-libc@^2.0.1:
|
||||
version "2.0.3"
|
||||
resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-2.0.3.tgz#f0cd503b40f9939b894697d19ad50895e30cf700"
|
||||
integrity sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==
|
||||
|
||||
end-of-stream@^1.1.0:
|
||||
version "1.4.4"
|
||||
resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0"
|
||||
integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==
|
||||
dependencies:
|
||||
once "^1.4.0"
|
||||
|
||||
env-paths@^3.0.0:
|
||||
version "3.0.0"
|
||||
resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-3.0.0.tgz#2f1e89c2f6dbd3408e1b1711dd82d62e317f58da"
|
||||
integrity sha512-dtJUTepzMW3Lm/NPxRf3wP4642UWhjL2sQxc+ym2YMj1m/H2zDNQOlezafzkHwn6sMstjHTwG6iQQsctDW/b1A==
|
||||
|
||||
event-target-shim@^5.0.0:
|
||||
version "5.0.1"
|
||||
resolved "https://registry.yarnpkg.com/event-target-shim/-/event-target-shim-5.0.1.tgz#5d4d3ebdf9583d63a5333ce2deb7480ab2b05789"
|
||||
integrity sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ==
|
||||
|
||||
events@^3.3.0:
|
||||
version "3.3.0"
|
||||
resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400"
|
||||
integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==
|
||||
|
||||
fast-copy@^3.0.2:
|
||||
version "3.0.2"
|
||||
resolved "https://registry.yarnpkg.com/fast-copy/-/fast-copy-3.0.2.tgz#59c68f59ccbcac82050ba992e0d5c389097c9d35"
|
||||
integrity sha512-dl0O9Vhju8IrcLndv2eU4ldt1ftXMqqfgN4H1cpmGV7P6jeB9FwpN9a2c8DPGE1Ys88rNUJVYDHq73CGAGOPfQ==
|
||||
|
||||
fast-redact@^3.1.1:
|
||||
version "3.5.0"
|
||||
resolved "https://registry.yarnpkg.com/fast-redact/-/fast-redact-3.5.0.tgz#e9ea02f7e57d0cd8438180083e93077e496285e4"
|
||||
integrity sha512-dwsoQlS7h9hMeYUq1W++23NDcBLV4KqONnITDV9DjfS3q1SgDGVrBdvvTLUotWtPSD7asWDV9/CmsZPy8Hf70A==
|
||||
|
||||
fast-safe-stringify@^2.1.1:
|
||||
version "2.1.1"
|
||||
resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz#c406a83b6e70d9e35ce3b30a81141df30aeba884"
|
||||
integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==
|
||||
|
||||
fast-zlib@^2.0.1:
|
||||
version "2.0.1"
|
||||
resolved "https://registry.yarnpkg.com/fast-zlib/-/fast-zlib-2.0.1.tgz#be624f592fc80ad8019ee2025d16a367a4e9b024"
|
||||
integrity sha512-DCoYgNagM2Bt1VIpXpdGnRx4LzqJeYG0oh6Nf/7cWo6elTXkFGMw9CrRCYYUIapYNrozYMoyDRflx9mgT3Awyw==
|
||||
|
||||
follow-redirects@^1.15.5:
|
||||
version "1.15.9"
|
||||
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.9.tgz#a604fa10e443bf98ca94228d9eebcc2e8a2c8ee1"
|
||||
integrity sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==
|
||||
|
||||
help-me@^5.0.0:
|
||||
version "5.0.0"
|
||||
resolved "https://registry.yarnpkg.com/help-me/-/help-me-5.0.0.tgz#b1ebe63b967b74060027c2ac61f9be12d354a6f6"
|
||||
integrity sha512-7xgomUX6ADmcYzFik0HzAxh/73YlKR9bmFzf51CZwR+b6YtzU2m0u49hQCqV6SvlqIqsaxovfwdvbnsw3b/zpg==
|
||||
|
||||
ieee754@^1.2.1:
|
||||
version "1.2.1"
|
||||
resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352"
|
||||
integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==
|
||||
|
||||
joycon@^3.1.1:
|
||||
version "3.1.1"
|
||||
resolved "https://registry.yarnpkg.com/joycon/-/joycon-3.1.1.tgz#bce8596d6ae808f8b68168f5fc69280996894f03"
|
||||
integrity sha512-34wB/Y7MW7bzjKRjUKTa46I2Z7eV62Rkhva+KkopW7Qvv/OSWBqvkSY7vusOPrNuZcUG3tApvdVgNB8POj3SPw==
|
||||
|
||||
minimist@^1.2.6:
|
||||
version "1.2.8"
|
||||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
|
||||
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==
|
||||
|
||||
msgpackr-extract@^3.0.2:
|
||||
version "3.0.3"
|
||||
resolved "https://registry.yarnpkg.com/msgpackr-extract/-/msgpackr-extract-3.0.3.tgz#e9d87023de39ce714872f9e9504e3c1996d61012"
|
||||
integrity sha512-P0efT1C9jIdVRefqjzOQ9Xml57zpOXnIuS+csaB4MdZbTdmGDLo8XhzBG1N7aO11gKDDkJvBLULeFTo46wwreA==
|
||||
dependencies:
|
||||
node-gyp-build-optional-packages "5.2.2"
|
||||
optionalDependencies:
|
||||
"@msgpackr-extract/msgpackr-extract-darwin-arm64" "3.0.3"
|
||||
"@msgpackr-extract/msgpackr-extract-darwin-x64" "3.0.3"
|
||||
"@msgpackr-extract/msgpackr-extract-linux-arm" "3.0.3"
|
||||
"@msgpackr-extract/msgpackr-extract-linux-arm64" "3.0.3"
|
||||
"@msgpackr-extract/msgpackr-extract-linux-x64" "3.0.3"
|
||||
"@msgpackr-extract/msgpackr-extract-win32-x64" "3.0.3"
|
||||
|
||||
msgpackr@^1.3.2:
|
||||
version "1.11.2"
|
||||
resolved "https://registry.yarnpkg.com/msgpackr/-/msgpackr-1.11.2.tgz#4463b7f7d68f2e24865c395664973562ad24473d"
|
||||
integrity sha512-F9UngXRlPyWCDEASDpTf6c9uNhGPTqnTeLVt7bN+bU1eajoR/8V9ys2BRaV5C/e5ihE6sJ9uPIKaYt6bFuO32g==
|
||||
optionalDependencies:
|
||||
msgpackr-extract "^3.0.2"
|
||||
|
||||
node-gyp-build-optional-packages@5.2.2:
|
||||
version "5.2.2"
|
||||
resolved "https://registry.yarnpkg.com/node-gyp-build-optional-packages/-/node-gyp-build-optional-packages-5.2.2.tgz#522f50c2d53134d7f3a76cd7255de4ab6c96a3a4"
|
||||
integrity sha512-s+w+rBWnpTMwSFbaE0UXsRlg7hU4FjekKU4eyAih5T8nJuNZT1nNsskXpxmeqSK9UzkBl6UgRlnKc8hz8IEqOw==
|
||||
dependencies:
|
||||
detect-libc "^2.0.1"
|
||||
|
||||
on-exit-leak-free@^2.1.0:
|
||||
version "2.1.2"
|
||||
resolved "https://registry.yarnpkg.com/on-exit-leak-free/-/on-exit-leak-free-2.1.2.tgz#fed195c9ebddb7d9e4c3842f93f281ac8dadd3b8"
|
||||
integrity sha512-0eJJY6hXLGf1udHwfNftBqH+g73EU4B504nZeKpz1sYRKafAghwxEJunB2O7rDZkL4PGfsMVnTXZ2EjibbqcsA==
|
||||
|
||||
once@^1.3.1, once@^1.4.0:
|
||||
version "1.4.0"
|
||||
resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1"
|
||||
integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==
|
||||
dependencies:
|
||||
wrappy "1"
|
||||
|
||||
pino-abstract-transport@^2.0.0:
|
||||
version "2.0.0"
|
||||
resolved "https://registry.yarnpkg.com/pino-abstract-transport/-/pino-abstract-transport-2.0.0.tgz#de241578406ac7b8a33ce0d77ae6e8a0b3b68a60"
|
||||
integrity sha512-F63x5tizV6WCh4R6RHyi2Ml+M70DNRXt/+HANowMflpgGFMAym/VKm6G7ZOQRjqN7XbGxK1Lg9t6ZrtzOaivMw==
|
||||
dependencies:
|
||||
split2 "^4.0.0"
|
||||
|
||||
pino-pretty@^11.2.1:
|
||||
version "11.3.0"
|
||||
resolved "https://registry.yarnpkg.com/pino-pretty/-/pino-pretty-11.3.0.tgz#390b3be044cf3d2e9192c7d19d44f6b690468f2e"
|
||||
integrity sha512-oXwn7ICywaZPHmu3epHGU2oJX4nPmKvHvB/bwrJHlGcbEWaVcotkpyVHMKLKmiVryWYByNp0jpgAcXpFJDXJzA==
|
||||
dependencies:
|
||||
colorette "^2.0.7"
|
||||
dateformat "^4.6.3"
|
||||
fast-copy "^3.0.2"
|
||||
fast-safe-stringify "^2.1.1"
|
||||
help-me "^5.0.0"
|
||||
joycon "^3.1.1"
|
||||
minimist "^1.2.6"
|
||||
on-exit-leak-free "^2.1.0"
|
||||
pino-abstract-transport "^2.0.0"
|
||||
pump "^3.0.0"
|
||||
readable-stream "^4.0.0"
|
||||
secure-json-parse "^2.4.0"
|
||||
sonic-boom "^4.0.1"
|
||||
strip-json-comments "^3.1.1"
|
||||
|
||||
pino-std-serializers@^7.0.0:
|
||||
version "7.0.0"
|
||||
resolved "https://registry.yarnpkg.com/pino-std-serializers/-/pino-std-serializers-7.0.0.tgz#7c625038b13718dbbd84ab446bd673dc52259e3b"
|
||||
integrity sha512-e906FRY0+tV27iq4juKzSYPbUj2do2X2JX4EzSca1631EB2QJQUqGbDuERal7LCtOpxl6x3+nvo9NPZcmjkiFA==
|
||||
|
||||
pino@^9.2.0:
|
||||
version "9.5.0"
|
||||
resolved "https://registry.yarnpkg.com/pino/-/pino-9.5.0.tgz#a7ef0fea868d22d52d8a4ce46e6e03c5dc46fdd6"
|
||||
integrity sha512-xSEmD4pLnV54t0NOUN16yCl7RIB1c5UUOse5HSyEXtBp+FgFQyPeDutc+Q2ZO7/22vImV7VfEjH/1zV2QuqvYw==
|
||||
dependencies:
|
||||
atomic-sleep "^1.0.0"
|
||||
fast-redact "^3.1.1"
|
||||
on-exit-leak-free "^2.1.0"
|
||||
pino-abstract-transport "^2.0.0"
|
||||
pino-std-serializers "^7.0.0"
|
||||
process-warning "^4.0.0"
|
||||
quick-format-unescaped "^4.0.3"
|
||||
real-require "^0.2.0"
|
||||
safe-stable-stringify "^2.3.1"
|
||||
sonic-boom "^4.0.1"
|
||||
thread-stream "^3.0.0"
|
||||
|
||||
process-warning@^4.0.0:
|
||||
version "4.0.0"
|
||||
resolved "https://registry.yarnpkg.com/process-warning/-/process-warning-4.0.0.tgz#581e3a7a1fb456c5f4fd239f76bce75897682d5a"
|
||||
integrity sha512-/MyYDxttz7DfGMMHiysAsFE4qF+pQYAA8ziO/3NcRVrQ5fSk+Mns4QZA/oRPFzvcqNoVJXQNWNAsdwBXLUkQKw==
|
||||
|
||||
process@^0.11.10:
|
||||
version "0.11.10"
|
||||
resolved "https://registry.yarnpkg.com/process/-/process-0.11.10.tgz#7332300e840161bda3e69a1d1d91a7d4bc16f182"
|
||||
integrity sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==
|
||||
|
||||
pump@^3.0.0:
|
||||
version "3.0.2"
|
||||
resolved "https://registry.yarnpkg.com/pump/-/pump-3.0.2.tgz#836f3edd6bc2ee599256c924ffe0d88573ddcbf8"
|
||||
integrity sha512-tUPXtzlGM8FE3P0ZL6DVs/3P58k9nk8/jZeQCurTJylQA8qFYzHFfhBJkuqyE0FifOsQ0uKWekiZ5g8wtr28cw==
|
||||
dependencies:
|
||||
end-of-stream "^1.1.0"
|
||||
once "^1.3.1"
|
||||
|
||||
quick-format-unescaped@^4.0.3:
|
||||
version "4.0.4"
|
||||
resolved "https://registry.yarnpkg.com/quick-format-unescaped/-/quick-format-unescaped-4.0.4.tgz#93ef6dd8d3453cbc7970dd614fad4c5954d6b5a7"
|
||||
integrity sha512-tYC1Q1hgyRuHgloV/YXs2w15unPVh8qfu/qCTfhTYamaw7fyhumKa2yGpdSo87vY32rIclj+4fWYQXUMs9EHvg==
|
||||
|
||||
readable-stream@^4.0.0:
|
||||
version "4.5.2"
|
||||
resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-4.5.2.tgz#9e7fc4c45099baeed934bff6eb97ba6cf2729e09"
|
||||
integrity sha512-yjavECdqeZ3GLXNgRXgeQEdz9fvDDkNKyHnbHRFtOr7/LcfgBcmct7t/ET+HaCTqfh06OzoAxrkN/IfjJBVe+g==
|
||||
dependencies:
|
||||
abort-controller "^3.0.0"
|
||||
buffer "^6.0.3"
|
||||
events "^3.3.0"
|
||||
process "^0.11.10"
|
||||
string_decoder "^1.3.0"
|
||||
|
||||
real-require@^0.2.0:
|
||||
version "0.2.0"
|
||||
resolved "https://registry.yarnpkg.com/real-require/-/real-require-0.2.0.tgz#209632dea1810be2ae063a6ac084fee7e33fba78"
|
||||
integrity sha512-57frrGM/OCTLqLOAh0mhVA9VBMHd+9U7Zb2THMGdBUoZVOtGbJzjxsYGDJ3A9AYYCP4hn6y1TVbaOfzWtm5GFg==
|
||||
|
||||
safe-buffer@~5.2.0:
|
||||
version "5.2.1"
|
||||
resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6"
|
||||
integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==
|
||||
|
||||
safe-stable-stringify@^2.3.1:
|
||||
version "2.5.0"
|
||||
resolved "https://registry.yarnpkg.com/safe-stable-stringify/-/safe-stable-stringify-2.5.0.tgz#4ca2f8e385f2831c432a719b108a3bf7af42a1dd"
|
||||
integrity sha512-b3rppTKm9T+PsVCBEOUR46GWI7fdOs00VKZ1+9c1EWDaDMvjQc6tUwuFyIprgGgTcWoVHSKrU8H31ZHA2e0RHA==
|
||||
|
||||
secure-json-parse@^2.4.0:
|
||||
version "2.7.0"
|
||||
resolved "https://registry.yarnpkg.com/secure-json-parse/-/secure-json-parse-2.7.0.tgz#5a5f9cd6ae47df23dba3151edd06855d47e09862"
|
||||
integrity sha512-6aU+Rwsezw7VR8/nyvKTx8QpWH9FrcYiXXlqC4z5d5XQBDRqtbfsRjnwGyqbi3gddNtWHuEk9OANUotL26qKUw==
|
||||
|
||||
sonic-boom@^4.0.1:
|
||||
version "4.2.0"
|
||||
resolved "https://registry.yarnpkg.com/sonic-boom/-/sonic-boom-4.2.0.tgz#e59a525f831210fa4ef1896428338641ac1c124d"
|
||||
integrity sha512-INb7TM37/mAcsGmc9hyyI6+QR3rR1zVRu36B0NeGXKnOOLiZOfER5SA+N7X7k3yUYRzLWafduTDvJAfDswwEww==
|
||||
dependencies:
|
||||
atomic-sleep "^1.0.0"
|
||||
|
||||
split2@^4.0.0:
|
||||
version "4.2.0"
|
||||
resolved "https://registry.yarnpkg.com/split2/-/split2-4.2.0.tgz#c9c5920904d148bab0b9f67145f245a86aadbfa4"
|
||||
integrity sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==
|
||||
|
||||
string_decoder@^1.3.0:
|
||||
version "1.3.0"
|
||||
resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e"
|
||||
integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==
|
||||
dependencies:
|
||||
safe-buffer "~5.2.0"
|
||||
|
||||
strip-json-comments@^3.1.1:
|
||||
version "3.1.1"
|
||||
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006"
|
||||
integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==
|
||||
|
||||
thread-stream@^3.0.0:
|
||||
version "3.1.0"
|
||||
resolved "https://registry.yarnpkg.com/thread-stream/-/thread-stream-3.1.0.tgz#4b2ef252a7c215064507d4ef70c05a5e2d34c4f1"
|
||||
integrity sha512-OqyPZ9u96VohAyMfJykzmivOrY2wfMSf3C5TtFJVgN+Hm6aj+voFhlK+kZEIv2FBh1X6Xp3DlnCOfEQ3B2J86A==
|
||||
dependencies:
|
||||
real-require "^0.2.0"
|
||||
|
||||
undici-types@~6.19.8:
|
||||
version "6.19.8"
|
||||
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02"
|
||||
integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==
|
||||
|
||||
wrappy@1:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f"
|
||||
integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==
|
@ -0,0 +1,4 @@
|
||||
last 1 Chrome version
|
||||
last 2 Edge major versions
|
||||
Firefox ESR
|
||||
ios_saf >= 13.1
|
@ -0,0 +1,180 @@
|
||||
{
|
||||
"root": true,
|
||||
"ignorePatterns": [
|
||||
"projects/**/*",
|
||||
"node_modules/",
|
||||
"src/standalone/embed-player-api/dist"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
"*.ts"
|
||||
],
|
||||
"parserOptions": {
|
||||
"project": [
|
||||
"tsconfig.eslint.json"
|
||||
],
|
||||
"EXPERIMENTAL_useSourceOfProjectReferenceRedirect": true,
|
||||
"createDefaultProgram": false
|
||||
},
|
||||
"extends": [
|
||||
"../.eslintrc.json",
|
||||
"plugin:@angular-eslint/recommended",
|
||||
"plugin:@angular-eslint/template/process-inline-templates"
|
||||
],
|
||||
"rules": {
|
||||
"jsdoc/newline-after-description": "off",
|
||||
"jsdoc/check-alignment": "off",
|
||||
"lines-between-class-members": "off",
|
||||
"@typescript-eslint/lines-between-class-members": [ "off" ],
|
||||
"arrow-body-style": "off",
|
||||
"no-underscore-dangle": "off",
|
||||
"n/no-callback-literal": "off",
|
||||
"@angular-eslint/component-selector": [
|
||||
"error",
|
||||
{
|
||||
"type": [ "element", "attribute" ],
|
||||
"prefix": "my",
|
||||
"style": "kebab-case"
|
||||
}
|
||||
],
|
||||
"@angular-eslint/directive-selector": [
|
||||
"error",
|
||||
{
|
||||
"type": [ "element", "attribute" ],
|
||||
"prefix": "my",
|
||||
"style": "camelCase"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-this-alias": [
|
||||
"error",
|
||||
{
|
||||
"allowDestructuring": true,
|
||||
"allowedNames": ["self", "player"]
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/prefer-readonly": "off",
|
||||
"@angular-eslint/use-component-view-encapsulation": "error",
|
||||
"prefer-arrow/prefer-arrow-functions": "off",
|
||||
"@typescript-eslint/await-thenable": "error",
|
||||
"@typescript-eslint/consistent-type-definitions": "off",
|
||||
"@typescript-eslint/dot-notation": "off",
|
||||
"@typescript-eslint/explicit-member-accessibility": [
|
||||
"off",
|
||||
{
|
||||
"accessibility": "explicit"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/member-ordering": [
|
||||
"off"
|
||||
],
|
||||
"@typescript-eslint/member-delimiter-style": [
|
||||
"error",
|
||||
{
|
||||
"multiline": {
|
||||
"delimiter": "none",
|
||||
"requireLast": true
|
||||
},
|
||||
"singleline": {
|
||||
"delimiter": "comma",
|
||||
"requireLast": false
|
||||
}
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/prefer-for-of": "off",
|
||||
"@typescript-eslint/no-empty-function": "error",
|
||||
"@typescript-eslint/no-floating-promises": "off",
|
||||
"@typescript-eslint/no-inferrable-types": "error",
|
||||
"@typescript-eslint/no-shadow": [
|
||||
"off",
|
||||
{
|
||||
"hoist": "all"
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-unnecessary-qualifier": "error",
|
||||
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
||||
"@typescript-eslint/no-unused-expressions": [
|
||||
"error",
|
||||
{
|
||||
"allowTaggedTemplates": true,
|
||||
"allowShortCircuit": true
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/quotes": [
|
||||
"error",
|
||||
"single",
|
||||
{
|
||||
"avoidEscape": true,
|
||||
"allowTemplateLiterals": true
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/semi": [
|
||||
"error",
|
||||
"never"
|
||||
],
|
||||
"brace-style": [
|
||||
"error",
|
||||
"1tbs"
|
||||
],
|
||||
"comma-dangle": "error",
|
||||
"curly": [
|
||||
"error",
|
||||
"multi-line"
|
||||
],
|
||||
"dot-notation": "off",
|
||||
"no-useless-return": "off",
|
||||
"indent": "off",
|
||||
"no-bitwise": "off",
|
||||
"no-console": "off",
|
||||
"no-return-assign": "off",
|
||||
"no-constant-condition": "error",
|
||||
"no-control-regex": "error",
|
||||
"no-duplicate-imports": "error",
|
||||
"no-empty": "error",
|
||||
"no-empty-function": [
|
||||
"error",
|
||||
{ "allow": [ "constructors" ] }
|
||||
],
|
||||
"no-invalid-regexp": "error",
|
||||
"no-multiple-empty-lines": "error",
|
||||
"no-redeclare": "error",
|
||||
"no-regex-spaces": "error",
|
||||
"no-return-await": "error",
|
||||
"no-shadow": "off",
|
||||
"no-unused-expressions": "error",
|
||||
"semi": "error",
|
||||
"space-before-function-paren": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"space-in-parens": [
|
||||
"error",
|
||||
"never"
|
||||
],
|
||||
"object-shorthand": [
|
||||
"error",
|
||||
"properties"
|
||||
],
|
||||
"quote-props": [
|
||||
"error",
|
||||
"consistent-as-needed"
|
||||
],
|
||||
"no-constant-binary-expression": "error",
|
||||
"@typescript-eslint/unbound-method": [
|
||||
"error",
|
||||
{ "ignoreStatic": true }
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": [
|
||||
"*.html"
|
||||
],
|
||||
"extends": [
|
||||
"plugin:@angular-eslint/template/recommended",
|
||||
"plugin:@angular-eslint/template/accessibility"
|
||||
],
|
||||
"rules": {}
|
||||
}
|
||||
]
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
/.angular/cache
|
||||
/dist/
|
||||
/node_modules
|
||||
/compiled
|
||||
/stats.json
|
||||
/dll
|
||||
/.awcache
|
||||
/src/locale/pending_target/
|
||||
/src/locale/target/iso639_*.xml
|
||||
/src/locale/target/player_*.xml
|
||||
/src/locale/target/server_*.xml
|
||||
/e2e/local.log
|
||||
/e2e/browserstack.err
|
||||
/e2e/screenshots
|
||||
/src/standalone/embed-player-api/build
|
||||
/src/standalone/embed-player-api/dist
|
||||
/e2e/logs
|
@ -0,0 +1,72 @@
|
||||
{
|
||||
"extends": "stylelint-config-sass-guidelines",
|
||||
"plugins": [
|
||||
"stylelint-order"
|
||||
],
|
||||
"rules": {
|
||||
"declaration-empty-line-before": [
|
||||
"always",
|
||||
{
|
||||
"except": [
|
||||
"first-nested"
|
||||
],
|
||||
"ignore": [ "after-declaration", "after-comment" ]
|
||||
}
|
||||
],
|
||||
"at-rule-empty-line-before": [
|
||||
"always",
|
||||
{
|
||||
"except": [
|
||||
"first-nested",
|
||||
"blockless-after-blockless"
|
||||
],
|
||||
"ignore": [ "after-comment" ],
|
||||
"ignoreAtRules": [ "else" ]
|
||||
}
|
||||
],
|
||||
"order/order": [
|
||||
"custom-properties",
|
||||
"declarations",
|
||||
{
|
||||
"type": "at-rule",
|
||||
"name": "include"
|
||||
}
|
||||
],
|
||||
"scss/selector-no-redundant-nesting-selector": null,
|
||||
"scss/at-import-no-partial-leading-underscore": null,
|
||||
"color-hex-length": null,
|
||||
"selector-pseudo-element-no-unknown": [
|
||||
true,
|
||||
{
|
||||
"ignorePseudoElements": [
|
||||
"ng-deep"
|
||||
]
|
||||
}
|
||||
],
|
||||
"max-nesting-depth": [
|
||||
8,
|
||||
{
|
||||
"ignore": [
|
||||
"blockless-at-rules",
|
||||
"pseudo-classes"
|
||||
]
|
||||
}
|
||||
],
|
||||
"selector-max-compound-selectors": 9,
|
||||
"selector-no-qualifying-type": null,
|
||||
"scss/at-extend-no-missing-placeholder": null,
|
||||
"rule-empty-line-before": null,
|
||||
"selector-max-id": null,
|
||||
"scss/at-function-pattern": null,
|
||||
"scss/load-no-partial-leading-underscore": null,
|
||||
"property-no-vendor-prefix": [
|
||||
true,
|
||||
{
|
||||
"ignoreProperties": [
|
||||
"mask-image",
|
||||
"mask-size"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
{
|
||||
"xliffmergeOptions": {
|
||||
"i18nFormat": "xlf",
|
||||
"srcDir": "src/locale",
|
||||
"genDir": "src/locale",
|
||||
"i18nBaseFile": "angular",
|
||||
"defaultLanguage": "en-US"
|
||||
}
|
||||
}
|
@ -0,0 +1,339 @@
|
||||
{
|
||||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
||||
"version": 1,
|
||||
"newProjectRoot": "projects",
|
||||
"projects": {
|
||||
"PeerTube": {
|
||||
"root": "",
|
||||
"sourceRoot": "src",
|
||||
"projectType": "application",
|
||||
"i18n": {
|
||||
"sourceLocale": {
|
||||
"code": "en",
|
||||
"baseHref": "/client/en-US/"
|
||||
},
|
||||
"locales": {
|
||||
"ar": {
|
||||
"translation": "src/locale/angular.ar.xlf",
|
||||
"baseHref": "/client/ar/"
|
||||
},
|
||||
"sk": {
|
||||
"translation": "src/locale/angular.sk-SK.xlf",
|
||||
"baseHref": "/client/sk-SK/"
|
||||
},
|
||||
"fa": {
|
||||
"translation": "src/locale/angular.fa-IR.xlf",
|
||||
"baseHref": "/client/fa-IR/"
|
||||
},
|
||||
"hu": {
|
||||
"translation": "src/locale/angular.hu-HU.xlf",
|
||||
"baseHref": "/client/hu-HU/"
|
||||
},
|
||||
"th": {
|
||||
"translation": "src/locale/angular.th-TH.xlf",
|
||||
"baseHref": "/client/th-TH/"
|
||||
},
|
||||
"tr": {
|
||||
"translation": "src/locale/angular.tr-TR.xlf",
|
||||
"baseHref": "/client/tr-TR/"
|
||||
},
|
||||
"fi": {
|
||||
"translation": "src/locale/angular.fi-FI.xlf",
|
||||
"baseHref": "/client/fi-FI/"
|
||||
},
|
||||
"nl": {
|
||||
"translation": "src/locale/angular.nl-NL.xlf",
|
||||
"baseHref": "/client/nl-NL/"
|
||||
},
|
||||
"gd": {
|
||||
"translation": "src/locale/angular.gd.xlf",
|
||||
"baseHref": "/client/gd/"
|
||||
},
|
||||
"el": {
|
||||
"translation": "src/locale/angular.el-GR.xlf",
|
||||
"baseHref": "/client/el-GR/"
|
||||
},
|
||||
"es": {
|
||||
"translation": "src/locale/angular.es-ES.xlf",
|
||||
"baseHref": "/client/es-ES/"
|
||||
},
|
||||
"oc": {
|
||||
"translation": "src/locale/angular.oc.xlf",
|
||||
"baseHref": "/client/oc/"
|
||||
},
|
||||
"pt": {
|
||||
"translation": "src/locale/angular.pt-BR.xlf",
|
||||
"baseHref": "/client/pt-BR/"
|
||||
},
|
||||
"pt-PT": {
|
||||
"translation": "src/locale/angular.pt-PT.xlf",
|
||||
"baseHref": "/client/pt-PT/"
|
||||
},
|
||||
"sv": {
|
||||
"translation": "src/locale/angular.sv-SE.xlf",
|
||||
"baseHref": "/client/sv-SE/"
|
||||
},
|
||||
"pl": {
|
||||
"translation": "src/locale/angular.pl-PL.xlf",
|
||||
"baseHref": "/client/pl-PL/"
|
||||
},
|
||||
"ru": {
|
||||
"translation": "src/locale/angular.ru-RU.xlf",
|
||||
"baseHref": "/client/ru-RU/"
|
||||
},
|
||||
"sq": {
|
||||
"translation": "src/locale/angular.sq.xlf",
|
||||
"baseHref": "/client/sq/"
|
||||
},
|
||||
"hr": {
|
||||
"translation": "src/locale/angular.hr.xlf",
|
||||
"baseHref": "/client/hr/"
|
||||
},
|
||||
"zh-Hans": {
|
||||
"translation": "src/locale/angular.zh-Hans-CN.xlf",
|
||||
"baseHref": "/client/zh-Hans-CN/"
|
||||
},
|
||||
"zh-Hant": {
|
||||
"translation": "src/locale/angular.zh-Hant-TW.xlf",
|
||||
"baseHref": "/client/zh-Hant-TW/"
|
||||
},
|
||||
"fr": {
|
||||
"translation": "src/locale/angular.fr-FR.xlf",
|
||||
"baseHref": "/client/fr-FR/"
|
||||
},
|
||||
"ja": {
|
||||
"translation": "src/locale/angular.ja-JP.xlf",
|
||||
"baseHref": "/client/ja-JP/"
|
||||
},
|
||||
"eu": {
|
||||
"translation": "src/locale/angular.eu-ES.xlf",
|
||||
"baseHref": "/client/eu-ES/"
|
||||
},
|
||||
"ca": {
|
||||
"translation": "src/locale/angular.ca-ES.xlf",
|
||||
"baseHref": "/client/ca-ES/"
|
||||
},
|
||||
"gl": {
|
||||
"translation": "src/locale/angular.gl-ES.xlf",
|
||||
"baseHref": "/client/gl-ES/"
|
||||
},
|
||||
"cs": {
|
||||
"translation": "src/locale/angular.cs-CZ.xlf",
|
||||
"baseHref": "/client/cs-CZ/"
|
||||
},
|
||||
"eo": {
|
||||
"translation": "src/locale/angular.eo.xlf",
|
||||
"baseHref": "/client/eo/"
|
||||
},
|
||||
"de": {
|
||||
"translation": "src/locale/angular.de-DE.xlf",
|
||||
"baseHref": "/client/de-DE/"
|
||||
},
|
||||
"it": {
|
||||
"translation": "src/locale/angular.it-IT.xlf",
|
||||
"baseHref": "/client/it-IT/"
|
||||
},
|
||||
"vi": {
|
||||
"translation": "src/locale/angular.vi-VN.xlf",
|
||||
"baseHref": "/client/vi-VN/"
|
||||
},
|
||||
"kab": {
|
||||
"translation": "src/locale/angular.kab.xlf",
|
||||
"baseHref": "/client/kab/"
|
||||
},
|
||||
"nb": {
|
||||
"translation": "src/locale/angular.nb-NO.xlf",
|
||||
"baseHref": "/client/nb-NO/"
|
||||
},
|
||||
"tok": {
|
||||
"translation": "src/locale/angular.tok.xlf",
|
||||
"baseHref": "/client/tok/"
|
||||
},
|
||||
"nn": {
|
||||
"translation": "src/locale/angular.nn.xlf",
|
||||
"baseHref": "/client/nn/"
|
||||
},
|
||||
"is": {
|
||||
"translation": "src/locale/angular.is.xlf",
|
||||
"baseHref": "/client/is/"
|
||||
},
|
||||
"uk": {
|
||||
"translation": "src/locale/angular.uk-UA.xlf",
|
||||
"baseHref": "/client/uk-UA/"
|
||||
}
|
||||
}
|
||||
},
|
||||
"architect": {
|
||||
"build": {
|
||||
"builder": "@angular-devkit/build-angular:application",
|
||||
"options": {
|
||||
"i18nMissingTranslation": "ignore",
|
||||
"localize": true,
|
||||
"outputPath": {
|
||||
"base": "dist"
|
||||
},
|
||||
"index": "src/index.html",
|
||||
"tsConfig": "tsconfig.json",
|
||||
"polyfills": [
|
||||
"src/polyfills.ts",
|
||||
"@angular/localize/init"
|
||||
],
|
||||
"baseHref": "/",
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": [
|
||||
"src/sass/include",
|
||||
"."
|
||||
]
|
||||
},
|
||||
"assets": [
|
||||
"src/assets/images",
|
||||
"src/manifest.webmanifest"
|
||||
],
|
||||
"styles": [
|
||||
"src/sass/application.scss"
|
||||
],
|
||||
"allowedCommonJsDependencies": [
|
||||
"qrcode",
|
||||
"chart.js",
|
||||
"htmlparser2",
|
||||
"markdown-it-emoji/light",
|
||||
"linkifyjs/lib/linkify-html",
|
||||
"linkifyjs/lib/plugins/mention",
|
||||
"sanitize-html",
|
||||
"debug",
|
||||
"@peertube/p2p-media-loader-hlsjs",
|
||||
"video.js",
|
||||
"sha.js",
|
||||
"postcss",
|
||||
"focus-visible",
|
||||
"path-browserify",
|
||||
"deep-merge",
|
||||
"escape-string-regexp",
|
||||
"is-plain-object",
|
||||
"parse-srcset",
|
||||
"deepmerge",
|
||||
"core-js/features/reflect"
|
||||
],
|
||||
"scripts": [],
|
||||
"extractLicenses": false,
|
||||
"sourceMap": true,
|
||||
"optimization": false,
|
||||
"namedChunks": true,
|
||||
"browser": "src/main.ts",
|
||||
"loader": {
|
||||
".svg": "text"
|
||||
}
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
"optimization": true,
|
||||
"outputHashing": "all",
|
||||
"sourceMap": false,
|
||||
"namedChunks": false,
|
||||
"extractLicenses": true,
|
||||
"serviceWorker": "src/ngsw-config.json",
|
||||
"budgets": [
|
||||
{
|
||||
"type": "initial",
|
||||
"maximumWarning": "2mb",
|
||||
"maximumError": "5mb"
|
||||
},
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "6kb",
|
||||
"maximumError": "100kb"
|
||||
}
|
||||
],
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.prod.ts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ar-locale": {
|
||||
"localize": [
|
||||
"ar"
|
||||
],
|
||||
"budgets": [
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "6kb"
|
||||
}
|
||||
],
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.hmr.ts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"hmr": {
|
||||
"localize": false,
|
||||
"budgets": [
|
||||
{
|
||||
"type": "anyComponentStyle",
|
||||
"maximumWarning": "6kb"
|
||||
}
|
||||
],
|
||||
"fileReplacements": [
|
||||
{
|
||||
"replace": "src/environments/environment.ts",
|
||||
"with": "src/environments/environment.hmr.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"proxyConfig": "proxy.config.json",
|
||||
"buildTarget": "PeerTube:build"
|
||||
},
|
||||
"configurations": {
|
||||
"hmr": {
|
||||
"buildTarget": "PeerTube:build:hmr"
|
||||
},
|
||||
"ar-locale": {
|
||||
"buildTarget": "PeerTube:build:ar-locale"
|
||||
}
|
||||
}
|
||||
},
|
||||
"extract-i18n": {
|
||||
"builder": "@angular-devkit/build-angular:extract-i18n"
|
||||
},
|
||||
"lint": {
|
||||
"builder": "@angular-eslint/builder:lint",
|
||||
"options": {
|
||||
"lintFilePatterns": [
|
||||
"e2e/**/*.ts",
|
||||
"src/**/*.ts",
|
||||
"src/**/*.html"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"schematics": {
|
||||
"@schematics/angular:component": {
|
||||
"prefix": "my",
|
||||
"style": "scss",
|
||||
"skipTests": true,
|
||||
"flat": true
|
||||
},
|
||||
"@schematics/angular:directive": {
|
||||
"prefix": "my"
|
||||
},
|
||||
"@angular-eslint/schematics:application": {
|
||||
"setParserOptionsProject": true
|
||||
},
|
||||
"@angular-eslint/schematics:library": {
|
||||
"setParserOptionsProject": true
|
||||
}
|
||||
},
|
||||
"cli": {
|
||||
"analytics": false
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,12 @@
|
||||
browser.addCommand('chooseFile', async function (this: WebdriverIO.Element, localFilePath: string) {
|
||||
try {
|
||||
const remoteFile = await browser.uploadFile(localFilePath)
|
||||
|
||||
return this.addValue(remoteFile)
|
||||
} catch {
|
||||
console.log('Cannot upload file, fallback to add value.')
|
||||
|
||||
// Firefox does not support upload file, but if we're running the test in local we don't really need it
|
||||
return this.addValue(localFilePath)
|
||||
}
|
||||
}, true)
|
@ -0,0 +1,65 @@
|
||||
import { browserSleep, getCheckbox, go, isCheckboxSelected } from '../utils'
|
||||
|
||||
export class AdminConfigPage {
|
||||
|
||||
async navigateTo (tab: 'instance-homepage' | 'basic-configuration' | 'instance-information') {
|
||||
const waitTitles = {
|
||||
'instance-homepage': 'INSTANCE HOMEPAGE',
|
||||
'basic-configuration': 'APPEARANCE',
|
||||
'instance-information': 'INSTANCE'
|
||||
}
|
||||
await go('/admin/settings/config/edit-custom#' + tab)
|
||||
|
||||
await $('h2=' + waitTitles[tab]).waitForDisplayed()
|
||||
}
|
||||
|
||||
async updateNSFWSetting (newValue: 'do_not_list' | 'blur' | 'display') {
|
||||
const elem = $('#instanceDefaultNSFWPolicy')
|
||||
|
||||
await elem.waitForDisplayed()
|
||||
await elem.scrollIntoView({ block: 'center' }) // Avoid issues with fixed header
|
||||
await elem.waitForClickable()
|
||||
|
||||
return elem.selectByAttribute('value', newValue)
|
||||
}
|
||||
|
||||
updateHomepage (newValue: string) {
|
||||
return $('#instanceCustomHomepageContent').setValue(newValue)
|
||||
}
|
||||
|
||||
async toggleSignup (enabled: boolean) {
|
||||
if (await isCheckboxSelected('signupEnabled') === enabled) return
|
||||
|
||||
const checkbox = await getCheckbox('signupEnabled')
|
||||
|
||||
await checkbox.waitForClickable()
|
||||
await checkbox.click()
|
||||
}
|
||||
|
||||
async toggleSignupApproval (required: boolean) {
|
||||
if (await isCheckboxSelected('signupRequiresApproval') === required) return
|
||||
|
||||
const checkbox = await getCheckbox('signupRequiresApproval')
|
||||
|
||||
await checkbox.waitForClickable()
|
||||
await checkbox.click()
|
||||
}
|
||||
|
||||
async toggleSignupEmailVerification (required: boolean) {
|
||||
if (await isCheckboxSelected('signupRequiresEmailVerification') === required) return
|
||||
|
||||
const checkbox = await getCheckbox('signupRequiresEmailVerification')
|
||||
|
||||
await checkbox.waitForClickable()
|
||||
await checkbox.click()
|
||||
}
|
||||
|
||||
async save () {
|
||||
const button = $('input[type=submit]')
|
||||
|
||||
await button.waitForClickable()
|
||||
await button.click()
|
||||
|
||||
await browserSleep(1000)
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
import { browserSleep, go } from '../utils'
|
||||
|
||||
export class AdminPluginPage {
|
||||
|
||||
async navigateToPluginSearch () {
|
||||
await go('/admin/settings/plugins/search')
|
||||
|
||||
await $('my-plugin-search').waitForDisplayed()
|
||||
}
|
||||
|
||||
async search (name: string) {
|
||||
const input = $('.search-bar input')
|
||||
await input.waitForDisplayed()
|
||||
await input.clearValue()
|
||||
await input.setValue(name)
|
||||
|
||||
await browserSleep(1000)
|
||||
}
|
||||
|
||||
async installHelloWorld () {
|
||||
$('.plugin-name=hello-world').waitForDisplayed()
|
||||
|
||||
await $('.card-body my-button[icon=cloud-download]').click()
|
||||
|
||||
const submitModalButton = $('.modal-content input[type=submit]')
|
||||
await submitModalButton.waitForClickable()
|
||||
await submitModalButton.click()
|
||||
|
||||
await $('.card-body my-edit-button').waitForDisplayed()
|
||||
}
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
import { browserSleep, findParentElement, go } from '../utils'
|
||||
|
||||
export class AdminRegistrationPage {
|
||||
|
||||
async navigateToRegistratonsList () {
|
||||
await go('/admin/moderation/registrations/list')
|
||||
|
||||
await $('my-registration-list').waitForDisplayed()
|
||||
}
|
||||
|
||||
async accept (username: string, moderationResponse: string) {
|
||||
const usernameEl = await $('*=' + username)
|
||||
await usernameEl.waitForDisplayed()
|
||||
|
||||
const tr = await findParentElement(usernameEl, async el => await el.getTagName() === 'tr')
|
||||
|
||||
await tr.$('.action-cell .dropdown-root').click()
|
||||
|
||||
const accept = await $('span*=Accept this request')
|
||||
await accept.waitForClickable()
|
||||
await accept.click()
|
||||
|
||||
const moderationResponseTextarea = await $('#moderationResponse')
|
||||
await moderationResponseTextarea.waitForDisplayed()
|
||||
|
||||
await moderationResponseTextarea.setValue(moderationResponse)
|
||||
|
||||
const submitButton = $('.modal-footer input[type=submit]')
|
||||
await submitButton.waitForClickable()
|
||||
await submitButton.click()
|
||||
|
||||
await browserSleep(1000)
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
import { getCheckbox } from '../utils'
|
||||
|
||||
export class AnonymousSettingsPage {
|
||||
|
||||
async openSettings () {
|
||||
const link = await $('my-header .settings-button')
|
||||
await link.waitForClickable()
|
||||
await link.click()
|
||||
|
||||
await $('my-user-video-settings').waitForDisplayed()
|
||||
}
|
||||
|
||||
async clickOnP2PCheckbox () {
|
||||
const p2p = await getCheckbox('p2pEnabled')
|
||||
await p2p.waitForClickable()
|
||||
|
||||
await p2p.click()
|
||||
}
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
import { browserSleep, go, isAndroid } from '../utils'
|
||||
|
||||
export class LoginPage {
|
||||
|
||||
constructor (private isMobileDevice: boolean) {
|
||||
|
||||
}
|
||||
|
||||
async login (options: {
|
||||
username: string
|
||||
password: string
|
||||
displayName?: string
|
||||
url?: string
|
||||
}) {
|
||||
const { username, password, url = '/login', displayName = username } = options
|
||||
|
||||
await go(url)
|
||||
|
||||
await browser.execute(`window.localStorage.setItem('no_account_setup_warning_modal', 'true')`)
|
||||
await browser.execute(`window.localStorage.setItem('no_instance_config_warning_modal', 'true')`)
|
||||
await browser.execute(`window.localStorage.setItem('no_welcome_modal', 'true')`)
|
||||
|
||||
await $('input#username').setValue(username)
|
||||
await $('input#password').setValue(password)
|
||||
|
||||
await browserSleep(1000)
|
||||
|
||||
const submit = $('.login-form-and-externals > form input[type=submit]')
|
||||
await submit.click()
|
||||
|
||||
// Have to do this on Android, don't really know why
|
||||
// I think we need to "escape" from the password input, so click twice on the submit button
|
||||
if (isAndroid()) {
|
||||
await browserSleep(2000)
|
||||
await submit.click()
|
||||
}
|
||||
|
||||
await this.ensureIsLoggedInAs(displayName)
|
||||
}
|
||||
|
||||
async getLoginError (username: string, password: string) {
|
||||
await go('/login')
|
||||
|
||||
await $('input#username').setValue(username)
|
||||
await $('input#password').setValue(password)
|
||||
|
||||
await browser.pause(1000)
|
||||
|
||||
await $('form input[type=submit]').click()
|
||||
|
||||
return $('.alert-danger').getText()
|
||||
}
|
||||
|
||||
async loginAsRootUser () {
|
||||
return this.login({ username: 'root', password: 'test' + this.getSuffix() })
|
||||
}
|
||||
|
||||
loginOnPeerTube2 () {
|
||||
if (!process.env.PEERTUBE2_E2E_PASSWORD) {
|
||||
throw new Error('PEERTUBE2_E2E_PASSWORD env is missing for user e2e on peertube2.cpy.re')
|
||||
}
|
||||
|
||||
return this.login({ username: 'e2e', password: process.env.PEERTUBE2_E2E_PASSWORD, url: 'https://peertube2.cpy.re/login' })
|
||||
}
|
||||
|
||||
async logout () {
|
||||
const loggedInDropdown = $('.logged-in-container .logged-in-info')
|
||||
|
||||
await loggedInDropdown.waitForClickable()
|
||||
await loggedInDropdown.click()
|
||||
|
||||
const logout = $('.dropdown-item*=Log out')
|
||||
|
||||
await logout.waitForClickable()
|
||||
await logout.click()
|
||||
|
||||
await browser.waitUntil(() => {
|
||||
return $$('my-login-link, my-error-page a[href="/login"]').some(e => e.isDisplayed())
|
||||
})
|
||||
}
|
||||
|
||||
async ensureIsLoggedInAs (displayName: string) {
|
||||
await this.getLoggedInInfoElem(displayName).waitForExist()
|
||||
}
|
||||
|
||||
private getLoggedInInfoElem (displayName: string) {
|
||||
return $('.logged-in-info').$('.display-name*=' + displayName)
|
||||
}
|
||||
|
||||
private getSuffix () {
|
||||
return browser.options.baseUrl
|
||||
? browser.options.baseUrl.slice(-1)
|
||||
: '1'
|
||||
}
|
||||
}
|
@ -0,0 +1,179 @@
|
||||
import { getCheckbox, go, selectCustomSelect } from '../utils'
|
||||
|
||||
export class MyAccountPage {
|
||||
|
||||
navigateToMyVideos () {
|
||||
return $('a[href="/my-library/videos"]').click()
|
||||
}
|
||||
|
||||
navigateToMyPlaylists () {
|
||||
return $('a[href="/my-library/video-playlists"]').click()
|
||||
}
|
||||
|
||||
navigateToMyHistory () {
|
||||
return $('a[href="/my-library/history/videos"]').click()
|
||||
}
|
||||
|
||||
// Settings
|
||||
|
||||
navigateToMySettings () {
|
||||
return $('a[href="/my-account"]').click()
|
||||
}
|
||||
|
||||
async updateNSFW (newValue: 'do_not_list' | 'blur' | 'display') {
|
||||
const nsfw = $('#nsfwPolicy')
|
||||
|
||||
await nsfw.waitForDisplayed()
|
||||
await nsfw.scrollIntoView({ block: 'center' }) // Avoid issues with fixed header
|
||||
await nsfw.waitForClickable()
|
||||
|
||||
await nsfw.selectByAttribute('value', newValue)
|
||||
|
||||
await this.submitVideoSettings()
|
||||
}
|
||||
|
||||
async clickOnP2PCheckbox () {
|
||||
const p2p = await getCheckbox('p2pEnabled')
|
||||
|
||||
await p2p.waitForClickable()
|
||||
await p2p.scrollIntoView({ block: 'center' }) // Avoid issues with fixed header
|
||||
|
||||
await p2p.click()
|
||||
|
||||
await this.submitVideoSettings()
|
||||
}
|
||||
|
||||
private async submitVideoSettings () {
|
||||
const submit = $('my-user-video-settings input[type=submit]')
|
||||
|
||||
await submit.waitForClickable()
|
||||
await submit.scrollIntoView({ block: 'center' }) // Avoid issues with fixed header
|
||||
await submit.click()
|
||||
}
|
||||
|
||||
// My account Videos
|
||||
|
||||
async removeVideo (name: string) {
|
||||
const container = await this.getVideoElement(name)
|
||||
|
||||
await container.$('my-action-dropdown .dropdown-toggle').click()
|
||||
|
||||
const deleteItem = () => {
|
||||
return $$('.dropdown-menu .dropdown-item').find<WebdriverIO.Element>(async v => {
|
||||
const text = await v.getText()
|
||||
|
||||
return text.includes('Delete')
|
||||
})
|
||||
}
|
||||
|
||||
await (await deleteItem()).waitForClickable()
|
||||
|
||||
return (await deleteItem()).click()
|
||||
}
|
||||
|
||||
validRemove () {
|
||||
return $('input[type=submit]').click()
|
||||
}
|
||||
|
||||
async countVideos (names: string[]) {
|
||||
const elements = await $$('.video').filter(async e => {
|
||||
const t = await e.$('.video-name').getText()
|
||||
|
||||
return names.some(n => t.includes(n))
|
||||
})
|
||||
|
||||
return elements.length
|
||||
}
|
||||
|
||||
// My account playlists
|
||||
|
||||
async getPlaylistVideosText (name: string) {
|
||||
const elem = await this.getPlaylist(name)
|
||||
|
||||
return elem.$('.miniature-playlist-info-overlay').getText()
|
||||
}
|
||||
|
||||
async clickOnPlaylist (name: string) {
|
||||
const elem = await this.getPlaylist(name)
|
||||
|
||||
return elem.$('.miniature-thumbnail').click()
|
||||
}
|
||||
|
||||
async countTotalPlaylistElements () {
|
||||
await $('<my-video-playlist-element-miniature>').waitForDisplayed()
|
||||
|
||||
return $$('<my-video-playlist-element-miniature>').length
|
||||
}
|
||||
|
||||
playPlaylist () {
|
||||
return $('.playlist-info .miniature-thumbnail').click()
|
||||
}
|
||||
|
||||
async goOnAssociatedPlaylistEmbed () {
|
||||
let url = await browser.getUrl()
|
||||
url = url.replace('/w/p/', '/video-playlists/embed/')
|
||||
url = url.replace(':3333', ':9001')
|
||||
|
||||
return go(url)
|
||||
}
|
||||
|
||||
async updatePlaylistPrivacy (playlistUUID: string, privacy: 'Public' | 'Private' | 'Unlisted') {
|
||||
go('/my-library/video-playlists/update/' + playlistUUID)
|
||||
|
||||
await $('a[href*="/my-library/video-playlists/update/"]').waitForDisplayed()
|
||||
|
||||
await selectCustomSelect('videoChannelId', 'Main root channel')
|
||||
await selectCustomSelect('privacy', privacy)
|
||||
|
||||
const submit = await $('form input[type=submit]')
|
||||
await submit.waitForClickable()
|
||||
await submit.scrollIntoView()
|
||||
await submit.click()
|
||||
|
||||
return browser.waitUntil(async () => {
|
||||
return (await browser.getUrl()).includes('my-library/video-playlists')
|
||||
})
|
||||
}
|
||||
|
||||
// My account Videos
|
||||
|
||||
private async getVideoElement (name: string) {
|
||||
const video = async () => {
|
||||
const videos = await $$('.video').filter(async e => {
|
||||
const t = await e.$('.video-name').getText()
|
||||
|
||||
return t.includes(name)
|
||||
})
|
||||
|
||||
return videos[0]
|
||||
}
|
||||
|
||||
await browser.waitUntil(async () => {
|
||||
return (await video()).isDisplayed()
|
||||
})
|
||||
|
||||
return video()
|
||||
}
|
||||
|
||||
// My account playlists
|
||||
|
||||
private async getPlaylist (name: string) {
|
||||
const playlist = () => {
|
||||
return $$('my-video-playlist-miniature')
|
||||
.filter(async e => {
|
||||
const t = await e.$('.miniature-name').getText()
|
||||
|
||||
return t.includes(name)
|
||||
})
|
||||
.then(elems => elems[0])
|
||||
}
|
||||
|
||||
await browser.waitUntil(async () => {
|
||||
const el = await playlist()
|
||||
|
||||
return el?.isDisplayed()
|
||||
})
|
||||
|
||||
return playlist()
|
||||
}
|
||||
}
|
@ -0,0 +1,86 @@
|
||||
import { browserSleep, isIOS, isMobileDevice, isSafari } from '../utils'
|
||||
|
||||
export class PlayerPage {
|
||||
|
||||
getWatchVideoPlayerCurrentTime () {
|
||||
const elem = $('video')
|
||||
|
||||
const p = isIOS()
|
||||
? elem.getAttribute('currentTime')
|
||||
: elem.getProperty('currentTime')
|
||||
|
||||
return p.then(t => parseInt(t + '', 10))
|
||||
.then(t => Math.ceil(t))
|
||||
}
|
||||
|
||||
waitUntilPlaylistInfo (text: string, maxTime: number) {
|
||||
return browser.waitUntil(async () => {
|
||||
// Without this we have issues on iphone
|
||||
await $('.video-js').click()
|
||||
|
||||
return (await $('.video-js .vjs-playlist-info').getText()).includes(text)
|
||||
}, { timeout: maxTime })
|
||||
}
|
||||
|
||||
waitUntilPlayerWrapper () {
|
||||
return browser.waitUntil(async () => {
|
||||
return !!(await $('#placeholder-preview'))
|
||||
})
|
||||
}
|
||||
|
||||
async playAndPauseVideo (isAutoplay: boolean, waitUntilSec: number) {
|
||||
// Autoplay is disabled on mobile and Safari
|
||||
if (isIOS() || isSafari() || isMobileDevice() || isAutoplay === false) {
|
||||
await this.playVideo()
|
||||
}
|
||||
|
||||
await $('div.video-js.vjs-has-started').waitForExist()
|
||||
|
||||
await browserSleep(2000)
|
||||
|
||||
await browser.waitUntil(async () => {
|
||||
return (await this.getWatchVideoPlayerCurrentTime()) >= waitUntilSec
|
||||
}, { timeout: Math.max(waitUntilSec * 2 * 1000, 30000) })
|
||||
|
||||
// Pause video
|
||||
await $('div.video-js').click()
|
||||
}
|
||||
|
||||
async playVideo () {
|
||||
await $('div.video-js.vjs-paused, div.video-js.vjs-playing').waitForExist()
|
||||
|
||||
if (await $('div.video-js.vjs-playing').isExisting()) {
|
||||
if (!isIOS()) return
|
||||
|
||||
// On iOS, the web browser may have aborted player autoplay, so check the video is still autoplayed
|
||||
await browserSleep(5000)
|
||||
if (await $('div.video-js.vjs-playing').isExisting()) return
|
||||
}
|
||||
|
||||
// Autoplay is disabled on iOS and Safari
|
||||
if (isIOS() || isSafari() || isMobileDevice()) {
|
||||
// We can't play the video if it is not muted
|
||||
await browser.execute(`document.querySelector('video').muted = true`)
|
||||
}
|
||||
|
||||
return this.clickOnPlayButton()
|
||||
}
|
||||
|
||||
private async clickOnPlayButton () {
|
||||
const playButton = () => $('.vjs-big-play-button')
|
||||
|
||||
await playButton().waitForClickable()
|
||||
await playButton().click()
|
||||
}
|
||||
|
||||
async fillEmbedVideoPassword (videoPassword: string) {
|
||||
const videoPasswordInput = $('input#video-password-input')
|
||||
const confirmButton = await $('button#video-password-submit')
|
||||
|
||||
await videoPasswordInput.clearValue()
|
||||
await videoPasswordInput.setValue(videoPassword)
|
||||
await confirmButton.waitForClickable()
|
||||
|
||||
return confirmButton.click()
|
||||
}
|
||||
}
|
@ -0,0 +1,87 @@
|
||||
import { getCheckbox } from '../utils'
|
||||
|
||||
export class SignupPage {
|
||||
|
||||
getRegisterMenuButton () {
|
||||
return $('.create-account-button')
|
||||
}
|
||||
|
||||
async clickOnRegisterButton () {
|
||||
const button = this.getRegisterMenuButton()
|
||||
|
||||
await button.waitForClickable()
|
||||
await button.click()
|
||||
}
|
||||
|
||||
async validateStep () {
|
||||
const next = $('button[type=submit]')
|
||||
|
||||
await next.waitForClickable()
|
||||
await next.click()
|
||||
}
|
||||
|
||||
async checkTerms () {
|
||||
const terms = await getCheckbox('terms')
|
||||
await terms.waitForClickable()
|
||||
|
||||
return terms.click()
|
||||
}
|
||||
|
||||
async getEndMessage () {
|
||||
const alert = $('.pt-alert-primary')
|
||||
await alert.waitForDisplayed()
|
||||
|
||||
return alert.getText()
|
||||
}
|
||||
|
||||
async fillRegistrationReason (reason: string) {
|
||||
await $('#registrationReason').setValue(reason)
|
||||
}
|
||||
|
||||
async fillAccountStep (options: {
|
||||
username: string
|
||||
password?: string
|
||||
displayName?: string
|
||||
email?: string
|
||||
}) {
|
||||
await $('#displayName').setValue(options.displayName || `${options.username} display name`)
|
||||
|
||||
await $('#username').setValue(options.username)
|
||||
await $('#password').setValue(options.password || 'password')
|
||||
|
||||
// Fix weird bug on firefox that "cannot scroll into view" when using just `setValue`
|
||||
await $('#email').scrollIntoView({ block: 'center' })
|
||||
await $('#email').waitForClickable()
|
||||
await $('#email').setValue(options.email || `${options.username}@example.com`)
|
||||
}
|
||||
|
||||
async fillChannelStep (options: {
|
||||
name: string
|
||||
displayName?: string
|
||||
}) {
|
||||
await $('#displayName').setValue(options.displayName || `${options.name} channel display name`)
|
||||
await $('#name').setValue(options.name)
|
||||
}
|
||||
|
||||
async fullSignup ({ accountInfo, channelInfo }: {
|
||||
accountInfo: {
|
||||
username: string
|
||||
password?: string
|
||||
displayName?: string
|
||||
email?: string
|
||||
}
|
||||
channelInfo: {
|
||||
name: string
|
||||
}
|
||||
}) {
|
||||
await this.clickOnRegisterButton()
|
||||
await this.validateStep()
|
||||
await this.checkTerms()
|
||||
await this.validateStep()
|
||||
await this.fillAccountStep(accountInfo)
|
||||
await this.validateStep()
|
||||
await this.fillChannelStep(channelInfo)
|
||||
await this.validateStep()
|
||||
await this.getEndMessage()
|
||||
}
|
||||
}
|
@ -0,0 +1,123 @@
|
||||
import { browserSleep, go } from '../utils'
|
||||
|
||||
export class VideoListPage {
|
||||
|
||||
constructor (private isMobileDevice: boolean, private isSafari: boolean) {
|
||||
|
||||
}
|
||||
|
||||
async goOnVideosList () {
|
||||
let url: string
|
||||
|
||||
// We did not upload a file on a mobile device
|
||||
if (this.isMobileDevice === true || this.isSafari === true) {
|
||||
url = 'https://peertube2.cpy.re/videos/browse?scope=local'
|
||||
} else {
|
||||
url = '/videos/browse'
|
||||
}
|
||||
|
||||
await go(url)
|
||||
|
||||
// Waiting the following element does not work on Safari...
|
||||
if (this.isSafari) return browserSleep(3000)
|
||||
|
||||
await this.waitForList()
|
||||
}
|
||||
|
||||
async goOnBrowseVideos () {
|
||||
await $('.menu-link*=Home').click()
|
||||
|
||||
const browseVideos = $('a*=Browse videos')
|
||||
await browseVideos.waitForClickable()
|
||||
await browseVideos.click()
|
||||
await this.waitForList()
|
||||
}
|
||||
|
||||
async goOnHomepage () {
|
||||
await go('/home')
|
||||
await this.waitForList()
|
||||
}
|
||||
|
||||
async goOnRootChannel () {
|
||||
await go('/c/root_channel/videos')
|
||||
await this.waitForList()
|
||||
}
|
||||
|
||||
async goOnRootAccount () {
|
||||
await go('/a/root/videos')
|
||||
await this.waitForList()
|
||||
}
|
||||
|
||||
async goOnRootAccountChannels () {
|
||||
await go('/a/root/video-channels')
|
||||
await this.waitForList()
|
||||
}
|
||||
|
||||
async getNSFWFilter () {
|
||||
const el = $('.active-filter*=Sensitive')
|
||||
await el.waitForDisplayed()
|
||||
|
||||
return el
|
||||
}
|
||||
|
||||
async getVideosListName () {
|
||||
const elems = await $$('.videos .video-miniature .video-name')
|
||||
const texts = await elems.map(e => e.getText())
|
||||
|
||||
return texts.map(t => t.trim())
|
||||
}
|
||||
|
||||
videoExists (name: string) {
|
||||
return $('.video-name=' + name).isDisplayed()
|
||||
}
|
||||
|
||||
async videoIsBlurred (name: string) {
|
||||
const filter = await $('.video-name=' + name).getCSSProperty('filter')
|
||||
|
||||
return filter.value !== 'none'
|
||||
}
|
||||
|
||||
async clickOnVideo (videoName: string) {
|
||||
const video = async () => {
|
||||
const videos = await $$('.videos .video-miniature .video-name').filter(async e => {
|
||||
const t = await e.getText()
|
||||
|
||||
return t === videoName
|
||||
})
|
||||
|
||||
return videos[0]
|
||||
}
|
||||
|
||||
await browser.waitUntil(async () => {
|
||||
const elem = await video()
|
||||
|
||||
return elem?.isClickable()
|
||||
});
|
||||
|
||||
(await video()).click()
|
||||
|
||||
await browser.waitUntil(async () => (await browser.getUrl()).includes('/w/'))
|
||||
}
|
||||
|
||||
async clickOnFirstVideo () {
|
||||
const video = () => $('.videos .video-miniature .video-thumbnail')
|
||||
const videoName = () => $('.videos .video-miniature .video-name')
|
||||
|
||||
await video().waitForClickable()
|
||||
|
||||
const textToReturn = await videoName().getText()
|
||||
await video().click()
|
||||
|
||||
await browser.waitUntil(async () => (await browser.getUrl()).includes('/w/'))
|
||||
|
||||
return textToReturn
|
||||
}
|
||||
|
||||
private waitForList () {
|
||||
return $('.videos .video-miniature .video-name').waitForDisplayed()
|
||||
}
|
||||
|
||||
private waitForTitle (title: string) {
|
||||
return $('h1=' + title).waitForDisplayed()
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
export class VideoSearchPage {
|
||||
|
||||
async search (search: string) {
|
||||
await $('#search-video').setValue(search)
|
||||
await $('.search-button').click()
|
||||
|
||||
await browser.waitUntil(() => {
|
||||
return $('my-video-miniature').isDisplayed()
|
||||
})
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
export class VideoUpdatePage {
|
||||
|
||||
async updateName (videoName: string) {
|
||||
const nameInput = $('input#name')
|
||||
|
||||
await nameInput.waitForDisplayed()
|
||||
await nameInput.clearValue()
|
||||
await nameInput.setValue(videoName)
|
||||
}
|
||||
|
||||
async validUpdate () {
|
||||
const submitButton = await this.getSubmitButton()
|
||||
|
||||
return submitButton.click()
|
||||
}
|
||||
|
||||
private getSubmitButton () {
|
||||
return $('.submit-container .action-button')
|
||||
}
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
import { join } from 'path'
|
||||
import { getCheckbox, selectCustomSelect } from '../utils'
|
||||
|
||||
export class VideoUploadPage {
|
||||
async navigateTo () {
|
||||
const publishButton = await $('.publish-button > a')
|
||||
|
||||
await publishButton.waitForClickable()
|
||||
await publishButton.click()
|
||||
|
||||
await $('.upload-video-container').waitForDisplayed()
|
||||
}
|
||||
|
||||
async uploadVideo (fixtureName: 'video.mp4' | 'video2.mp4' | 'video3.mp4') {
|
||||
const fileToUpload = join(__dirname, '../../fixtures/' + fixtureName)
|
||||
const fileInputSelector = '.upload-video-container input[type=file]'
|
||||
const parentFileInput = '.upload-video-container .button-file'
|
||||
|
||||
// Avoid sending keys on non visible element
|
||||
await browser.execute(`document.querySelector('${fileInputSelector}').style.opacity = 1`)
|
||||
await browser.execute(`document.querySelector('${parentFileInput}').style.overflow = 'initial'`)
|
||||
|
||||
await browser.pause(1000)
|
||||
|
||||
const elem = await $(fileInputSelector)
|
||||
await elem.chooseFile(fileToUpload)
|
||||
|
||||
// Wait for the upload to finish
|
||||
await browser.waitUntil(async () => {
|
||||
const warning = await $('=Publish will be available when upload is finished').isDisplayed()
|
||||
const progress = await $('.progress-container=100%').isDisplayed()
|
||||
|
||||
return !warning && progress
|
||||
})
|
||||
}
|
||||
|
||||
async setAsNSFW () {
|
||||
const checkbox = await getCheckbox('nsfw')
|
||||
await checkbox.waitForClickable()
|
||||
|
||||
return checkbox.click()
|
||||
}
|
||||
|
||||
async validSecondUploadStep (videoName: string) {
|
||||
const nameInput = $('input#name')
|
||||
await nameInput.clearValue()
|
||||
await nameInput.setValue(videoName)
|
||||
|
||||
const button = this.getSecondStepSubmitButton()
|
||||
await button.waitForClickable()
|
||||
|
||||
await button.click()
|
||||
|
||||
return browser.waitUntil(async () => {
|
||||
return (await browser.getUrl()).includes('/w/')
|
||||
})
|
||||
}
|
||||
|
||||
setAsPublic () {
|
||||
return selectCustomSelect('privacy', 'Public')
|
||||
}
|
||||
|
||||
setAsPrivate () {
|
||||
return selectCustomSelect('privacy', 'Private')
|
||||
}
|
||||
|
||||
async setAsPasswordProtected (videoPassword: string) {
|
||||
selectCustomSelect('privacy', 'Password protected')
|
||||
|
||||
const videoPasswordInput = $('input#videoPassword')
|
||||
await videoPasswordInput.waitForClickable()
|
||||
await videoPasswordInput.clearValue()
|
||||
|
||||
return videoPasswordInput.setValue(videoPassword)
|
||||
}
|
||||
|
||||
private getSecondStepSubmitButton () {
|
||||
return $('.submit-container my-button')
|
||||
}
|
||||
}
|
@ -0,0 +1,231 @@
|
||||
import { browserSleep, FIXTURE_URLS, go } from '../utils'
|
||||
|
||||
export class VideoWatchPage {
|
||||
|
||||
constructor (private isMobileDevice: boolean, private isSafari: boolean) {
|
||||
|
||||
}
|
||||
|
||||
waitWatchVideoName (videoName: string) {
|
||||
if (this.isSafari) return browserSleep(5000)
|
||||
|
||||
// On mobile we display the first node, on desktop the second one
|
||||
const index = this.isMobileDevice ? 0 : 1
|
||||
|
||||
return browser.waitUntil(async () => {
|
||||
if (!await $('.video-info .video-info-name').isExisting()) return false
|
||||
|
||||
const elem = await $$('.video-info .video-info-name')[index]
|
||||
|
||||
return (await elem.getText()).includes(videoName) && elem.isDisplayed()
|
||||
})
|
||||
}
|
||||
|
||||
getVideoName () {
|
||||
return this.getVideoNameElement().then(e => e.getText())
|
||||
}
|
||||
|
||||
getPrivacy () {
|
||||
return $('.attribute-privacy .attribute-value').getText()
|
||||
}
|
||||
|
||||
getLicence () {
|
||||
return $('.attribute-licence .attribute-value').getText()
|
||||
}
|
||||
|
||||
async isDownloadEnabled () {
|
||||
try {
|
||||
await this.clickOnMoreDropdownIcon()
|
||||
|
||||
return await $('.dropdown-item .icon-download').isExisting()
|
||||
} catch {
|
||||
return $('.action-button-download').isDisplayed()
|
||||
}
|
||||
}
|
||||
|
||||
areCommentsEnabled () {
|
||||
return $('my-video-comment-add').isExisting()
|
||||
}
|
||||
|
||||
isPrivacyWarningDisplayed () {
|
||||
return $('my-privacy-concerns').isDisplayed()
|
||||
}
|
||||
|
||||
async goOnAssociatedEmbed (passwordProtected = false) {
|
||||
let url = await browser.getUrl()
|
||||
url = url.replace('/w/', '/videos/embed/')
|
||||
url = url.replace(':3333', ':9001')
|
||||
|
||||
await go(url)
|
||||
|
||||
if (passwordProtected) await this.waitEmbedForVideoPasswordForm()
|
||||
else await this.waitEmbedForDisplayed()
|
||||
}
|
||||
|
||||
waitEmbedForDisplayed () {
|
||||
return $('.vjs-big-play-button').waitForDisplayed()
|
||||
}
|
||||
|
||||
waitEmbedForVideoPasswordForm () {
|
||||
return $('#video-password-input').waitForDisplayed()
|
||||
}
|
||||
|
||||
isEmbedWarningDisplayed () {
|
||||
return $('.peertube-dock-description').isDisplayed()
|
||||
}
|
||||
|
||||
goOnP2PMediaLoaderEmbed () {
|
||||
return go(FIXTURE_URLS.HLS_EMBED)
|
||||
}
|
||||
|
||||
goOnP2PMediaLoaderPlaylistEmbed () {
|
||||
return go(FIXTURE_URLS.HLS_PLAYLIST_EMBED)
|
||||
}
|
||||
|
||||
async clickOnUpdate () {
|
||||
await this.clickOnMoreDropdownIcon()
|
||||
|
||||
const items = await $$('.dropdown-menu.show .dropdown-item')
|
||||
|
||||
for (const item of items) {
|
||||
const href = await item.getAttribute('href')
|
||||
|
||||
if (href?.includes('/update/')) {
|
||||
await item.click()
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
clickOnSave () {
|
||||
return $('.action-button-save').click()
|
||||
}
|
||||
|
||||
async createPlaylist (name: string) {
|
||||
const newPlaylistButton = () => $('.new-playlist-button')
|
||||
|
||||
await newPlaylistButton().waitForClickable()
|
||||
await newPlaylistButton().click()
|
||||
|
||||
const displayName = () => $('#displayName')
|
||||
|
||||
await displayName().waitForDisplayed()
|
||||
await displayName().setValue(name)
|
||||
|
||||
return $('.new-playlist-block input[type=submit]').click()
|
||||
}
|
||||
|
||||
async saveToPlaylist (name: string) {
|
||||
const playlist = () => $('my-video-add-to-playlist').$(`.playlist=${name}`)
|
||||
|
||||
await playlist().waitForDisplayed()
|
||||
|
||||
return playlist().click()
|
||||
}
|
||||
|
||||
waitUntilVideoName (name: string, maxTime: number) {
|
||||
return browser.waitUntil(async () => {
|
||||
return (await this.getVideoName()) === name
|
||||
}, { timeout: maxTime })
|
||||
}
|
||||
|
||||
async clickOnMoreDropdownIcon () {
|
||||
const dropdown = $('my-video-actions-dropdown .action-button')
|
||||
await dropdown.click()
|
||||
|
||||
await $('.dropdown-menu.show .dropdown-item').waitForDisplayed()
|
||||
}
|
||||
|
||||
private async getVideoNameElement () {
|
||||
// We have 2 video info name block, pick the first that is not empty
|
||||
const elem = async () => {
|
||||
const elems = await $$('.video-info-first-row .video-info-name').filter(e => e.isDisplayed())
|
||||
|
||||
return elems[0]
|
||||
}
|
||||
|
||||
await browser.waitUntil(async () => {
|
||||
const e = await elem()
|
||||
|
||||
return e?.isDisplayed()
|
||||
})
|
||||
|
||||
return elem()
|
||||
}
|
||||
|
||||
isPasswordProtected () {
|
||||
return $('#confirmInput').isExisting()
|
||||
}
|
||||
|
||||
async fillVideoPassword (videoPassword: string) {
|
||||
const videoPasswordInput = await $('input#confirmInput')
|
||||
await videoPasswordInput.waitForClickable()
|
||||
await videoPasswordInput.clearValue()
|
||||
await videoPasswordInput.setValue(videoPassword)
|
||||
|
||||
const confirmButton = await $('input[value="Confirm"]')
|
||||
await confirmButton.waitForClickable()
|
||||
return confirmButton.click()
|
||||
}
|
||||
|
||||
async like () {
|
||||
const likeButton = await $('.action-button-like')
|
||||
const isActivated = (await likeButton.getAttribute('class')).includes('activated')
|
||||
|
||||
let count: number
|
||||
try {
|
||||
count = parseInt(await $('.action-button-like > .count').getText())
|
||||
} catch (error) {
|
||||
count = 0
|
||||
}
|
||||
|
||||
await likeButton.waitForClickable()
|
||||
await likeButton.click()
|
||||
|
||||
if (isActivated) {
|
||||
if (count === 1) {
|
||||
return expect(!await $('.action-button-like > .count').isExisting())
|
||||
} else {
|
||||
return expect(parseInt(await $('.action-button-like > .count').getText())).toBe(count - 1)
|
||||
}
|
||||
} else {
|
||||
return expect(parseInt(await $('.action-button-like > .count').getText())).toBe(count + 1)
|
||||
}
|
||||
}
|
||||
|
||||
async createThread (comment: string) {
|
||||
const textarea = await $('my-video-comment-add textarea')
|
||||
await textarea.waitForClickable()
|
||||
|
||||
await textarea.setValue(comment)
|
||||
|
||||
const confirmButton = await $('.comment-buttons .primary-button')
|
||||
await confirmButton.waitForClickable()
|
||||
await confirmButton.click()
|
||||
|
||||
const createdComment = await (await $('.comment-html p')).getText()
|
||||
|
||||
return expect(createdComment).toBe(comment)
|
||||
}
|
||||
|
||||
async createReply (comment: string) {
|
||||
const replyButton = await $('button.comment-action-reply')
|
||||
await replyButton.waitForClickable()
|
||||
await replyButton.scrollIntoView({ block: 'center' })
|
||||
await replyButton.click()
|
||||
|
||||
const textarea = await $('my-video-comment my-video-comment-add textarea')
|
||||
await textarea.waitForClickable()
|
||||
await textarea.setValue(comment)
|
||||
|
||||
const confirmButton = await $('my-video-comment .comment-buttons .primary-button')
|
||||
await confirmButton.waitForClickable()
|
||||
await replyButton.scrollIntoView({ block: 'center' })
|
||||
await confirmButton.click()
|
||||
|
||||
const createdComment = await $('.is-child .comment-html p')
|
||||
await createdComment.waitForDisplayed()
|
||||
|
||||
return expect(await createdComment.getText()).toBe(comment)
|
||||
}
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
import { PlayerPage } from '../po/player.po'
|
||||
import { VideoWatchPage } from '../po/video-watch.po'
|
||||
import { FIXTURE_URLS, go, isMobileDevice, isSafari } from '../utils'
|
||||
|
||||
describe('Live all workflow', () => {
|
||||
let videoWatchPage: VideoWatchPage
|
||||
let playerPage: PlayerPage
|
||||
|
||||
beforeEach(async () => {
|
||||
videoWatchPage = new VideoWatchPage(isMobileDevice(), isSafari())
|
||||
playerPage = new PlayerPage()
|
||||
|
||||
if (!isMobileDevice()) {
|
||||
await browser.maximizeWindow()
|
||||
}
|
||||
})
|
||||
|
||||
it('Should go to the live page', async () => {
|
||||
await go(FIXTURE_URLS.LIVE_VIDEO)
|
||||
|
||||
return videoWatchPage.waitWatchVideoName('E2E - Live')
|
||||
})
|
||||
|
||||
it('Should play the live', async () => {
|
||||
await playerPage.playAndPauseVideo(false, 45)
|
||||
expect(await playerPage.getWatchVideoPlayerCurrentTime()).toBeGreaterThanOrEqual(45)
|
||||
})
|
||||
|
||||
it('Should watch the associated live embed', async () => {
|
||||
await videoWatchPage.goOnAssociatedEmbed()
|
||||
|
||||
await playerPage.playAndPauseVideo(false, 45)
|
||||
expect(await playerPage.getWatchVideoPlayerCurrentTime()).toBeGreaterThanOrEqual(45)
|
||||
})
|
||||
})
|
@ -0,0 +1,75 @@
|
||||
import { LoginPage } from '../po/login.po'
|
||||
import { PlayerPage } from '../po/player.po'
|
||||
import { VideoWatchPage } from '../po/video-watch.po'
|
||||
import { FIXTURE_URLS, go, isMobileDevice, isSafari } from '../utils'
|
||||
|
||||
async function checkCorrectlyPlay (playerPage: PlayerPage) {
|
||||
await playerPage.playAndPauseVideo(false, 2)
|
||||
|
||||
expect(await playerPage.getWatchVideoPlayerCurrentTime()).toBeGreaterThanOrEqual(2)
|
||||
}
|
||||
|
||||
describe('Private videos all workflow', () => {
|
||||
let videoWatchPage: VideoWatchPage
|
||||
let loginPage: LoginPage
|
||||
let playerPage: PlayerPage
|
||||
|
||||
const internalVideoName = 'Internal E2E test'
|
||||
const internalHLSOnlyVideoName = 'Internal E2E test - HLS only'
|
||||
|
||||
beforeEach(async () => {
|
||||
videoWatchPage = new VideoWatchPage(isMobileDevice(), isSafari())
|
||||
loginPage = new LoginPage(isMobileDevice())
|
||||
playerPage = new PlayerPage()
|
||||
|
||||
if (!isMobileDevice()) {
|
||||
await browser.maximizeWindow()
|
||||
}
|
||||
})
|
||||
|
||||
it('Should log in', async () => {
|
||||
return loginPage.loginOnPeerTube2()
|
||||
})
|
||||
|
||||
it('Should play an internal web video', async () => {
|
||||
await go(FIXTURE_URLS.INTERNAL_WEB_VIDEO)
|
||||
|
||||
await videoWatchPage.waitWatchVideoName(internalVideoName)
|
||||
await checkCorrectlyPlay(playerPage)
|
||||
})
|
||||
|
||||
it('Should play an internal HLS video', async () => {
|
||||
await go(FIXTURE_URLS.INTERNAL_HLS_VIDEO)
|
||||
|
||||
await videoWatchPage.waitWatchVideoName(internalVideoName)
|
||||
await checkCorrectlyPlay(playerPage)
|
||||
})
|
||||
|
||||
it('Should play an internal HLS only video', async () => {
|
||||
await go(FIXTURE_URLS.INTERNAL_HLS_ONLY_VIDEO)
|
||||
|
||||
await videoWatchPage.waitWatchVideoName(internalHLSOnlyVideoName)
|
||||
await checkCorrectlyPlay(playerPage)
|
||||
})
|
||||
|
||||
it('Should play an internal Web Video in embed', async () => {
|
||||
await go(FIXTURE_URLS.INTERNAL_EMBED_WEB_VIDEO)
|
||||
|
||||
await videoWatchPage.waitEmbedForDisplayed()
|
||||
await checkCorrectlyPlay(playerPage)
|
||||
})
|
||||
|
||||
it('Should play an internal HLS video in embed', async () => {
|
||||
await go(FIXTURE_URLS.INTERNAL_EMBED_HLS_VIDEO)
|
||||
|
||||
await videoWatchPage.waitEmbedForDisplayed()
|
||||
await checkCorrectlyPlay(playerPage)
|
||||
})
|
||||
|
||||
it('Should play an internal HLS only video in embed', async () => {
|
||||
await go(FIXTURE_URLS.INTERNAL_EMBED_HLS_ONLY_VIDEO)
|
||||
|
||||
await videoWatchPage.waitEmbedForDisplayed()
|
||||
await checkCorrectlyPlay(playerPage)
|
||||
})
|
||||
})
|
@ -0,0 +1,234 @@
|
||||
import { LoginPage } from '../po/login.po'
|
||||
import { MyAccountPage } from '../po/my-account.po'
|
||||
import { PlayerPage } from '../po/player.po'
|
||||
import { VideoListPage } from '../po/video-list.po'
|
||||
import { VideoUpdatePage } from '../po/video-update.po'
|
||||
import { VideoUploadPage } from '../po/video-upload.po'
|
||||
import { VideoWatchPage } from '../po/video-watch.po'
|
||||
import { FIXTURE_URLS, go, isIOS, isMobileDevice, isSafari, waitServerUp } from '../utils'
|
||||
|
||||
function isUploadUnsupported () {
|
||||
if (isMobileDevice() || isSafari()) {
|
||||
console.log('Skipping because we are on a real device or Safari and BrowserStack does not support file upload.')
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
describe('Videos all workflow', () => {
|
||||
let videoWatchPage: VideoWatchPage
|
||||
let videoListPage: VideoListPage
|
||||
let videoUploadPage: VideoUploadPage
|
||||
let videoUpdatePage: VideoUpdatePage
|
||||
let myAccountPage: MyAccountPage
|
||||
let loginPage: LoginPage
|
||||
let playerPage: PlayerPage
|
||||
|
||||
let videoName = Math.random() + ' video'
|
||||
const video2Name = Math.random() + ' second video'
|
||||
const playlistName = Math.random() + ' playlist'
|
||||
let videoWatchUrl: string
|
||||
|
||||
before(async () => {
|
||||
if (isIOS()) {
|
||||
console.log('iOS detected')
|
||||
} else if (isMobileDevice()) {
|
||||
console.log('Android detected.')
|
||||
} else if (isSafari()) {
|
||||
console.log('Safari detected.')
|
||||
}
|
||||
|
||||
if (isUploadUnsupported()) return
|
||||
|
||||
await waitServerUp()
|
||||
})
|
||||
|
||||
beforeEach(async () => {
|
||||
videoWatchPage = new VideoWatchPage(isMobileDevice(), isSafari())
|
||||
videoUploadPage = new VideoUploadPage()
|
||||
videoUpdatePage = new VideoUpdatePage()
|
||||
myAccountPage = new MyAccountPage()
|
||||
loginPage = new LoginPage(isMobileDevice())
|
||||
playerPage = new PlayerPage()
|
||||
videoListPage = new VideoListPage(isMobileDevice(), isSafari())
|
||||
|
||||
if (!isMobileDevice()) {
|
||||
await browser.maximizeWindow()
|
||||
}
|
||||
})
|
||||
|
||||
it('Should log in', async () => {
|
||||
if (isMobileDevice() || isSafari()) {
|
||||
console.log('Skipping because we are on a real device or Safari and BrowserStack does not support file upload.')
|
||||
return
|
||||
}
|
||||
|
||||
return loginPage.loginAsRootUser()
|
||||
})
|
||||
|
||||
it('Should upload a video', async () => {
|
||||
if (isUploadUnsupported()) return
|
||||
|
||||
await videoUploadPage.navigateTo()
|
||||
|
||||
await videoUploadPage.uploadVideo('video.mp4')
|
||||
return videoUploadPage.validSecondUploadStep(videoName)
|
||||
})
|
||||
|
||||
it('Should list videos', async () => {
|
||||
await videoListPage.goOnVideosList()
|
||||
|
||||
if (isUploadUnsupported()) return
|
||||
|
||||
const videoNames = await videoListPage.getVideosListName()
|
||||
expect(videoNames).toContain(videoName)
|
||||
})
|
||||
|
||||
it('Should go on video watch page', async () => {
|
||||
let videoNameToExcept = videoName
|
||||
|
||||
if (isMobileDevice() || isSafari()) {
|
||||
await go(FIXTURE_URLS.WEB_VIDEO)
|
||||
videoNameToExcept = 'E2E tests'
|
||||
} else {
|
||||
await videoListPage.clickOnVideo(videoName)
|
||||
}
|
||||
|
||||
return videoWatchPage.waitWatchVideoName(videoNameToExcept)
|
||||
})
|
||||
|
||||
it('Should play the video', async () => {
|
||||
videoWatchUrl = await browser.getUrl()
|
||||
|
||||
await playerPage.playAndPauseVideo(true, 2)
|
||||
expect(await playerPage.getWatchVideoPlayerCurrentTime()).toBeGreaterThanOrEqual(2)
|
||||
})
|
||||
|
||||
it('Should watch the associated embed video', async () => {
|
||||
await videoWatchPage.goOnAssociatedEmbed()
|
||||
|
||||
await playerPage.playAndPauseVideo(false, 2)
|
||||
expect(await playerPage.getWatchVideoPlayerCurrentTime()).toBeGreaterThanOrEqual(2)
|
||||
})
|
||||
|
||||
it('Should watch the p2p media loader embed video', async () => {
|
||||
await videoWatchPage.goOnP2PMediaLoaderEmbed()
|
||||
|
||||
await playerPage.playAndPauseVideo(false, 2)
|
||||
expect(await playerPage.getWatchVideoPlayerCurrentTime()).toBeGreaterThanOrEqual(2)
|
||||
})
|
||||
|
||||
it('Should update the video', async () => {
|
||||
if (isUploadUnsupported()) return
|
||||
|
||||
await go(videoWatchUrl)
|
||||
|
||||
await videoWatchPage.clickOnUpdate()
|
||||
|
||||
videoName += ' updated'
|
||||
await videoUpdatePage.updateName(videoName)
|
||||
|
||||
await videoUpdatePage.validUpdate()
|
||||
|
||||
const name = await videoWatchPage.getVideoName()
|
||||
expect(name).toEqual(videoName)
|
||||
})
|
||||
|
||||
it('Should add the video in my playlist', async () => {
|
||||
if (isUploadUnsupported()) return
|
||||
|
||||
await videoWatchPage.clickOnSave()
|
||||
|
||||
await videoWatchPage.createPlaylist(playlistName)
|
||||
|
||||
await videoWatchPage.saveToPlaylist(playlistName)
|
||||
await browser.pause(5000)
|
||||
|
||||
await videoUploadPage.navigateTo()
|
||||
|
||||
await videoUploadPage.uploadVideo('video2.mp4')
|
||||
await videoUploadPage.validSecondUploadStep(video2Name)
|
||||
|
||||
await videoWatchPage.clickOnSave()
|
||||
await videoWatchPage.saveToPlaylist(playlistName)
|
||||
})
|
||||
|
||||
it('Should have the playlist in my account', async () => {
|
||||
if (isUploadUnsupported()) return
|
||||
|
||||
await myAccountPage.navigateToMyPlaylists()
|
||||
|
||||
const videosNumberText = await myAccountPage.getPlaylistVideosText(playlistName)
|
||||
expect(videosNumberText).toEqual('2 videos')
|
||||
|
||||
await myAccountPage.clickOnPlaylist(playlistName)
|
||||
|
||||
const count = await myAccountPage.countTotalPlaylistElements()
|
||||
expect(count).toEqual(2)
|
||||
})
|
||||
|
||||
it('Should watch the playlist', async () => {
|
||||
if (isUploadUnsupported()) return
|
||||
|
||||
await myAccountPage.playPlaylist()
|
||||
|
||||
await videoWatchPage.waitUntilVideoName(video2Name, 40 * 1000)
|
||||
})
|
||||
|
||||
it('Should watch the Web Video playlist in the embed', async () => {
|
||||
if (isUploadUnsupported()) return
|
||||
|
||||
const accessToken = await browser.execute(`return window.localStorage.getItem('access_token');`)
|
||||
const refreshToken = await browser.execute(`return window.localStorage.getItem('refresh_token');`)
|
||||
|
||||
await myAccountPage.goOnAssociatedPlaylistEmbed()
|
||||
|
||||
await playerPage.waitUntilPlayerWrapper()
|
||||
|
||||
console.log('Will set %s and %s tokens in local storage.', accessToken, refreshToken)
|
||||
|
||||
await browser.execute(`window.localStorage.setItem('access_token', '${accessToken}');`)
|
||||
await browser.execute(`window.localStorage.setItem('refresh_token', '${refreshToken}');`)
|
||||
await browser.execute(`window.localStorage.setItem('token_type', 'Bearer');`)
|
||||
|
||||
await browser.refresh()
|
||||
|
||||
await playerPage.playVideo()
|
||||
|
||||
await playerPage.waitUntilPlaylistInfo('2/2', 30 * 1000)
|
||||
})
|
||||
|
||||
it('Should watch the HLS playlist in the embed', async () => {
|
||||
await videoWatchPage.goOnP2PMediaLoaderPlaylistEmbed()
|
||||
|
||||
await playerPage.playVideo()
|
||||
|
||||
await playerPage.waitUntilPlaylistInfo('2/2', 30 * 1000)
|
||||
})
|
||||
|
||||
it('Should delete the video 2', async () => {
|
||||
if (isUploadUnsupported()) return
|
||||
|
||||
// Go to the dev website
|
||||
await go(videoWatchUrl)
|
||||
|
||||
await myAccountPage.navigateToMyVideos()
|
||||
|
||||
await myAccountPage.removeVideo(video2Name)
|
||||
await myAccountPage.validRemove()
|
||||
|
||||
await browser.waitUntil(async () => {
|
||||
const count = await myAccountPage.countVideos([ videoName, video2Name ])
|
||||
|
||||
return count === 1
|
||||
})
|
||||
})
|
||||
|
||||
it('Should delete the first video', async () => {
|
||||
if (isUploadUnsupported()) return
|
||||
|
||||
await myAccountPage.removeVideo(videoName)
|
||||
await myAccountPage.validRemove()
|
||||
})
|
||||
})
|
@ -0,0 +1,97 @@
|
||||
import { LoginPage } from '../po/login.po'
|
||||
import { VideoUploadPage } from '../po/video-upload.po'
|
||||
import { VideoWatchPage } from '../po/video-watch.po'
|
||||
import { getScreenshotPath, go, isMobileDevice, isSafari, waitServerUp } from '../utils'
|
||||
|
||||
describe('Custom server defaults', () => {
|
||||
let videoUploadPage: VideoUploadPage
|
||||
let loginPage: LoginPage
|
||||
let videoWatchPage: VideoWatchPage
|
||||
|
||||
before(async () => {
|
||||
await waitServerUp()
|
||||
|
||||
loginPage = new LoginPage(isMobileDevice())
|
||||
videoUploadPage = new VideoUploadPage()
|
||||
videoWatchPage = new VideoWatchPage(isMobileDevice(), isSafari())
|
||||
|
||||
await browser.maximizeWindow()
|
||||
})
|
||||
|
||||
describe('Publish default values', function () {
|
||||
before(async function () {
|
||||
await loginPage.loginAsRootUser()
|
||||
})
|
||||
|
||||
it('Should upload a video with custom default values', async function () {
|
||||
await videoUploadPage.navigateTo()
|
||||
await videoUploadPage.uploadVideo('video.mp4')
|
||||
await videoUploadPage.validSecondUploadStep('video')
|
||||
|
||||
await videoWatchPage.waitWatchVideoName('video')
|
||||
|
||||
const videoUrl = await browser.getUrl()
|
||||
|
||||
expect(await videoWatchPage.getPrivacy()).toBe('Unlisted')
|
||||
expect(await videoWatchPage.getLicence()).toBe('Attribution - Non Commercial')
|
||||
expect(await videoWatchPage.areCommentsEnabled()).toBeFalsy()
|
||||
|
||||
// Owners can download their videos
|
||||
expect(await videoWatchPage.isDownloadEnabled()).toBeTruthy()
|
||||
|
||||
// Logout to see if the download enabled is correct for anonymous users
|
||||
await loginPage.logout()
|
||||
await browser.url(videoUrl)
|
||||
await videoWatchPage.waitWatchVideoName('video')
|
||||
|
||||
expect(await videoWatchPage.isDownloadEnabled()).toBeFalsy()
|
||||
})
|
||||
})
|
||||
|
||||
describe('P2P', function () {
|
||||
let videoUrl: string
|
||||
|
||||
async function goOnVideoWatchPage () {
|
||||
await go(videoUrl)
|
||||
await videoWatchPage.waitWatchVideoName('video')
|
||||
}
|
||||
|
||||
async function checkP2P (enabled: boolean) {
|
||||
await goOnVideoWatchPage()
|
||||
expect(await videoWatchPage.isPrivacyWarningDisplayed()).toEqual(enabled)
|
||||
|
||||
await videoWatchPage.goOnAssociatedEmbed()
|
||||
expect(await videoWatchPage.isEmbedWarningDisplayed()).toEqual(enabled)
|
||||
}
|
||||
|
||||
before(async () => {
|
||||
await loginPage.loginAsRootUser()
|
||||
await videoUploadPage.navigateTo()
|
||||
await videoUploadPage.uploadVideo('video2.mp4')
|
||||
await videoUploadPage.setAsPublic()
|
||||
await videoUploadPage.validSecondUploadStep('video')
|
||||
|
||||
await videoWatchPage.waitWatchVideoName('video')
|
||||
|
||||
videoUrl = await browser.getUrl()
|
||||
})
|
||||
|
||||
beforeEach(async function () {
|
||||
await goOnVideoWatchPage()
|
||||
})
|
||||
|
||||
it('Should have P2P disabled for a logged in user', async function () {
|
||||
await checkP2P(false)
|
||||
})
|
||||
|
||||
it('Should have P2P disabled for anonymous users', async function () {
|
||||
await loginPage.logout()
|
||||
|
||||
await checkP2P(false)
|
||||
})
|
||||
})
|
||||
|
||||
after(async () => {
|
||||
await browser.saveScreenshot(getScreenshotPath('after-test.png'))
|
||||
})
|
||||
})
|
@ -0,0 +1,82 @@
|
||||
import { AdminPluginPage } from '../po/admin-plugin.po'
|
||||
import { LoginPage } from '../po/login.po'
|
||||
import { VideoUploadPage } from '../po/video-upload.po'
|
||||
import { getCheckbox, isMobileDevice, waitServerUp } from '../utils'
|
||||
|
||||
describe('Plugins', () => {
|
||||
let videoUploadPage: VideoUploadPage
|
||||
let loginPage: LoginPage
|
||||
let adminPluginPage: AdminPluginPage
|
||||
|
||||
function getPluginCheckbox () {
|
||||
return getCheckbox('hello-world-field-4')
|
||||
}
|
||||
|
||||
async function expectSubmitState ({ disabled }: { disabled: boolean }) {
|
||||
const disabledSubmit = await $('my-button [disabled]')
|
||||
|
||||
if (disabled) expect(await disabledSubmit.isDisplayed()).toBeTruthy()
|
||||
else expect(await disabledSubmit.isDisplayed()).toBeFalsy()
|
||||
}
|
||||
|
||||
before(async () => {
|
||||
await waitServerUp()
|
||||
})
|
||||
|
||||
beforeEach(async () => {
|
||||
loginPage = new LoginPage(isMobileDevice())
|
||||
videoUploadPage = new VideoUploadPage()
|
||||
adminPluginPage = new AdminPluginPage()
|
||||
|
||||
await browser.maximizeWindow()
|
||||
})
|
||||
|
||||
it('Should install hello world plugin', async () => {
|
||||
await loginPage.loginAsRootUser()
|
||||
|
||||
await adminPluginPage.navigateToPluginSearch()
|
||||
await adminPluginPage.search('hello-world')
|
||||
await adminPluginPage.installHelloWorld()
|
||||
await browser.refresh()
|
||||
})
|
||||
|
||||
it('Should have checkbox in video edit page', async () => {
|
||||
await videoUploadPage.navigateTo()
|
||||
await videoUploadPage.uploadVideo('video.mp4')
|
||||
|
||||
await $('span=Super field 4 in main tab').waitForDisplayed()
|
||||
|
||||
const checkbox = await getPluginCheckbox()
|
||||
expect(await checkbox.isDisplayed()).toBeTruthy()
|
||||
|
||||
await expectSubmitState({ disabled: true })
|
||||
})
|
||||
|
||||
it('Should check the checkbox and be able to submit the video', async function () {
|
||||
const checkbox = await getPluginCheckbox()
|
||||
|
||||
await checkbox.waitForClickable()
|
||||
await checkbox.click()
|
||||
|
||||
await expectSubmitState({ disabled: false })
|
||||
})
|
||||
|
||||
it('Should uncheck the checkbox and not be able to submit the video', async function () {
|
||||
const checkbox = await getPluginCheckbox()
|
||||
|
||||
await checkbox.waitForClickable()
|
||||
await checkbox.click()
|
||||
|
||||
await expectSubmitState({ disabled: true })
|
||||
|
||||
const error = await $('.form-error*=Should be enabled')
|
||||
|
||||
expect(await error.isDisplayed()).toBeTruthy()
|
||||
})
|
||||
|
||||
it('Should change the privacy and should hide the checkbox', async function () {
|
||||
await videoUploadPage.setAsPrivate()
|
||||
|
||||
await expectSubmitState({ disabled: false })
|
||||
})
|
||||
})
|
@ -0,0 +1,413 @@
|
||||
import { AdminConfigPage } from '../po/admin-config.po'
|
||||
import { AdminRegistrationPage } from '../po/admin-registration.po'
|
||||
import { LoginPage } from '../po/login.po'
|
||||
import { SignupPage } from '../po/signup.po'
|
||||
import {
|
||||
browserSleep,
|
||||
findEmailTo,
|
||||
getScreenshotPath,
|
||||
getVerificationLink,
|
||||
go,
|
||||
isMobileDevice,
|
||||
MockSMTPServer,
|
||||
waitServerUp
|
||||
} from '../utils'
|
||||
|
||||
function checkEndMessage (options: {
|
||||
message: string
|
||||
requiresEmailVerification: boolean
|
||||
requiresApproval: boolean
|
||||
afterEmailVerification: boolean
|
||||
}) {
|
||||
const { message, requiresApproval, requiresEmailVerification, afterEmailVerification } = options
|
||||
|
||||
{
|
||||
const created = 'account has been created'
|
||||
const request = 'account request has been sent'
|
||||
|
||||
if (requiresApproval) {
|
||||
expect(message).toContain(request)
|
||||
expect(message).not.toContain(created)
|
||||
} else {
|
||||
expect(message).not.toContain(request)
|
||||
expect(message).toContain(created)
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const checkEmail = 'Check your email'
|
||||
|
||||
if (requiresEmailVerification) {
|
||||
expect(message).toContain(checkEmail)
|
||||
} else {
|
||||
expect(message).not.toContain(checkEmail)
|
||||
|
||||
const moderatorsApproval = 'moderator will check your registration request'
|
||||
if (requiresApproval) {
|
||||
expect(message).toContain(moderatorsApproval)
|
||||
} else {
|
||||
expect(message).not.toContain(moderatorsApproval)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
const emailVerified = 'email has been verified'
|
||||
|
||||
if (afterEmailVerification) {
|
||||
expect(message).toContain(emailVerified)
|
||||
} else {
|
||||
expect(message).not.toContain(emailVerified)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
describe('Signup', () => {
|
||||
let loginPage: LoginPage
|
||||
let adminConfigPage: AdminConfigPage
|
||||
let signupPage: SignupPage
|
||||
let adminRegistrationPage: AdminRegistrationPage
|
||||
|
||||
async function prepareSignup (options: {
|
||||
enabled: boolean
|
||||
requiresApproval?: boolean
|
||||
requiresEmailVerification?: boolean
|
||||
}) {
|
||||
await loginPage.loginAsRootUser()
|
||||
|
||||
await adminConfigPage.navigateTo('basic-configuration')
|
||||
await adminConfigPage.toggleSignup(options.enabled)
|
||||
|
||||
if (options.enabled) {
|
||||
if (options.requiresApproval !== undefined) {
|
||||
await adminConfigPage.toggleSignupApproval(options.requiresApproval)
|
||||
}
|
||||
|
||||
if (options.requiresEmailVerification !== undefined) {
|
||||
await adminConfigPage.toggleSignupEmailVerification(options.requiresEmailVerification)
|
||||
}
|
||||
}
|
||||
|
||||
await adminConfigPage.save()
|
||||
|
||||
await loginPage.logout()
|
||||
await browser.refresh()
|
||||
}
|
||||
|
||||
before(async () => {
|
||||
await waitServerUp()
|
||||
})
|
||||
|
||||
beforeEach(async () => {
|
||||
loginPage = new LoginPage(isMobileDevice())
|
||||
adminConfigPage = new AdminConfigPage()
|
||||
signupPage = new SignupPage()
|
||||
adminRegistrationPage = new AdminRegistrationPage()
|
||||
|
||||
await browser.maximizeWindow()
|
||||
})
|
||||
|
||||
describe('Signup disabled', function () {
|
||||
it('Should disable signup', async () => {
|
||||
await prepareSignup({ enabled: false })
|
||||
|
||||
await expect(signupPage.getRegisterMenuButton()).not.toBeDisplayed()
|
||||
})
|
||||
})
|
||||
|
||||
describe('Email verification disabled', function () {
|
||||
|
||||
describe('Direct registration', function () {
|
||||
|
||||
it('Should enable signup without approval', async () => {
|
||||
await prepareSignup({ enabled: true, requiresApproval: false, requiresEmailVerification: false })
|
||||
|
||||
await signupPage.getRegisterMenuButton().waitForDisplayed()
|
||||
})
|
||||
|
||||
it('Should go on signup page', async function () {
|
||||
await signupPage.clickOnRegisterButton()
|
||||
})
|
||||
|
||||
it('Should validate the first step (about page)', async function () {
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should validate the second step (terms)', async function () {
|
||||
await signupPage.checkTerms()
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should validate the third step (account)', async function () {
|
||||
await signupPage.fillAccountStep({ username: 'user_1', displayName: 'user_1_dn' })
|
||||
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should validate the third step (channel)', async function () {
|
||||
await signupPage.fillChannelStep({ name: 'user_1_channel' })
|
||||
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should be logged in', async function () {
|
||||
await loginPage.ensureIsLoggedInAs('user_1_dn')
|
||||
})
|
||||
|
||||
it('Should have a valid end message', async function () {
|
||||
const message = await signupPage.getEndMessage()
|
||||
|
||||
checkEndMessage({
|
||||
message,
|
||||
requiresEmailVerification: false,
|
||||
requiresApproval: false,
|
||||
afterEmailVerification: false
|
||||
})
|
||||
|
||||
await browser.saveScreenshot(getScreenshotPath('direct-without-email.png'))
|
||||
|
||||
await loginPage.logout()
|
||||
})
|
||||
})
|
||||
|
||||
describe('Registration with approval', function () {
|
||||
|
||||
it('Should enable signup with approval', async () => {
|
||||
await prepareSignup({ enabled: true, requiresApproval: true, requiresEmailVerification: false })
|
||||
|
||||
await signupPage.getRegisterMenuButton().waitForDisplayed()
|
||||
})
|
||||
|
||||
it('Should go on signup page', async function () {
|
||||
await signupPage.clickOnRegisterButton()
|
||||
})
|
||||
|
||||
it('Should validate the first step (about page)', async function () {
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should validate the second step (terms)', async function () {
|
||||
await signupPage.checkTerms()
|
||||
await signupPage.fillRegistrationReason('my super reason')
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should validate the third step (account)', async function () {
|
||||
await signupPage.fillAccountStep({ username: 'user_2', displayName: 'user_2 display name', password: 'password' })
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should validate the third step (channel)', async function () {
|
||||
await signupPage.fillChannelStep({ name: 'user_2_channel' })
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should have a valid end message', async function () {
|
||||
const message = await signupPage.getEndMessage()
|
||||
|
||||
checkEndMessage({
|
||||
message,
|
||||
requiresEmailVerification: false,
|
||||
requiresApproval: true,
|
||||
afterEmailVerification: false
|
||||
})
|
||||
|
||||
await browser.saveScreenshot(getScreenshotPath('request-without-email.png'))
|
||||
})
|
||||
|
||||
it('Should display a message when trying to login with this account', async function () {
|
||||
const error = await loginPage.getLoginError('user_2', 'password')
|
||||
|
||||
expect(error).toContain('awaiting approval')
|
||||
})
|
||||
|
||||
it('Should accept the registration', async function () {
|
||||
await loginPage.loginAsRootUser()
|
||||
|
||||
await adminRegistrationPage.navigateToRegistratonsList()
|
||||
await adminRegistrationPage.accept('user_2', 'moderation response')
|
||||
|
||||
await loginPage.logout()
|
||||
})
|
||||
|
||||
it('Should be able to login with this new account', async function () {
|
||||
await loginPage.login({ username: 'user_2', password: 'password', displayName: 'user_2 display name' })
|
||||
|
||||
await loginPage.logout()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
describe('Email verification enabled', function () {
|
||||
const emails: any[] = []
|
||||
let emailPort: number
|
||||
|
||||
before(async () => {
|
||||
const key = browser.options.baseUrl + '-emailPort'
|
||||
// FIXME: typings are wrong, get returns a promise
|
||||
// FIXME: use * because the key is not properly escaped by the shared store when using get(key)
|
||||
emailPort = (await (browser.sharedStore.get('*') as unknown as Promise<number>))[key]
|
||||
|
||||
await MockSMTPServer.Instance.collectEmails(emailPort, emails)
|
||||
})
|
||||
|
||||
describe('Direct registration', function () {
|
||||
|
||||
it('Should enable signup without approval', async () => {
|
||||
await prepareSignup({ enabled: true, requiresApproval: false, requiresEmailVerification: true })
|
||||
|
||||
await signupPage.getRegisterMenuButton().waitForDisplayed()
|
||||
})
|
||||
|
||||
it('Should go on signup page', async function () {
|
||||
await signupPage.clickOnRegisterButton()
|
||||
})
|
||||
|
||||
it('Should validate the first step (about page)', async function () {
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should validate the second step (terms)', async function () {
|
||||
await signupPage.checkTerms()
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should validate the third step (account)', async function () {
|
||||
await signupPage.fillAccountStep({ username: 'user_3', displayName: 'user_3 display name', email: 'user_3@example.com' })
|
||||
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should validate the third step (channel)', async function () {
|
||||
await signupPage.fillChannelStep({ name: 'user_3_channel' })
|
||||
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should have a valid end message', async function () {
|
||||
const message = await signupPage.getEndMessage()
|
||||
|
||||
checkEndMessage({
|
||||
message,
|
||||
requiresEmailVerification: true,
|
||||
requiresApproval: false,
|
||||
afterEmailVerification: false
|
||||
})
|
||||
|
||||
await browser.saveScreenshot(getScreenshotPath('direct-with-email.png'))
|
||||
})
|
||||
|
||||
it('Should validate the email', async function () {
|
||||
let email: { text: string }
|
||||
|
||||
while (!(email = findEmailTo(emails, 'user_3@example.com'))) {
|
||||
await browserSleep(100)
|
||||
}
|
||||
|
||||
await go(getVerificationLink(email))
|
||||
|
||||
const message = await signupPage.getEndMessage()
|
||||
|
||||
checkEndMessage({
|
||||
message,
|
||||
requiresEmailVerification: false,
|
||||
requiresApproval: false,
|
||||
afterEmailVerification: true
|
||||
})
|
||||
|
||||
await browser.saveScreenshot(getScreenshotPath('direct-after-email.png'))
|
||||
})
|
||||
})
|
||||
|
||||
describe('Registration with approval', function () {
|
||||
|
||||
it('Should enable signup without approval', async () => {
|
||||
await prepareSignup({ enabled: true, requiresApproval: true, requiresEmailVerification: true })
|
||||
|
||||
await signupPage.getRegisterMenuButton().waitForDisplayed()
|
||||
})
|
||||
|
||||
it('Should go on signup page', async function () {
|
||||
await signupPage.clickOnRegisterButton()
|
||||
})
|
||||
|
||||
it('Should validate the first step (about page)', async function () {
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should validate the second step (terms)', async function () {
|
||||
await signupPage.checkTerms()
|
||||
await signupPage.fillRegistrationReason('my super reason 2')
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should validate the third step (account)', async function () {
|
||||
await signupPage.fillAccountStep({
|
||||
username: 'user_4',
|
||||
displayName: 'user_4 display name',
|
||||
email: 'user_4@example.com',
|
||||
password: 'password'
|
||||
})
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should validate the third step (channel)', async function () {
|
||||
await signupPage.fillChannelStep({ name: 'user_4_channel' })
|
||||
await signupPage.validateStep()
|
||||
})
|
||||
|
||||
it('Should have a valid end message', async function () {
|
||||
const message = await signupPage.getEndMessage()
|
||||
|
||||
checkEndMessage({
|
||||
message,
|
||||
requiresEmailVerification: true,
|
||||
requiresApproval: true,
|
||||
afterEmailVerification: false
|
||||
})
|
||||
|
||||
await browser.saveScreenshot(getScreenshotPath('request-with-email.png'))
|
||||
})
|
||||
|
||||
it('Should display a message when trying to login with this account', async function () {
|
||||
const error = await loginPage.getLoginError('user_4', 'password')
|
||||
|
||||
expect(error).toContain('awaiting approval')
|
||||
})
|
||||
|
||||
it('Should accept the registration', async function () {
|
||||
await loginPage.loginAsRootUser()
|
||||
|
||||
await adminRegistrationPage.navigateToRegistratonsList()
|
||||
await adminRegistrationPage.accept('user_4', 'moderation response 2')
|
||||
|
||||
await loginPage.logout()
|
||||
})
|
||||
|
||||
it('Should validate the email', async function () {
|
||||
let email: { text: string }
|
||||
|
||||
while (!(email = findEmailTo(emails, 'user_4@example.com'))) {
|
||||
await browserSleep(100)
|
||||
}
|
||||
|
||||
await go(getVerificationLink(email))
|
||||
|
||||
const message = await signupPage.getEndMessage()
|
||||
|
||||
checkEndMessage({
|
||||
message,
|
||||
requiresEmailVerification: false,
|
||||
requiresApproval: true,
|
||||
afterEmailVerification: true
|
||||
})
|
||||
|
||||
await browser.saveScreenshot(getScreenshotPath('request-after-email.png'))
|
||||
})
|
||||
})
|
||||
|
||||
after(() => {
|
||||
MockSMTPServer.Instance.kill()
|
||||
})
|
||||
})
|
||||
})
|
@ -0,0 +1,82 @@
|
||||
import { AnonymousSettingsPage } from '../po/anonymous-settings.po'
|
||||
import { LoginPage } from '../po/login.po'
|
||||
import { MyAccountPage } from '../po/my-account.po'
|
||||
import { VideoUploadPage } from '../po/video-upload.po'
|
||||
import { VideoWatchPage } from '../po/video-watch.po'
|
||||
import { go, isMobileDevice, isSafari, waitServerUp } from '../utils'
|
||||
|
||||
describe('User settings', () => {
|
||||
let videoUploadPage: VideoUploadPage
|
||||
let loginPage: LoginPage
|
||||
let videoWatchPage: VideoWatchPage
|
||||
let myAccountPage: MyAccountPage
|
||||
let anonymousSettingsPage: AnonymousSettingsPage
|
||||
|
||||
before(async () => {
|
||||
await waitServerUp()
|
||||
|
||||
loginPage = new LoginPage(isMobileDevice())
|
||||
videoUploadPage = new VideoUploadPage()
|
||||
videoWatchPage = new VideoWatchPage(isMobileDevice(), isSafari())
|
||||
myAccountPage = new MyAccountPage()
|
||||
anonymousSettingsPage = new AnonymousSettingsPage()
|
||||
|
||||
await browser.maximizeWindow()
|
||||
})
|
||||
|
||||
describe('P2P', function () {
|
||||
let videoUrl: string
|
||||
|
||||
async function goOnVideoWatchPage () {
|
||||
await go(videoUrl)
|
||||
await videoWatchPage.waitWatchVideoName('video')
|
||||
}
|
||||
|
||||
async function checkP2P (enabled: boolean) {
|
||||
await goOnVideoWatchPage()
|
||||
expect(await videoWatchPage.isPrivacyWarningDisplayed()).toEqual(enabled)
|
||||
|
||||
await videoWatchPage.goOnAssociatedEmbed()
|
||||
expect(await videoWatchPage.isEmbedWarningDisplayed()).toEqual(enabled)
|
||||
}
|
||||
|
||||
before(async () => {
|
||||
await loginPage.loginAsRootUser()
|
||||
await videoUploadPage.navigateTo()
|
||||
await videoUploadPage.uploadVideo('video.mp4')
|
||||
await videoUploadPage.validSecondUploadStep('video')
|
||||
|
||||
await videoWatchPage.waitWatchVideoName('video')
|
||||
|
||||
videoUrl = await browser.getUrl()
|
||||
})
|
||||
|
||||
beforeEach(async function () {
|
||||
await goOnVideoWatchPage()
|
||||
})
|
||||
|
||||
it('Should have P2P enabled for a logged in user', async function () {
|
||||
await checkP2P(true)
|
||||
})
|
||||
|
||||
it('Should disable P2P for a logged in user', async function () {
|
||||
await myAccountPage.navigateToMySettings()
|
||||
await myAccountPage.clickOnP2PCheckbox()
|
||||
|
||||
await checkP2P(false)
|
||||
})
|
||||
|
||||
it('Should have P2P enabled for anonymous users', async function () {
|
||||
await loginPage.logout()
|
||||
|
||||
await checkP2P(true)
|
||||
})
|
||||
|
||||
it('Should disable P2P for an anonymous user', async function () {
|
||||
await anonymousSettingsPage.openSettings()
|
||||
await anonymousSettingsPage.clickOnP2PCheckbox()
|
||||
|
||||
await checkP2P(false)
|
||||
})
|
||||
})
|
||||
})
|
@ -0,0 +1,232 @@
|
||||
import { LoginPage } from '../po/login.po'
|
||||
import { MyAccountPage } from '../po/my-account.po'
|
||||
import { PlayerPage } from '../po/player.po'
|
||||
import { SignupPage } from '../po/signup.po'
|
||||
import { VideoUploadPage } from '../po/video-upload.po'
|
||||
import { VideoWatchPage } from '../po/video-watch.po'
|
||||
import { getScreenshotPath, go, isMobileDevice, isSafari, waitServerUp } from '../utils'
|
||||
|
||||
describe('Password protected videos', () => {
|
||||
let videoUploadPage: VideoUploadPage
|
||||
let loginPage: LoginPage
|
||||
let videoWatchPage: VideoWatchPage
|
||||
let signupPage: SignupPage
|
||||
let playerPage: PlayerPage
|
||||
let myAccountPage: MyAccountPage
|
||||
let passwordProtectedVideoUrl: string
|
||||
let playlistUrl: string
|
||||
|
||||
const seed = Math.random()
|
||||
const passwordProtectedVideoName = seed + ' - password protected'
|
||||
const publicVideoName1 = seed + ' - public 1'
|
||||
const publicVideoName2 = seed + ' - public 2'
|
||||
const videoPassword = 'password'
|
||||
const regularUsername = 'user_1'
|
||||
const regularUserPassword = 'user password'
|
||||
const playlistName = seed + ' - playlist'
|
||||
|
||||
function testRateAndComment () {
|
||||
it('Should add and remove like on video', async function () {
|
||||
await videoWatchPage.like()
|
||||
await videoWatchPage.like()
|
||||
})
|
||||
|
||||
it('Should create thread on video', async function () {
|
||||
await videoWatchPage.createThread('My first comment')
|
||||
})
|
||||
|
||||
it('Should reply to thread on video', async function () {
|
||||
await videoWatchPage.createReply('My first reply')
|
||||
})
|
||||
}
|
||||
|
||||
before(async () => {
|
||||
await waitServerUp()
|
||||
|
||||
loginPage = new LoginPage(isMobileDevice())
|
||||
videoUploadPage = new VideoUploadPage()
|
||||
videoWatchPage = new VideoWatchPage(isMobileDevice(), isSafari())
|
||||
signupPage = new SignupPage()
|
||||
playerPage = new PlayerPage()
|
||||
myAccountPage = new MyAccountPage()
|
||||
|
||||
await browser.maximizeWindow()
|
||||
})
|
||||
|
||||
describe('Owner', function () {
|
||||
before(async () => {
|
||||
await loginPage.loginAsRootUser()
|
||||
})
|
||||
|
||||
it('Should login, upload a public video and save it to a playlist', async () => {
|
||||
await videoUploadPage.navigateTo()
|
||||
await videoUploadPage.uploadVideo('video.mp4')
|
||||
await videoUploadPage.validSecondUploadStep(publicVideoName1)
|
||||
|
||||
await videoWatchPage.clickOnSave()
|
||||
|
||||
await videoWatchPage.createPlaylist(playlistName)
|
||||
|
||||
await videoWatchPage.saveToPlaylist(playlistName)
|
||||
await browser.pause(5000)
|
||||
|
||||
})
|
||||
|
||||
it('Should upload a password protected video', async () => {
|
||||
await videoUploadPage.navigateTo()
|
||||
await videoUploadPage.uploadVideo('video2.mp4')
|
||||
await videoUploadPage.setAsPasswordProtected(videoPassword)
|
||||
await videoUploadPage.validSecondUploadStep(passwordProtectedVideoName)
|
||||
|
||||
await videoWatchPage.waitWatchVideoName(passwordProtectedVideoName)
|
||||
|
||||
passwordProtectedVideoUrl = await browser.getUrl()
|
||||
})
|
||||
|
||||
it('Should save to playlist the password protected video', async () => {
|
||||
await videoWatchPage.clickOnSave()
|
||||
await videoWatchPage.saveToPlaylist(playlistName)
|
||||
})
|
||||
|
||||
it('Should upload a second public video and save it to playlist', async () => {
|
||||
await videoUploadPage.navigateTo()
|
||||
|
||||
await videoUploadPage.uploadVideo('video3.mp4')
|
||||
await videoUploadPage.validSecondUploadStep(publicVideoName2)
|
||||
|
||||
await videoWatchPage.clickOnSave()
|
||||
await videoWatchPage.saveToPlaylist(playlistName)
|
||||
})
|
||||
|
||||
it('Should play video without password', async function () {
|
||||
await go(passwordProtectedVideoUrl)
|
||||
|
||||
expect(!await videoWatchPage.isPasswordProtected())
|
||||
|
||||
await videoWatchPage.waitWatchVideoName(passwordProtectedVideoName)
|
||||
|
||||
expect(await videoWatchPage.getPrivacy()).toBe('Password protected')
|
||||
await playerPage.playAndPauseVideo(false, 2)
|
||||
})
|
||||
|
||||
testRateAndComment()
|
||||
|
||||
it('Should play video on embed without password', async function () {
|
||||
await videoWatchPage.goOnAssociatedEmbed()
|
||||
await playerPage.playAndPauseVideo(false, 2)
|
||||
})
|
||||
|
||||
it('Should have the playlist in my account', async function () {
|
||||
await go('/')
|
||||
await myAccountPage.navigateToMyPlaylists()
|
||||
const videosNumberText = await myAccountPage.getPlaylistVideosText(playlistName)
|
||||
|
||||
expect(videosNumberText).toEqual('3 videos')
|
||||
await myAccountPage.clickOnPlaylist(playlistName)
|
||||
|
||||
const count = await myAccountPage.countTotalPlaylistElements()
|
||||
expect(count).toEqual(3)
|
||||
})
|
||||
|
||||
it('Should update the playlist to public', async () => {
|
||||
const url = await browser.getUrl()
|
||||
const regex = /\/my-library\/video-playlists\/([^/]+)/i
|
||||
const match = url.match(regex)
|
||||
const uuid = match ? match[1] : null
|
||||
|
||||
expect(uuid).not.toBeNull()
|
||||
|
||||
await myAccountPage.updatePlaylistPrivacy(uuid, 'Public')
|
||||
})
|
||||
|
||||
it('Should watch the playlist', async () => {
|
||||
await myAccountPage.clickOnPlaylist(playlistName)
|
||||
await myAccountPage.playPlaylist()
|
||||
|
||||
await videoWatchPage.waitUntilVideoName(publicVideoName1, 40 * 1000)
|
||||
playlistUrl = await browser.getUrl()
|
||||
|
||||
await videoWatchPage.waitUntilVideoName(passwordProtectedVideoName, 40 * 1000)
|
||||
await videoWatchPage.waitUntilVideoName(publicVideoName2, 40 * 1000)
|
||||
})
|
||||
|
||||
after(async () => {
|
||||
await loginPage.logout()
|
||||
})
|
||||
})
|
||||
|
||||
describe('Regular users', function () {
|
||||
|
||||
before(async () => {
|
||||
await signupPage.fullSignup({
|
||||
accountInfo: {
|
||||
username: regularUsername,
|
||||
password: regularUserPassword
|
||||
},
|
||||
channelInfo: {
|
||||
name: 'user_1_channel'
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
it('Should requires password to play video', async function () {
|
||||
await go(passwordProtectedVideoUrl)
|
||||
|
||||
expect(await videoWatchPage.isPasswordProtected())
|
||||
|
||||
await videoWatchPage.fillVideoPassword(videoPassword)
|
||||
await videoWatchPage.waitWatchVideoName(passwordProtectedVideoName)
|
||||
|
||||
expect(await videoWatchPage.getPrivacy()).toBe('Password protected')
|
||||
await playerPage.playAndPauseVideo(true, 2)
|
||||
})
|
||||
|
||||
testRateAndComment()
|
||||
|
||||
it('Should requires password to play video on embed', async function () {
|
||||
await videoWatchPage.goOnAssociatedEmbed(true)
|
||||
await playerPage.fillEmbedVideoPassword(videoPassword)
|
||||
await playerPage.playAndPauseVideo(false, 2)
|
||||
})
|
||||
|
||||
it('Should watch the playlist without password protected video', async () => {
|
||||
await go(playlistUrl)
|
||||
await playerPage.playVideo()
|
||||
await videoWatchPage.waitUntilVideoName(publicVideoName2, 40 * 1000)
|
||||
})
|
||||
|
||||
after(async () => {
|
||||
await loginPage.logout()
|
||||
})
|
||||
})
|
||||
|
||||
describe('Anonymous users', function () {
|
||||
it('Should requires password to play video', async function () {
|
||||
await go(passwordProtectedVideoUrl)
|
||||
|
||||
expect(await videoWatchPage.isPasswordProtected())
|
||||
|
||||
await videoWatchPage.fillVideoPassword(videoPassword)
|
||||
await videoWatchPage.waitWatchVideoName(passwordProtectedVideoName)
|
||||
|
||||
expect(await videoWatchPage.getPrivacy()).toBe('Password protected')
|
||||
await playerPage.playAndPauseVideo(true, 2)
|
||||
})
|
||||
|
||||
it('Should requires password to play video on embed', async function () {
|
||||
await videoWatchPage.goOnAssociatedEmbed(true)
|
||||
await playerPage.fillEmbedVideoPassword(videoPassword)
|
||||
await playerPage.playAndPauseVideo(false, 2)
|
||||
})
|
||||
|
||||
it('Should watch the playlist without password protected video', async () => {
|
||||
await go(playlistUrl)
|
||||
await playerPage.playVideo()
|
||||
await videoWatchPage.waitUntilVideoName(publicVideoName2, 40 * 1000)
|
||||
})
|
||||
})
|
||||
|
||||
after(async () => {
|
||||
await browser.saveScreenshot(getScreenshotPath('after-test.png'))
|
||||
})
|
||||
})
|
@ -0,0 +1,217 @@
|
||||
import { AdminConfigPage } from '../po/admin-config.po'
|
||||
import { LoginPage } from '../po/login.po'
|
||||
import { MyAccountPage } from '../po/my-account.po'
|
||||
import { VideoListPage } from '../po/video-list.po'
|
||||
import { VideoSearchPage } from '../po/video-search.po'
|
||||
import { VideoUploadPage } from '../po/video-upload.po'
|
||||
import { VideoWatchPage } from '../po/video-watch.po'
|
||||
import { NSFWPolicy } from '../types/common'
|
||||
import { isMobileDevice, isSafari, waitServerUp } from '../utils'
|
||||
|
||||
describe('Videos list', () => {
|
||||
let videoListPage: VideoListPage
|
||||
let videoUploadPage: VideoUploadPage
|
||||
let adminConfigPage: AdminConfigPage
|
||||
let loginPage: LoginPage
|
||||
let myAccountPage: MyAccountPage
|
||||
let videoSearchPage: VideoSearchPage
|
||||
let videoWatchPage: VideoWatchPage
|
||||
|
||||
const seed = Math.random()
|
||||
const nsfwVideo = seed + ' - nsfw'
|
||||
const normalVideo = seed + ' - normal'
|
||||
|
||||
async function checkNormalVideo () {
|
||||
expect(await videoListPage.videoExists(normalVideo)).toBeTruthy()
|
||||
expect(await videoListPage.videoIsBlurred(normalVideo)).toBeFalsy()
|
||||
}
|
||||
|
||||
async function checkNSFWVideo (policy: NSFWPolicy, filterText?: string) {
|
||||
if (policy === 'do_not_list') {
|
||||
if (filterText) expect(filterText).toContain('hidden')
|
||||
|
||||
expect(await videoListPage.videoExists(nsfwVideo)).toBeFalsy()
|
||||
return
|
||||
}
|
||||
|
||||
if (policy === 'blur') {
|
||||
if (filterText) expect(filterText).toContain('blurred')
|
||||
|
||||
expect(await videoListPage.videoExists(nsfwVideo)).toBeTruthy()
|
||||
expect(await videoListPage.videoIsBlurred(nsfwVideo)).toBeTruthy()
|
||||
return
|
||||
}
|
||||
|
||||
// display
|
||||
if (filterText) expect(filterText).toContain('displayed')
|
||||
|
||||
expect(await videoListPage.videoExists(nsfwVideo)).toBeTruthy()
|
||||
expect(await videoListPage.videoIsBlurred(nsfwVideo)).toBeFalsy()
|
||||
}
|
||||
|
||||
async function checkCommonVideoListPages (policy: NSFWPolicy) {
|
||||
const promisesWithFilters = [
|
||||
videoListPage.goOnRootAccount.bind(videoListPage),
|
||||
videoListPage.goOnBrowseVideos.bind(videoListPage),
|
||||
videoListPage.goOnRootChannel.bind(videoListPage)
|
||||
]
|
||||
|
||||
for (const p of promisesWithFilters) {
|
||||
await p()
|
||||
|
||||
const filter = await videoListPage.getNSFWFilter()
|
||||
const filterText = await filter.getText()
|
||||
|
||||
await checkNormalVideo()
|
||||
await checkNSFWVideo(policy, filterText)
|
||||
}
|
||||
|
||||
const promisesWithoutFilters = [
|
||||
videoListPage.goOnRootAccountChannels.bind(videoListPage),
|
||||
videoListPage.goOnHomepage.bind(videoListPage)
|
||||
]
|
||||
for (const p of promisesWithoutFilters) {
|
||||
await p()
|
||||
|
||||
await checkNormalVideo()
|
||||
await checkNSFWVideo(policy)
|
||||
}
|
||||
}
|
||||
|
||||
async function checkSearchPage (policy: NSFWPolicy) {
|
||||
await videoSearchPage.search(normalVideo)
|
||||
await checkNormalVideo()
|
||||
|
||||
await videoSearchPage.search(nsfwVideo)
|
||||
await checkNSFWVideo(policy)
|
||||
}
|
||||
|
||||
async function updateAdminNSFW (nsfw: NSFWPolicy) {
|
||||
await adminConfigPage.navigateTo('instance-information')
|
||||
await adminConfigPage.updateNSFWSetting(nsfw)
|
||||
await adminConfigPage.save()
|
||||
}
|
||||
|
||||
async function updateUserNSFW (nsfw: NSFWPolicy) {
|
||||
await myAccountPage.navigateToMySettings()
|
||||
await myAccountPage.updateNSFW(nsfw)
|
||||
}
|
||||
|
||||
before(async () => {
|
||||
await waitServerUp()
|
||||
})
|
||||
|
||||
beforeEach(async () => {
|
||||
videoListPage = new VideoListPage(isMobileDevice(), isSafari())
|
||||
adminConfigPage = new AdminConfigPage()
|
||||
loginPage = new LoginPage(isMobileDevice())
|
||||
videoUploadPage = new VideoUploadPage()
|
||||
myAccountPage = new MyAccountPage()
|
||||
videoSearchPage = new VideoSearchPage()
|
||||
videoWatchPage = new VideoWatchPage(isMobileDevice(), isSafari())
|
||||
|
||||
await browser.maximizeWindow()
|
||||
})
|
||||
|
||||
it('Should login and disable NSFW', async () => {
|
||||
await loginPage.loginAsRootUser()
|
||||
await updateUserNSFW('display')
|
||||
})
|
||||
|
||||
it('Should set the homepage', async () => {
|
||||
await adminConfigPage.navigateTo('instance-homepage')
|
||||
await adminConfigPage.updateHomepage('<peertube-videos-list data-sort="-publishedAt"></peertube-videos-list>')
|
||||
await adminConfigPage.save()
|
||||
})
|
||||
|
||||
it('Should upload 2 videos (NSFW and classic videos)', async () => {
|
||||
await videoUploadPage.navigateTo()
|
||||
await videoUploadPage.uploadVideo('video.mp4')
|
||||
await videoUploadPage.setAsNSFW()
|
||||
await videoUploadPage.validSecondUploadStep(nsfwVideo)
|
||||
|
||||
await videoUploadPage.navigateTo()
|
||||
await videoUploadPage.uploadVideo('video2.mp4')
|
||||
await videoUploadPage.validSecondUploadStep(normalVideo)
|
||||
})
|
||||
|
||||
it('Should logout', async function () {
|
||||
await loginPage.logout()
|
||||
})
|
||||
|
||||
describe('Anonymous users', function () {
|
||||
|
||||
it('Should correctly handle do not list', async () => {
|
||||
await loginPage.loginAsRootUser()
|
||||
await updateAdminNSFW('do_not_list')
|
||||
|
||||
await loginPage.logout()
|
||||
await checkCommonVideoListPages('do_not_list')
|
||||
await checkSearchPage('do_not_list')
|
||||
})
|
||||
|
||||
it('Should correctly handle blur', async () => {
|
||||
await loginPage.loginAsRootUser()
|
||||
await updateAdminNSFW('blur')
|
||||
|
||||
await loginPage.logout()
|
||||
await checkCommonVideoListPages('blur')
|
||||
await checkSearchPage('blur')
|
||||
})
|
||||
|
||||
it('Should correctly handle display', async () => {
|
||||
await loginPage.loginAsRootUser()
|
||||
await updateAdminNSFW('display')
|
||||
|
||||
await loginPage.logout()
|
||||
await checkCommonVideoListPages('display')
|
||||
await checkSearchPage('display')
|
||||
})
|
||||
})
|
||||
|
||||
describe('Logged in users', function () {
|
||||
|
||||
before(async () => {
|
||||
await loginPage.loginAsRootUser()
|
||||
})
|
||||
|
||||
it('Should correctly handle do not list', async () => {
|
||||
await updateUserNSFW('do_not_list')
|
||||
await checkCommonVideoListPages('do_not_list')
|
||||
await checkSearchPage('do_not_list')
|
||||
})
|
||||
|
||||
it('Should correctly handle blur', async () => {
|
||||
await updateUserNSFW('blur')
|
||||
await checkCommonVideoListPages('blur')
|
||||
await checkSearchPage('blur')
|
||||
})
|
||||
|
||||
it('Should correctly handle display', async () => {
|
||||
await updateUserNSFW('display')
|
||||
await checkCommonVideoListPages('display')
|
||||
await checkSearchPage('display')
|
||||
})
|
||||
|
||||
after(async () => {
|
||||
await loginPage.logout()
|
||||
})
|
||||
})
|
||||
|
||||
describe('Default upload values', function () {
|
||||
|
||||
it('Should have default video values', async function () {
|
||||
await loginPage.loginAsRootUser()
|
||||
await videoUploadPage.navigateTo()
|
||||
await videoUploadPage.uploadVideo('video3.mp4')
|
||||
await videoUploadPage.validSecondUploadStep('video')
|
||||
|
||||
await videoWatchPage.waitWatchVideoName('video')
|
||||
|
||||
expect(await videoWatchPage.getPrivacy()).toBe('Public')
|
||||
expect(await videoWatchPage.getLicence()).toBe('Unknown')
|
||||
expect(await videoWatchPage.isDownloadEnabled()).toBeTruthy()
|
||||
expect(await videoWatchPage.areCommentsEnabled()).toBeTruthy()
|
||||
})
|
||||
})
|
||||
})
|
@ -0,0 +1 @@
|
||||
export type NSFWPolicy = 'do_not_list' | 'blur' | 'display'
|
@ -0,0 +1,9 @@
|
||||
declare global {
|
||||
namespace WebdriverIO {
|
||||
interface Element {
|
||||
chooseFile: (path: string) => Promise<void>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export {}
|
@ -0,0 +1,53 @@
|
||||
async function browserSleep (amount: number) {
|
||||
await browser.pause(amount)
|
||||
}
|
||||
|
||||
function isMobileDevice () {
|
||||
const platformName = (browser.capabilities['platformName'] || '').toLowerCase()
|
||||
|
||||
return platformName === 'android' || platformName === 'ios'
|
||||
}
|
||||
|
||||
function isAndroid () {
|
||||
const platformName = (browser.capabilities['platformName'] || '').toLowerCase()
|
||||
|
||||
return platformName === 'android'
|
||||
}
|
||||
|
||||
function isSafari () {
|
||||
return browser.capabilities['browserName'] &&
|
||||
browser.capabilities['browserName'].toLowerCase() === 'safari'
|
||||
}
|
||||
|
||||
function isIOS () {
|
||||
return isMobileDevice() && isSafari()
|
||||
}
|
||||
|
||||
async function go (url: string) {
|
||||
await browser.url(url)
|
||||
|
||||
await browser.execute(() => {
|
||||
const style = document.createElement('style')
|
||||
style.innerHTML = 'p-toast { display: none }'
|
||||
document.head.appendChild(style)
|
||||
})
|
||||
}
|
||||
|
||||
async function waitServerUp () {
|
||||
await browser.waitUntil(async () => {
|
||||
await go('/')
|
||||
await browserSleep(500)
|
||||
|
||||
return $('<my-app>').isDisplayed()
|
||||
}, { timeout: 20 * 1000 })
|
||||
}
|
||||
|
||||
export {
|
||||
isMobileDevice,
|
||||
isSafari,
|
||||
isIOS,
|
||||
isAndroid,
|
||||
waitServerUp,
|
||||
go,
|
||||
browserSleep
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
async function getCheckbox (name: string) {
|
||||
const input = $(`my-peertube-checkbox input[id=${name}]`)
|
||||
await input.waitForExist()
|
||||
|
||||
return input.parentElement()
|
||||
}
|
||||
|
||||
function isCheckboxSelected (name: string) {
|
||||
return $(`input[id=${name}]`).isSelected()
|
||||
}
|
||||
|
||||
async function selectCustomSelect (id: string, valueLabel: string) {
|
||||
const wrapper = $(`[formcontrolname=${id}] span[role=combobox]`)
|
||||
|
||||
await wrapper.waitForClickable()
|
||||
await wrapper.click()
|
||||
|
||||
const option = await $$(`[formcontrolname=${id}] li[role=option]`).filter(async o => {
|
||||
const text = await o.getText()
|
||||
|
||||
return text.trimStart().startsWith(valueLabel)
|
||||
}).then(options => options[0])
|
||||
|
||||
await option.waitForDisplayed()
|
||||
|
||||
return option.click()
|
||||
}
|
||||
|
||||
async function findParentElement (
|
||||
el: WebdriverIO.Element,
|
||||
finder: (el: WebdriverIO.Element) => Promise<boolean>
|
||||
) {
|
||||
if (await finder(el) === true) return el
|
||||
|
||||
return findParentElement(await el.parentElement(), finder)
|
||||
}
|
||||
|
||||
export {
|
||||
getCheckbox,
|
||||
isCheckboxSelected,
|
||||
selectCustomSelect,
|
||||
findParentElement
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
function getVerificationLink (email: { text: string }) {
|
||||
const { text } = email
|
||||
|
||||
const regexp = /\[(?<link>http:\/\/[^\]]+)\]/g
|
||||
const matched = text.matchAll(regexp)
|
||||
|
||||
if (!matched) throw new Error('Could not find verification link in email')
|
||||
|
||||
for (const match of matched) {
|
||||
const link = match.groups.link
|
||||
|
||||
if (link.includes('/verify-account/')) return link
|
||||
}
|
||||
|
||||
throw new Error('Could not find /verify-account/ link')
|
||||
}
|
||||
|
||||
function findEmailTo (emails: { text: string, to: { address: string }[] }[], to: string) {
|
||||
for (const email of emails) {
|
||||
for (const { address } of email.to) {
|
||||
if (address === to) return email
|
||||
}
|
||||
}
|
||||
|
||||
return undefined
|
||||
}
|
||||
|
||||
export {
|
||||
getVerificationLink,
|
||||
findEmailTo
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
import { mkdirSync } from 'fs'
|
||||
import { join } from 'path'
|
||||
|
||||
const SCREENSHOTS_DIRECTORY = 'screenshots'
|
||||
|
||||
function createScreenshotsDirectory () {
|
||||
mkdirSync(SCREENSHOTS_DIRECTORY, { recursive: true })
|
||||
}
|
||||
|
||||
function getScreenshotPath (filename: string) {
|
||||
return join(SCREENSHOTS_DIRECTORY, filename)
|
||||
}
|
||||
|
||||
export {
|
||||
createScreenshotsDirectory,
|
||||
getScreenshotPath
|
||||
}
|
@ -0,0 +1,106 @@
|
||||
import { ChildProcessWithoutNullStreams } from 'child_process'
|
||||
import { basename } from 'path'
|
||||
import { setValue } from '@wdio/shared-store-service'
|
||||
import { createScreenshotsDirectory } from './files'
|
||||
import { runCommand, runServer } from './server'
|
||||
|
||||
let appInstance: number
|
||||
let app: ChildProcessWithoutNullStreams
|
||||
|
||||
let emailPort: number
|
||||
|
||||
async function beforeLocalSuite (suite: any) {
|
||||
const config = buildConfig(suite.file)
|
||||
|
||||
await runCommand('npm run clean:server:test -- ' + appInstance)
|
||||
app = runServer(appInstance, config)
|
||||
}
|
||||
|
||||
function afterLocalSuite () {
|
||||
app.kill()
|
||||
app = undefined
|
||||
}
|
||||
|
||||
async function beforeLocalSession (config: { baseUrl: string }, capabilities: { browserName: string }) {
|
||||
createScreenshotsDirectory()
|
||||
|
||||
appInstance = capabilities['browserName'] === 'chrome'
|
||||
? 1
|
||||
: 2
|
||||
|
||||
emailPort = 1025 + appInstance
|
||||
|
||||
config.baseUrl = 'http://localhost:900' + appInstance
|
||||
|
||||
await setValue(config.baseUrl + '-emailPort', emailPort)
|
||||
}
|
||||
|
||||
async function onBrowserStackPrepare () {
|
||||
const appInstance = 1
|
||||
|
||||
await runCommand('npm run clean:server:test -- ' + appInstance)
|
||||
app = runServer(appInstance)
|
||||
}
|
||||
|
||||
function onBrowserStackComplete () {
|
||||
app.kill()
|
||||
app = undefined
|
||||
}
|
||||
|
||||
export {
|
||||
beforeLocalSession,
|
||||
afterLocalSuite,
|
||||
beforeLocalSuite,
|
||||
onBrowserStackPrepare,
|
||||
onBrowserStackComplete
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
function buildConfig (suiteFile: string = undefined) {
|
||||
const filename = basename(suiteFile)
|
||||
|
||||
if (filename === 'custom-server-defaults.e2e-spec.ts') {
|
||||
return {
|
||||
defaults: {
|
||||
publish: {
|
||||
download_enabled: false,
|
||||
comments_policy: 2,
|
||||
privacy: 2,
|
||||
licence: 4
|
||||
},
|
||||
p2p: {
|
||||
webapp: {
|
||||
enabled: false
|
||||
},
|
||||
embed: {
|
||||
enabled: false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (filename === 'signup.e2e-spec.ts') {
|
||||
return {
|
||||
signup: {
|
||||
limit: -1
|
||||
},
|
||||
smtp: {
|
||||
hostname: '127.0.0.1',
|
||||
port: emailPort
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (filename === 'video-password.e2e-spec.ts') {
|
||||
return {
|
||||
signup: {
|
||||
enabled: true,
|
||||
limit: -1
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return {}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
export * from './common'
|
||||
export * from './elements'
|
||||
export * from './email'
|
||||
export * from './files'
|
||||
export * from './hooks'
|
||||
export * from './mock-smtp'
|
||||
export * from './server'
|
||||
export * from './urls'
|
@ -0,0 +1,57 @@
|
||||
import MailDev from '@peertube/maildev'
|
||||
|
||||
class MockSMTPServer {
|
||||
|
||||
private static instance: MockSMTPServer
|
||||
private started = false
|
||||
private maildev: any
|
||||
private emails: object[]
|
||||
|
||||
collectEmails (port: number, emailsCollection: object[]) {
|
||||
return new Promise<number>((res, rej) => {
|
||||
this.emails = emailsCollection
|
||||
|
||||
if (this.started) {
|
||||
return res(undefined)
|
||||
}
|
||||
|
||||
this.maildev = new MailDev({
|
||||
ip: '127.0.0.1',
|
||||
smtp: port,
|
||||
disableWeb: true,
|
||||
silent: true
|
||||
})
|
||||
|
||||
this.maildev.on('new', email => {
|
||||
this.emails.push(email)
|
||||
})
|
||||
|
||||
this.maildev.listen(err => {
|
||||
if (err) return rej(err)
|
||||
|
||||
this.started = true
|
||||
|
||||
return res(port)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
kill () {
|
||||
if (!this.maildev) return
|
||||
|
||||
this.maildev.close()
|
||||
|
||||
this.maildev = null
|
||||
MockSMTPServer.instance = null
|
||||
}
|
||||
|
||||
static get Instance () {
|
||||
return this.instance || (this.instance = new this())
|
||||
}
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
MockSMTPServer
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue