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

add IncludeDj to directory_page #535

Merged
merged 1 commit into from
Aug 7, 2024
Merged

add IncludeDj to directory_page #535

merged 1 commit into from
Aug 7, 2024

Conversation

Nazar1ky
Copy link
Contributor

@Nazar1ky Nazar1ky commented Aug 7, 2024

Issue from: #526 (comment)


Added new variable includeIsDJ, without it server return response:

{'errors': [{'message': 'Variable "includeIsDJ" has invalid value null.\nExpected type "Boolean!", found null.', 'locations': [{'line': 1, 'column': 154}]}], 'extensions': {'durationMilliseconds': 2, 'operationName': 'DirectoryPage_Game', 'requestID': '01J4Q51NTKF0Y71G3CC'}}

That variable adds isParticipatingDJ:

    {
        "cursor": "eyJzIjoxMzY1LjM4MjQ1NjU1OTU0NDIsImQiOmZhbHNlLCJ0Ijp0cnVlfQ==",
        "node": {
            "id": "42708821592",
            "title": "Der Weg zum Set Bonus",
            "viewersCount": 1365,
            "previewImageURL": "https://static-cdn.jtvnw.net/previews-ttv/live_user_keysjore-440x248.jpg",
            "broadcaster": {
                "id": "28552242",
                "login": "keysjore",
                "displayName": "KeysJore",
                "roles": {
                    "isPartner": true,
+                   "isParticipatingDJ": false,
                    "__typename": "UserRoles"
                },
                "profileImageURL": "https://static-cdn.jtvnw.net/jtv_user_pictures/keysjore-profile_image-5cf0ec46d8075838-50x50.jpeg",
                "primaryColorHex": null,
                "__typename": "User"
            },
            "freeformTags": [
                {
                    ...
                },
                {
                    ...
                }
            ],
            "type": "live",
            "game": {
                ...
            },
            "previewThumbnailProperties": {
               ...
            },
            "__typename": "Stream"
        },
        "trackingID": null,
        "__typename": "StreamEdge"
    },

That used for:
image

@DevilXD DevilXD merged commit 415233b into DevilXD:master Aug 7, 2024
@DevilXD DevilXD added the Fix This fixes an existing issue or error label Aug 7, 2024
@Nazar1ky Nazar1ky deleted the add-param branch August 9, 2024 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix This fixes an existing issue or error
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants