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

[Bug] API /api/v1/search returns incorrect data for livestreams #3086

Closed
litetex opened this issue May 7, 2022 · 2 comments
Closed

[Bug] API /api/v1/search returns incorrect data for livestreams #3086

litetex opened this issue May 7, 2022 · 2 comments
Labels
bug Something isn't working stale

Comments

@litetex
Copy link

litetex commented May 7, 2022

Describe the bug
From #3057 (comment):

  • Livestreams have no views when searching for them and the date looks incorrect:

Steps to Reproduce

  1. Search for live streams via the API, e.g. https://test.invidious.io/api/v1/search?q=live
  2. Notice that livestreams
    • have a published-field that is equals to the current time, which is incorrect
    • have a viewCount of 0 which is also incorrect

Example:
Result of the API:
https://test.invidious.io/api/v1/search?q=live

[
    {
        "type": "video",
        "title": "Russia-Ukraine Conflict Live News Updates: G7 to hold virtual meet with President Zelensky | WION",
        "videoId": "yjJ3Ygc0u2Q",
        "author": "WION",
        "authorId": "UC_gUM8rL-Lrg6O3adPW9K1g",
        "authorUrl": "/channel/UC_gUM8rL-Lrg6O3adPW9K1g",
        "videoThumbnails": [
            {
                "quality": "maxres",
                "url": "https://test.invidious.io/vi/yjJ3Ygc0u2Q/maxres.jpg",
                "width": 1280,
                "height": 720
            },
            ...
        ],
        "description": "",
        "descriptionHtml": "",
        "viewCount": 0,
        "published": 1651925674,
        "publishedText": "vor 0 Sekunden",
        "lengthSeconds": 0,
        "liveNow": true,
        "premium": false,
        "isUpcoming": false
    },
    ...
]

Actual YouTube information regarding that livestream:
grafik

@litetex litetex added the bug Something isn't working label May 7, 2022
@iBicha
Copy link
Contributor

iBicha commented Nov 22, 2022

I'm seeing "liveNow": false, is returned on live videos

Copy link

This issue has been automatically marked as stale and will be closed in 30 days because it has not had recent activity and is much likely outdated. If you think this issue is still relevant and applicable, you just have to post a comment and it will be unmarked.

@github-actions github-actions bot added the stale label Nov 23, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants