bastimeyer · GitHub

It appears that Huya have updated its JSON respose and changed liveId from int to str, which causes Streamlink to throw ValidationError

var TT_ROOM_DATA = {
    "type": "NORMAL",
    "state": "ON",
    "isOn": true,
    "isOff": false,
    "isReplay": false,
    "isPayRoom": 0,
    "isSecret": 0,
    "roomPayPassword": "",
    "id": "2246718540",
    "sid": "2246718540",
    "channel": "2246718540",
    "liveChannel": "2246718540",
    "liveId": "7134653690594404016",
    "shortChannel": 0,
    "isBluRay": 1,
    "gameFullName": "QQ飞车",
    "gameHostName": "qqfc",
    "screenType": 1,
    "startTime": 1661166012,
    "totalCount": 94949,
    "cameraOpen": 0,
    "liveCompatibleFlag": 0,
    "bussType": 1,
    "isPlatinum": 1,
    "isAutoBitrate": 0,
    "screenshot": "https://anchorpost.msstatic.com/cdnimage/anchorpost/1048/bf/cabe0c27190175f71f3ba6625d6339_0_1612088308.jpg",
    "previewUrl": "",
    "gameId": 0,
    "liveSourceType": 0,
    "privateHost": "2248015237",
    "profileRoom": 602781,
    "recommendStatus": 0,
    "popular": 0,
    "gid": 9,
    "introduction": "排位3000分段 晚点刷记录走起!",
    "isRedirectHuya": 0,
    "isShowMmsProgramList": 0
};

Read the original on github.com ↗