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

feat(parser): Add LiveChatBannerChatSummary node, update TextRun node #809

Merged
merged 3 commits into from
Nov 18, 2024

Conversation

jonz94
Copy link
Contributor

@jonz94 jonz94 commented Nov 18, 2024

Example RawNode data:

{
  "liveChatBannerChatSummaryRenderer": {
    "liveChatSummaryId": "gKonxsPlU-M_1731888622579899",
    "chatSummary": {
      "runs": [
        {
          "text": "Chat summary",
          "bold": true,
          "fontFace": "FONT_FACE_ROBOTO_MEDIUM"
        },
        {
          "text": "\n"
        },
        {
          "text": "Auto-generated experiment • Quality may vary",
          "deemphasize": true,
          "fontFace": "FONT_FACE_ROBOTO_MEDIUM"
        },
        {
          "text": "\n"
        },
        {
          "text": "Viewers in the chat are discussing their favorite Final Fantasy games, ranging from Final Fantasy X to Final Fantasy XIII. They are also requesting songs from various artists, including Keshi, Chapel Roan, Sanae, and others.",
          "fontFace": "FONT_FACE_ROBOTO_REGULAR"
        }
      ]
    },
    "icon": {
      "iconType": "SPARK"
    },
    "trackingParams": "CB8Q77sMIhMIidfw9MvkiQMVcNpMAh1jfgrU",
    "likeFeedbackButton": {
      "toggleButtonViewModel": {
        "defaultButtonViewModel": {
          "buttonViewModel": {
            "iconName": "LIKE_OUTLINE",
            "onTap": {
              "innertubeCommand": {
                "clickTrackingParams": "CCMQ8FsiEwiJ1_D0y-SJAxVw2kwCHWN-CtQ=",
                "showEngagementPanelEndpoint": {
                  "identifier": {
                    "tag": "PAfeedback_genai"
                  },
                  "globalConfiguration": {
                    "params": "wggoCiQIBigBOhxnS29ueHNQbFUtTV8xNzMxODg4NjIyNTc5ODk5SAEQCA%3D%3D"
                  },
                  "engagementPanelPresentationConfigs": {
                    "engagementPanelPopupPresentationConfig": {
                      "popupType": "PANEL_POPUP_TYPE_DIALOG"
                    }
                  }
                }
              }
            },
            "accessibilityText": "Thumbs up",
            "trackingParams": "CCMQ8FsiEwiJ1_D0y-SJAxVw2kwCHWN-CtQ="
          }
        },
        "toggledButtonViewModel": {
          "buttonViewModel": {
            "iconName": "LIKE",
            "onTap": {
              "innertubeCommand": {
                "clickTrackingParams": "CCIQ8FsiEwiJ1_D0y-SJAxVw2kwCHWN-CtQ=",
                "commandMetadata": {
                  "webCommandMetadata": {
                    "sendPost": true,
                    "apiUrl": "/youtubei/v1/feedback"
                  }
                },
                "feedbackEndpoint": {
                  "feedbackToken": "AB9zfpJDe_KWjkMzrQUau-id4vECdb4767kJI7qOS8h2EQrmKxB5NcXYeXOGRVtdwPbhiR7FlLAx2LnJzK3YV8Fz58deC6e4ykfGODN2c73RSF2NocmcJe8"
                }
              }
            },
            "accessibilityText": "Remove thumbs up",
            "trackingParams": "CCIQ8FsiEwiJ1_D0y-SJAxVw2kwCHWN-CtQ="
          }
        },
        "trackingParams": "CB8Q77sMIhMIidfw9MvkiQMVcNpMAh1jfgrU"
      }
    },
    "dislikeFeedbackButton": {
      "toggleButtonViewModel": {
        "defaultButtonViewModel": {
          "buttonViewModel": {
            "iconName": "DISLIKE_OUTLINE",
            "onTap": {
              "innertubeCommand": {
                "clickTrackingParams": "CCEQ8FsiEwiJ1_D0y-SJAxVw2kwCHWN-CtQ=",
                "showEngagementPanelEndpoint": {
                  "identifier": {
                    "tag": "PAfeedback_genai"
                  },
                  "globalConfiguration": {
                    "params": "wggoCiQIBigCOhxnS29ueHNQbFUtTV8xNzMxODg4NjIyNTc5ODk5SAEQBg%3D%3D"
                  },
                  "engagementPanelPresentationConfigs": {
                    "engagementPanelPopupPresentationConfig": {
                      "popupType": "PANEL_POPUP_TYPE_DIALOG"
                    }
                  }
                }
              }
            },
            "accessibilityText": "Thumbs down",
            "trackingParams": "CCEQ8FsiEwiJ1_D0y-SJAxVw2kwCHWN-CtQ="
          }
        },
        "toggledButtonViewModel": {
          "buttonViewModel": {
            "iconName": "DISLIKE",
            "onTap": {
              "innertubeCommand": {
                "clickTrackingParams": "CCAQ8FsiEwiJ1_D0y-SJAxVw2kwCHWN-CtQ=",
                "commandMetadata": {
                  "webCommandMetadata": {
                    "sendPost": true,
                    "apiUrl": "/youtubei/v1/feedback"
                  }
                },
                "feedbackEndpoint": {
                  "feedbackToken": "AB9zfpJDe_KWjkMzrQUau-id4vECdb4767kJI7qOS8h2EQrmKxB5NcXYeXOGRVtdwPbhiR7FlLAx2LnJzK3YV8Fz58deC6e4ykfGODN2c73RSF2NocmcJe8"
                }
              }
            },
            "accessibilityText": "Remove thumbs down",
            "trackingParams": "CCAQ8FsiEwiJ1_D0y-SJAxVw2kwCHWN-CtQ="
          }
        },
        "trackingParams": "CB8Q77sMIhMIidfw9MvkiQMVcNpMAh1jfgrU"
      }
    }
  }
}

@LuanRT LuanRT merged commit 7fb00fa into LuanRT:main Nov 18, 2024
4 checks passed
@jonz94 jonz94 deleted the add-LiveChatBannerChatSummary branch November 18, 2024 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants