bastimeyer · GitHub

Hi, everything looks great, most streams are working fine.

However, I've found some unexpected problems.
Could you please add some logging function calls?
For example, it would be useful to see http requests at debug level and http responses at trace level.

As for the errors:

  1. https://goodgame.ru/channel/osbvmt%7CVitaTV
    1. curl https://goodgame.ru/api/4/streams/2/channel/osbvmt%7CVitaTV
      {"error":"Not found"}
    2. curl https://goodgame.ru/api/4/streams/2/channel/osbvmt|VitaTV
      {
        "id": 201098,
        "key": "osbvmt|VitaTV",
        "preview": "https://hls.goodgame.ru/previews/201098_240.jpg",
        "title": "OSBVMT|VitaTV",
        "viewers": 1,
        "streamer": {
          "id": 1580220,
          "obj_key": "9:1580220",
          "nickname": "osbvmt1VitaTV",
          "username": "osbvmt1VitaTV",
          "avatar": "https://goodgame.ru//files/avatars/av_1580220_kjzI.jpg",
          "premium": false,
          "banned": false
        },
        "streamKey": "201098",
        "online": true,
        "game": {
          "id": 0,
          "title": null,
          "url": "/games/"
        },
        "poster": "https://goodgame.ru/files/logotypes/ch_201098_7hl4_logo.png",
        "hidden": false,
        "adult": false,
        "link": "https://goodgame.ru/channel/osbvmt%7CVitaTV/",
        "premium": false,
        "players": [
          {
            "title": "GoodGame",
            "status": true,
            "gg": true,
            "online": true,
            "content": "<iframe frameborder=\"0\" width=\"100%\" height=\"100%\" src=\"https://goodgame.ru/player?201098\"></iframe>"
          }
        ],
        "watchTogether": false,
        "premiums": 0,
        "followers": 0,
        "rating": {
          "value": 2406,
          "place": 108
        }
      }
    3. curl https://hls.goodgame.ru/manifest/201098_master.m3u8
      #EXTM3U
      #EXT-X-VERSION:3
      #GG-Balancer:1.0
      #EXT-X-STREAM-INF:BANDWIDTH=3149240,RESOLUTION=1280x720
      https://hls.goodgame.ru/hls/201098.m3u8
      
  2. https://goodgame.ru/channel/sunishere/
    1. curl https://goodgame.ru/api/4/streams/2/channel/sunishere
      {
        "id": 121276,
        "key": "sunishere",
        "preview": "https://hls.goodgame.ru/previews/121276_240.jpg",
        "title": "Привет, это мой первый стрим на Goodgame.ru",
        "viewers": 0,
        "streamer": {
          "id": 629604,
          "obj_key": "9:629604",
          "nickname": "sunishere",
          "username": "sunishere",
          "avatar": "https://goodgame.ru//files/avatars/av_avatar_elf.png",
          "premium": false,
          "banned": false
        },
        "streamKey": "121276",
        "online": true,
        "game": {
          "id": 34,
          "title": "Другое",
          "url": "/games/others"
        },
        "poster": "https://goodgame.ru/images/ico_tv.png",
        "hidden": true,
        "adult": true,
        "link": "https://goodgame.ru/channel/sunishere/",
        "premium": false,
        "players": [
          {
            "title": "Twitch",
            "status": false,
            "gg": false,
            "online": true,
            "content": "<iframe src=\"https://player.twitch.tv/?parent=goodgame.ru&channel=mintymouse\" frameborder=\"0\" allowfullscreen=\"true\" webkitallowfullscreen=\"true\" mozallowfullscreen=\"true\" scrolling=\"no\"  width=\"100%\" height=\"100%\"></iframe>"
          }
        ],
        "watchTogether": false,
        "premiums": 0,
        "followers": 44,
        "rating": {
          "value": 0,
          "place": 0
        }
      }
    2. curl -v https://hls.goodgame.ru/manifest/121276_master.m3u8
      stream is offline or not found

Read the original on github.com ↗