Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Search Indexing - Video is not the main content of the page #6210

Open
DVDGuy99 opened this issue Feb 8, 2024 · 8 comments
Open

Google Search Indexing - Video is not the main content of the page #6210

DVDGuy99 opened this issue Feb 8, 2024 · 8 comments
Labels
Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor

Comments

@DVDGuy99
Copy link

DVDGuy99 commented Feb 8, 2024

Describe the current behavior

Google Search Console gives the error "Video is not the main content of the page" when indexing videos on our PeerTube site.

This is one of the video pages that Google says the video is not the main content:

https://trailers.ddigest.com/w/sbKiNjKTCs8EkNpKb45ku9

(actually, I think it will say that for all the video pages - diving deeper into the video page indexing data, it says « Video is supplementary content on the page »)

Possibly related, but viewing a screenshot of the page generated within Google Search Console shows it displaying a "HLS.js does not seem to be supported" error where the video should be. Doing an exact term search for this on the videos section of Google shows quite a few PeerTube-hosted videos that have this as the crawled text description for the video.

Steps to reproduce

  1. Log in to Google Search Console account for the instance
  2. Under "Indexing" go to "Video Pages"
  3. A list of pages with the "Video is not the main content of the page" error should be listed here

Describe the expected behavior

As these pages are the main video playback pages, the video should of course be the main content of the page and Google should index these as such. Pages with videos that are indexed as the main content will show the video carousel with the video thumbnail as opposed to just a text link.

Additional information

  • PeerTube instance:

  • Browser name, version and platforms on which you could reproduce the bug:

  • Link to browser console log if relevant:

  • Link to server log if relevant (journalctl or /var/www/peertube/storage/logs/):

@Chocobozzz Chocobozzz added Status: In Progress 🔜 Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor labels Feb 23, 2024
@Chocobozzz Chocobozzz self-assigned this Feb 23, 2024
@Chocobozzz
Copy link
Owner

Google bot seems to fail to load the HLS player (which is a non-sense). Trying to fallback to raw HTML element using c4a0621

Hope it will fix the issue (have to wait deploy on peertube2.cpy.re and re-schedule a google bot indexation)

@Chocobozzz
Copy link
Owner

Seems like to fix the issue 👍

@aflamrip
Copy link

Has the problem been solved or is the same problem still present?
Indexing-pages-with-videos-URL-inspection
1g

@Chocobozzz
Copy link
Owner

Has the problem been solved or is the same problem still present?

Should be fixed in next peertube release (6.1.0)

@aflamrip
Copy link

I think I found a solution but I don't know if it is right or wrong
On this path
peertube-latest\client\dist\standalone\videos
There is a file
embed.html
This part is modified

to

But I don't know if this method will solve the problem
Video is not the main content of the page

Video placement

Video is supplementary content on the page

Whether the page is a playback page for a single video (Video is main content on the page), or hosts additional meaningful content or videos (Video is supplementary content on the page).

@DVDGuy99
Copy link
Author

DVDGuy99 commented May 8, 2024

This issue seems to be still present in 6.1.0.

I've tried enabling/disabling web video, HLS with P2P support, and it doesn't seem to matter too much, as it still gives the "video is not the main content of the page" error:

google_search_console_not_main_content

Below is the JavaScript console error messages as shown in Google Search Console for a sample page (https://trailers.ddigest.com/w/1ZcXuBacku4tZeY7KPHwPF), including it in case it helps:

google_search_console_errors

@DVDGuy99
Copy link
Author

DVDGuy99 commented May 8, 2024

Here's the video page indexing report for another video with web video enabled:

google_search_console_not_main_content2

@Chocobozzz Chocobozzz reopened this May 15, 2024
@Chocobozzz
Copy link
Owner

It's a nonsense, sometimes Google considers the video is not the main content on the page, and a few days later it correctly indexes the video. I'll look into it again, but if anyone here has a any clue, here don't hesitate to share it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐛 Confirmed bug, at least replicated once by another contributor
Projects
None yet
Development

No branches or pull requests

3 participants