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

[NUUM] Add extractors #8868

Merged
merged 11 commits into from Feb 5, 2024
Merged

[NUUM] Add extractors #8868

merged 11 commits into from Feb 5, 2024

Conversation

DmitryScaletta
Copy link
Contributor

@DmitryScaletta DmitryScaletta commented Dec 28, 2023

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

wasd.tv is closed and now redirects to nuum.ru
I removed extractor for WasdTV and added new for NUUM:

IE Name URL example
nuum:live https://nuum.ru/channel/mts_live
nuum:stream https://nuum.ru/streams/1592713-7-days-to-die
nuum:video https://nuum.ru/videos/1567547-toxi-hurtz
nuum:clip https://nuum.ru/clips/1552564-pro-misu

From their official telegram channel (December 4, 2023):
https://t.me/nuum_ru/882?comment=17

image

Translation:

Once upon a time Well, just yesterday it was the WASD.TV channel. Now streaming has moved to the new NUUM platform, have you checked yet?

Responses

channel offline
{
  "result": {
    "channel": {
      "created_at": "2023-12-06T11:23:33.807Z",
      "deleted_at": null,
      "updated_at": "2023-12-29T16:50:45.883Z",
      "channel_id": 16898,
      "channel_name": "vded",
      "user_id": 18533,
      "followers_count": 14,
      "channel_is_live": false,
      "channel_description": "Канал ворчливый дед от STARPER GAMING. Добро пожаловать на нашу планету безумия",
      "channel_description_enabled": true,
      "channel_donation_url": null,
      "channel_image": {
        "large": "https://st.nuum.ru/nuum-upload/avatars/03a5f43b-d09a-4227-baef-a6e19663d8d9/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/avatars/03a5f43b-d09a-4227-baef-a6e19663d8d9/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/avatars/03a5f43b-d09a-4227-baef-a6e19663d8d9/original.jpeg"
      },
      "background": {
        "large": "https://st.nuum.ru/nuum-upload/channel_images/0312cb8e-c9b2-4497-8a84-52fdd8cf7f2f/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/channel_images/0312cb8e-c9b2-4497-8a84-52fdd8cf7f2f/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/channel_images/0312cb8e-c9b2-4497-8a84-52fdd8cf7f2f/original.jpeg"
      },
      "channel_status": "ACTIVE",
      "channel_subscription_seller": false,
      "channel_clips_count": 0,
      "channel_alias": null,
      "channel_priority": 0,
      "last_activity_date": "2023-12-29T15:35:37.000Z",
      "meta": {
        "required_isso": false
      },
      "is_verified": false,
      "channel_owner": {
        "created_at": "2023-12-06T11:23:33.807Z",
        "deleted_at": null,
        "updated_at": "2023-12-29T16:50:45.883Z",
        "user_id": 18533,
        "user_login": "vded",
        "profile_description": "Канал ворчливый дед от STARPER GAMING. Добро пожаловать на нашу планету безумия",
        "profile_image": {
          "large": "https://st.nuum.ru/nuum-upload/avatars/03a5f43b-d09a-4227-baef-a6e19663d8d9/original.jpeg",
          "medium": "https://st.nuum.ru/nuum-upload/avatars/03a5f43b-d09a-4227-baef-a6e19663d8d9/original.jpeg",
          "small": "https://st.nuum.ru/nuum-upload/avatars/03a5f43b-d09a-4227-baef-a6e19663d8d9/original.jpeg"
        },
        "profile_background": {
          "large": "https://st.nuum.ru/nuum-upload/channel_images/0312cb8e-c9b2-4497-8a84-52fdd8cf7f2f/original.jpeg",
          "medium": "https://st.nuum.ru/nuum-upload/channel_images/0312cb8e-c9b2-4497-8a84-52fdd8cf7f2f/original.jpeg",
          "small": "https://st.nuum.ru/nuum-upload/channel_images/0312cb8e-c9b2-4497-8a84-52fdd8cf7f2f/original.jpeg"
        },
        "channel_id": 16898,
        "profile_is_live": false
      },
      "notification": false,
      "is_user_follower": false,
      "is_partner": false
    },
    "media_container": null
  }
}
channel online
{
  "result": {
    "channel": {
      "created_at": "2023-12-18T14:37:43.144Z",
      "deleted_at": null,
      "updated_at": "2024-01-02T10:30:37.986Z",
      "channel_id": 28940,
      "channel_name": "IgrooshechnY",
      "user_id": 32334,
      "followers_count": 9,
      "channel_is_live": true,
      "channel_description": "Салют! Спасибо за просмотр! \n\nКанал Игрушечный обо всем, он чтобы просто был: делиться впечатлениями, мыслями, \nразличными местами и приколюхами, оставлять их на память, ловить flashbackи и ностальгию через время.\nТак же иногда делаю стримы и играю в игрухи.\n\nЕдиная ссылка для всех моих соцсетей\nhttps://hipolink.me/igrooshechny\n\nПомощь в развитии канала через Donationalerts \nhttps://www.donationalerts.com/r/igrooshechny",
      "channel_description_enabled": true,
      "channel_donation_url": null,
      "channel_image": {
        "large": "https://st.nuum.ru/nuum-upload/avatars/43674d81-ad70-4910-ae7d-55d0f0046f48/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/avatars/43674d81-ad70-4910-ae7d-55d0f0046f48/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/avatars/43674d81-ad70-4910-ae7d-55d0f0046f48/original.jpeg"
      },
      "background": {
        "large": "https://st.nuum.ru/nuum-upload/channel_images/671544a3-4250-4475-bedc-084d4384f68b/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/channel_images/671544a3-4250-4475-bedc-084d4384f68b/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/channel_images/671544a3-4250-4475-bedc-084d4384f68b/original.jpeg"
      },
      "channel_status": "ACTIVE",
      "channel_subscription_seller": false,
      "channel_clips_count": 0,
      "channel_alias": null,
      "channel_priority": 0,
      "last_activity_date": "2024-01-02T10:30:37.000Z",
      "meta": {
        "required_isso": false
      },
      "is_verified": false,
      "channel_owner": {
        "created_at": "2023-12-18T14:37:43.144Z",
        "deleted_at": null,
        "updated_at": "2024-01-02T10:30:37.986Z",
        "user_id": 32334,
        "user_login": "IgrooshechnY",
        "profile_description": "Салют! Спасибо за просмотр! \n\nКанал Игрушечный обо всем, он чтобы просто был: делиться впечатлениями, мыслями, \nразличными местами и приколюхами, оставлять их на память, ловить flashbackи и ностальгию через время.\nТак же иногда делаю стримы и играю в игрухи.\n\nЕдиная ссылка для всех моих соцсетей\nhttps://hipolink.me/igrooshechny\n\nПомощь в развитии канала через Donationalerts \nhttps://www.donationalerts.com/r/igrooshechny",
        "profile_image": {
          "large": "https://st.nuum.ru/nuum-upload/avatars/43674d81-ad70-4910-ae7d-55d0f0046f48/original.jpeg",
          "medium": "https://st.nuum.ru/nuum-upload/avatars/43674d81-ad70-4910-ae7d-55d0f0046f48/original.jpeg",
          "small": "https://st.nuum.ru/nuum-upload/avatars/43674d81-ad70-4910-ae7d-55d0f0046f48/original.jpeg"
        },
        "profile_background": {
          "large": "https://st.nuum.ru/nuum-upload/channel_images/671544a3-4250-4475-bedc-084d4384f68b/original.jpeg",
          "medium": "https://st.nuum.ru/nuum-upload/channel_images/671544a3-4250-4475-bedc-084d4384f68b/original.jpeg",
          "small": "https://st.nuum.ru/nuum-upload/channel_images/671544a3-4250-4475-bedc-084d4384f68b/original.jpeg"
        },
        "channel_id": 28940,
        "profile_is_live": true
      },
      "notification": false,
      "is_user_follower": false,
      "is_partner": false
    },
    "media_container": {
      "media_container_id": 1602519,
      "media_container_name": "Live 02.01.2024: The Last of Us Part I (PS5)",
      "media_container_description": "Салют! Спасибо за просмотр! \n\nКанал Игрушечный обо всем, он чтобы просто был: делиться впечатлениями, мыслями, \nразличными местами и приколюхами, оставлять их на память, ловить flashbackи и ностальгию через время.\nТак же иногда делаю стримы и играю в игрухи.\n\nЕдиная ссылка для всех моих соцсетей\nhttps://hipolink.me/igrooshechny\n\nПомощь в развитии канала через Donationalerts \nhttps://www.donationalerts.com/r/igrooshechny",
      "media_container_type": "SINGLE",
      "media_container_status": "RUNNING",
      "media_container_online_status": "PUBLIC",
      "user_id": 32334,
      "channel_id": 28940,
      "created_at": "2024-01-02T10:30:37.000Z",
      "is_mature_content": false,
      "published_at": "2024-01-02T10:30:37.988Z",
      "game": {
        "game_id": 68,
        "game_name": "Другие игры/Демо",
        "game_icon": {
          "large": "https://st.nuum.ru/upload/game_covers/original/Other_games_demos.jpg",
          "medium": "https://st.nuum.ru/upload/game_covers/original/Other_games_demos.jpg",
          "small": "https://st.nuum.ru/upload/game_covers/original/Other_games_demos.jpg"
        },
        "game_color_hex": "2840ba"
      },
      "media_container_streams": [
        {
          "stream_id": 1583499,
          "stream_total_viewers": 0,
          "stream_current_viewers": 0,
          "stream_current_active_viewers": 0,
          "stream_media": [
            {
              "media_id": 1581329,
              "media_type": "HLS",
              "media_meta": {
                "media_url": "https://media-gateway-cache.nuum.ru/live/32334/index.m3u8",
                "media_archive_url": null,
                "media_preview_url": "https://media-gateway-cache.nuum.ru/large/live/32334/preview.jpg",
                "media_preview_images": {
                  "large": "https://media-gateway-cache.nuum.ru/large/live/32334/preview.jpg",
                  "small": "https://media-gateway-cache.nuum.ru/small/live/32334/preview.jpg",
                  "medium": "https://media-gateway-cache.nuum.ru/medium/live/32334/preview.jpg"
                },
                "media_preview_archive_images": null
              },
              "media_duration": 0,
              "media_status": "RUNNING"
            }
          ]
        }
      ],
      "tags": []
    }
  }
}

stream online

media_container_type: SINGLE
media_container_status: RUNNING

JSON
{
  "result": {
    "media_container_id": 1602519,
    "media_container_name": "Live 02.01.2024: The Last of Us Part I (PS5)",
    "media_container_description": "Салют! Спасибо за просмотр! \n\nКанал Игрушечный обо всем, он чтобы просто был: делиться впечатлениями, мыслями, \nразличными местами и приколюхами, оставлять их на память, ловить flashbackи и ностальгию через время.\nТак же иногда делаю стримы и играю в игрухи.\n\nЕдиная ссылка для всех моих соцсетей\nhttps://hipolink.me/igrooshechny\n\nПомощь в развитии канала через Donationalerts \nhttps://www.donationalerts.com/r/igrooshechny",
    "media_container_type": "SINGLE",
    "media_container_status": "RUNNING",
    "media_container_online_status": "PUBLIC",
    "user_id": 32334,
    "channel_id": 28940,
    "created_at": "2024-01-02T10:30:37.000Z",
    "is_mature_content": false,
    "published_at": "2024-01-02T10:30:37.988Z",
    "vod": {
      "ready": false
    },
    "game": {
      "game_id": 68,
      "game_name": "Другие игры/Демо",
      "game_icon": {
        "large": "https://st.nuum.ru/upload/game_covers/original/Other_games_demos.jpg",
        "medium": "https://st.nuum.ru/upload/game_covers/original/Other_games_demos.jpg",
        "small": "https://st.nuum.ru/upload/game_covers/original/Other_games_demos.jpg"
      },
      "game_color_hex": "2840ba"
    },
    "media_container_streams": [
      {
        "stream_id": 1583499,
        "stream_total_viewers": 0,
        "stream_current_viewers": 0,
        "stream_current_active_viewers": 0,
        "stream_media": [
          {
            "media_id": 1581329,
            "media_type": "HLS",
            "media_meta": {
              "media_url": "https://media-gateway-cache.nuum.ru/live/32334/index.m3u8",
              "media_archive_url": null,
              "media_preview_url": "https://media-gateway-cache.nuum.ru/large/live/32334/preview.jpg",
              "media_preview_images": {
                "large": "https://media-gateway-cache.nuum.ru/large/live/32334/preview.jpg",
                "small": "https://media-gateway-cache.nuum.ru/small/live/32334/preview.jpg",
                "medium": "https://media-gateway-cache.nuum.ru/medium/live/32334/preview.jpg"
              },
              "media_preview_archive_images": null
            },
            "media_duration": 0,
            "media_status": "RUNNING"
          }
        ]
      }
    ],
    "tags": [],
    "media_container_user": {
      "created_at": "2023-12-18T14:37:43.144Z",
      "deleted_at": null,
      "updated_at": "2024-01-02T10:30:37.986Z",
      "user_id": 32334,
      "user_login": "IgrooshechnY",
      "profile_description": "Салют! Спасибо за просмотр! \n\nКанал Игрушечный обо всем, он чтобы просто был: делиться впечатлениями, мыслями, \nразличными местами и приколюхами, оставлять их на память, ловить flashbackи и ностальгию через время.\nТак же иногда делаю стримы и играю в игрухи.\n\nЕдиная ссылка для всех моих соцсетей\nhttps://hipolink.me/igrooshechny\n\nПомощь в развитии канала через Donationalerts \nhttps://www.donationalerts.com/r/igrooshechny",
      "profile_image": {
        "large": "https://st.nuum.ru/nuum-upload/avatars/43674d81-ad70-4910-ae7d-55d0f0046f48/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/avatars/43674d81-ad70-4910-ae7d-55d0f0046f48/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/avatars/43674d81-ad70-4910-ae7d-55d0f0046f48/original.jpeg"
      },
      "profile_background": {
        "large": "https://st.nuum.ru/nuum-upload/channel_images/671544a3-4250-4475-bedc-084d4384f68b/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/channel_images/671544a3-4250-4475-bedc-084d4384f68b/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/channel_images/671544a3-4250-4475-bedc-084d4384f68b/original.jpeg"
      },
      "channel_id": 28940,
      "profile_is_live": true
    },
    "media_container_channel": {
      "created_at": "2023-12-18T14:37:43.144Z",
      "deleted_at": null,
      "updated_at": "2024-01-02T10:30:37.986Z",
      "channel_id": 28940,
      "channel_name": "IgrooshechnY",
      "user_id": 32334,
      "followers_count": 9,
      "channel_is_live": true,
      "channel_description": "Салют! Спасибо за просмотр! \n\nКанал Игрушечный обо всем, он чтобы просто был: делиться впечатлениями, мыслями, \nразличными местами и приколюхами, оставлять их на память, ловить flashbackи и ностальгию через время.\nТак же иногда делаю стримы и играю в игрухи.\n\nЕдиная ссылка для всех моих соцсетей\nhttps://hipolink.me/igrooshechny\n\nПомощь в развитии канала через Donationalerts \nhttps://www.donationalerts.com/r/igrooshechny",
      "channel_description_enabled": true,
      "channel_donation_url": null,
      "channel_image": {
        "large": "https://st.nuum.ru/nuum-upload/avatars/43674d81-ad70-4910-ae7d-55d0f0046f48/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/avatars/43674d81-ad70-4910-ae7d-55d0f0046f48/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/avatars/43674d81-ad70-4910-ae7d-55d0f0046f48/original.jpeg"
      },
      "background": {
        "large": "https://st.nuum.ru/nuum-upload/channel_images/671544a3-4250-4475-bedc-084d4384f68b/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/channel_images/671544a3-4250-4475-bedc-084d4384f68b/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/channel_images/671544a3-4250-4475-bedc-084d4384f68b/original.jpeg"
      },
      "channel_status": "ACTIVE",
      "channel_clips_count": 0,
      "channel_alias": null,
      "channel_priority": 0,
      "last_activity_date": "2024-01-02T10:30:37.000Z",
      "meta": {},
      "is_verified": false,
      "notification": false,
      "is_user_follower": false,
      "is_partner": false
    }
  }
}

stream offline

media_container_type: SINGLE
media_container_status: STOPPED

JSON
{
  "result": {
    "media_container_id": 1595427,
    "media_container_name": "новогодний стрим, выбираем топ треки года",
    "media_container_description": "ski mask way",
    "media_container_type": "SINGLE",
    "media_container_status": "STOPPED",
    "media_container_online_status": "PUBLIC",
    "user_id": 964,
    "channel_id": 948,
    "created_at": "2023-12-29T17:07:19.000Z",
    "is_mature_content": false,
    "published_at": "2023-12-29T17:07:20.005Z",
    "vod": {
      "ready": false
    },
    "game": {
      "game_id": 2326,
      "game_name": "Кино и сериалы",
      "game_icon": {},
      "game_color_hex": "434CC2"
    },
    "media_container_streams": [
      {
        "stream_id": 1576407,
        "stream_total_viewers": 1092,
        "stream_current_viewers": 75,
        "stream_current_active_viewers": 42,
        "stream_media": [
          {
            "media_id": 1574237,
            "media_type": "HLS",
            "media_meta": {
              "media_url": "https://media-gateway-cache.nuum.ru/live/964/index.m3u8",
              "media_archive_url": "https://media-gateway-cache.nuum.ru/live/964/index-1703869645-8117.m3u8",
              "media_preview_url": "https://media-gateway-cache.nuum.ru/large/live/964/preview.jpg",
              "media_preview_images": {
                "large": "https://media-gateway-cache.nuum.ru/large/live/964/preview.jpg",
                "small": "https://media-gateway-cache.nuum.ru/small/live/964/preview.jpg",
                "medium": "https://media-gateway-cache.nuum.ru/medium/live/964/preview.jpg"
              },
              "media_preview_archive_url": "https://media-gateway-cache.nuum.ru/preview/dvr/964/1703869645.jpg",
              "media_preview_archive_images": {
                "large": "https://media-gateway-cache.nuum.ru/preview/dvr/964/1703869645.jpg?preset=large",
                "small": "https://media-gateway-cache.nuum.ru/preview/dvr/964/1703869645.jpg?preset=small",
                "medium": "https://media-gateway-cache.nuum.ru/preview/dvr/964/1703869645.jpg?preset=medium"
              }
            },
            "media_duration": 8117,
            "media_status": "STOPPED"
          }
        ]
      }
    ],
    "tags": [
      {
        "tag_id": 7,
        "tag_name": "Анализ",
        "tag_description": "Трансляции, посвященные критическому анализу или обсуждению каких-либо тем",
        "tag_meta": null,
        "tag_type": "DEFAULT",
        "tag_media_containers_online_count": 45
      }
    ],
    "media_container_user": {
      "created_at": "2023-11-30T13:25:30.311Z",
      "deleted_at": null,
      "updated_at": "2023-12-29T19:22:42.616Z",
      "user_id": 964,
      "user_login": "risenHAHA",
      "profile_description": "ski mask way",
      "profile_image": {
        "large": "https://st.nuum.ru/nuum-upload/avatars/32d643f8-628e-464e-94cb-fec8b7c95a14/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/avatars/32d643f8-628e-464e-94cb-fec8b7c95a14/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/avatars/32d643f8-628e-464e-94cb-fec8b7c95a14/original.jpeg"
      },
      "profile_background": {
        "large": "https://st.nuum.ru/nuum-upload/channel_images/6544a31a-1344-4447-ba43-488a710c3aec/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/channel_images/6544a31a-1344-4447-ba43-488a710c3aec/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/channel_images/6544a31a-1344-4447-ba43-488a710c3aec/original.jpeg"
      },
      "channel_id": 948,
      "profile_is_live": false
    },
    "media_container_channel": {
      "created_at": "2023-11-30T13:25:30.311Z",
      "deleted_at": null,
      "updated_at": "2023-12-31T15:25:24.667Z",
      "channel_id": 948,
      "channel_name": "risenHAHA",
      "user_id": 964,
      "followers_count": 513,
      "channel_is_live": false,
      "channel_description": "ski mask way",
      "channel_description_enabled": true,
      "channel_donation_url": null,
      "channel_image": {
        "large": "https://st.nuum.ru/nuum-upload/avatars/32d643f8-628e-464e-94cb-fec8b7c95a14/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/avatars/32d643f8-628e-464e-94cb-fec8b7c95a14/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/avatars/32d643f8-628e-464e-94cb-fec8b7c95a14/original.jpeg"
      },
      "background": {
        "large": "https://st.nuum.ru/nuum-upload/channel_images/6544a31a-1344-4447-ba43-488a710c3aec/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/channel_images/6544a31a-1344-4447-ba43-488a710c3aec/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/channel_images/6544a31a-1344-4447-ba43-488a710c3aec/original.jpeg"
      },
      "channel_status": "ACTIVE",
      "channel_clips_count": 0,
      "channel_alias": null,
      "channel_priority": 0,
      "last_activity_date": "2023-12-29T17:07:19.000Z",
      "meta": {},
      "is_verified": false,
      "notification": false,
      "is_user_follower": false,
      "is_partner": false
    }
  }
}

video

media_container_type: LONG_VIDEO
media_container_status: STOPPED

JSON
{
  "result": {
    "media_container_id": 1567547,
    "media_container_name": "Toxi$ - Hurtz",
    "media_container_description": "",
    "media_container_type": "LONG_VIDEO",
    "media_container_status": "STOPPED",
    "media_container_online_status": "PUBLIC",
    "user_id": 7407,
    "channel_id": 6911,
    "created_at": "2023-12-15T09:14:11.103Z",
    "is_mature_content": false,
    "published_at": "2023-12-15T09:14:11.103Z",
    "vod": {
      "ready": true,
      "recordId": "a41b233b-a4de-48fc-baaf-58c99f9d8f7f",
      "thumbnails": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/a41b233b-a4de-48fc-baaf-58c99f9d8f7f/d90145161abb26aae90fc91b6bc2d43d+0000018C6CC445A192A957A6EF5AE99B.vtt"
    },
    "context": {},
    "game": {
      "game_id": 1670,
      "game_name": "Музыка",
      "game_icon": {
        "large": "https://st.nuum.ru/upload/game_covers/original/Music.jpg",
        "medium": "https://st.nuum.ru/upload/game_covers/original/Music.jpg",
        "small": "https://st.nuum.ru/upload/game_covers/original/Music.jpg"
      },
      "game_color_hex": "0951a0"
    },
    "media_container_streams": [
      {
        "stream_id": 1548527,
        "stream_total_viewers": 913,
        "stream_current_viewers": 0,
        "stream_current_active_viewers": 0,
        "stream_media": [
          {
            "media_id": 1546357,
            "media_type": "HLS",
            "media_meta": {
              "media_url": null,
              "media_archive_url": "https://vod-playlist-cache.nuum.ru/nuum-vod-production/33d61824-3987-4024-43b7-6c3107957638/master.m3u8",
              "media_preview_url": null,
              "media_preview_images": null,
              "media_preview_archive_url": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/a41b233b-a4de-48fc-baaf-58c99f9d8f7f/afddad36a987f78868bf08cc23021faa+0000018C6CC18A35924B63D396651BF3.jpg",
              "media_preview_archive_images": {
                "large": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/a41b233b-a4de-48fc-baaf-58c99f9d8f7f/afddad36a987f78868bf08cc23021faa+0000018C6CC18A35924B63D396651BF3.jpg",
                "small": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/a41b233b-a4de-48fc-baaf-58c99f9d8f7f/afddad36a987f78868bf08cc23021faa+0000018C6CC18A35924B63D396651BF3.jpg",
                "medium": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/a41b233b-a4de-48fc-baaf-58c99f9d8f7f/afddad36a987f78868bf08cc23021faa+0000018C6CC18A35924B63D396651BF3.jpg"
              },
              "media_preview_first_frame_archive_images": {
                "large": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/a41b233b-a4de-48fc-baaf-58c99f9d8f7f/3c7a62c2c59136b544fb3140595eb703+0000018C6CC18A6292A93D5422625C3B.jpg",
                "small": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/a41b233b-a4de-48fc-baaf-58c99f9d8f7f/3c7a62c2c59136b544fb3140595eb703+0000018C6CC18A6292A93D5422625C3B.jpg",
                "medium": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/a41b233b-a4de-48fc-baaf-58c99f9d8f7f/3c7a62c2c59136b544fb3140595eb703+0000018C6CC18A6292A93D5422625C3B.jpg"
              }
            },
            "media_duration": 116,
            "media_status": "STOPPED"
          }
        ]
      }
    ],
    "tags": [],
    "media_container_user": {
      "created_at": "2023-12-04T13:44:34.108Z",
      "deleted_at": null,
      "updated_at": "2023-12-04T14:41:10.108Z",
      "user_id": 7407,
      "user_login": "toxis",
      "profile_description": "Скоро тут будет описание канала",
      "profile_image": {
        "large": "https://st.nuum.ru/nuum-upload/avatars/ffd1f5b1-dbfa-4131-8613-61a37a271f96/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/avatars/ffd1f5b1-dbfa-4131-8613-61a37a271f96/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/avatars/ffd1f5b1-dbfa-4131-8613-61a37a271f96/original.jpeg"
      },
      "profile_background": {
        "large": "https://static.nuum.ru/images/profiles/retina/bg_4.jpg",
        "medium": "https://static.nuum.ru/images/profiles/bg_4.jpg",
        "small": "https://static.nuum.ru/images/profiles/bg_4.jpg"
      },
      "channel_id": 6911,
      "profile_is_live": false
    },
    "media_container_channel": {
      "created_at": "2023-12-04T13:44:34.108Z",
      "deleted_at": null,
      "updated_at": "2024-01-02T12:15:10.569Z",
      "channel_id": 6911,
      "channel_name": "toxis",
      "user_id": 7407,
      "followers_count": 354,
      "channel_is_live": false,
      "channel_description": "",
      "channel_description_enabled": true,
      "channel_donation_url": null,
      "channel_image": {
        "large": "https://st.nuum.ru/nuum-upload/avatars/ffd1f5b1-dbfa-4131-8613-61a37a271f96/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/avatars/ffd1f5b1-dbfa-4131-8613-61a37a271f96/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/avatars/ffd1f5b1-dbfa-4131-8613-61a37a271f96/original.jpeg"
      },
      "background": {
        "large": "https://static.nuum.ru/images/profiles/retina/bg_4.jpg",
        "medium": "https://static.nuum.ru/images/profiles/bg_4.jpg",
        "small": "https://static.nuum.ru/images/profiles/bg_4.jpg"
      },
      "channel_status": "ACTIVE",
      "channel_clips_count": 0,
      "channel_alias": null,
      "channel_priority": 0,
      "last_activity_date": null,
      "meta": {},
      "is_verified": false,
      "notification": false,
      "is_user_follower": false,
      "is_partner": false
    }
  }
}

clip

media_container_type: SHORT_VIDEO
media_container_status: STOPPED

JSON
{
  "result": {
    "media_container_id": 1552564,
    "media_container_name": "Про Мису 🙃",
    "media_container_description": null,
    "media_container_type": "SHORT_VIDEO",
    "media_container_status": "STOPPED",
    "media_container_online_status": "PUBLIC",
    "user_id": 3564,
    "channel_id": 3320,
    "created_at": "2023-12-07T17:57:08.815Z",
    "is_mature_content": false,
    "published_at": "2023-12-07T17:57:08.815Z",
    "vod": {
      "ready": true,
      "recordId": "db31a252-c783-4a65-b266-e91984a0542d"
    },
    "context": {},
    "game": {
      "game_id": 2312,
      "game_name": "Животные",
      "game_icon": {},
      "game_color_hex": "434CC2"
    },
    "media_container_streams": [
      {
        "stream_id": 1533544,
        "stream_total_viewers": 14134,
        "stream_current_viewers": 0,
        "stream_current_active_viewers": 0,
        "stream_media": [
          {
            "media_id": 1531374,
            "media_type": "HLS",
            "media_meta": {
              "media_url": null,
              "media_archive_url": "https://vod-playlist-cache.nuum.ru/nuum-vod-production/8b2346ca-85fa-45ed-5a85-2119fde0fe57/master.m3u8",
              "media_preview_url": null,
              "media_preview_images": null,
              "media_preview_archive_url": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/db31a252-c783-4a65-b266-e91984a0542d/dc9e6a35c2d8cdb6029208e90577dad4+0000018C456D318C92A985D307518903.jpg",
              "media_preview_archive_images": {
                "large": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/db31a252-c783-4a65-b266-e91984a0542d/dc9e6a35c2d8cdb6029208e90577dad4+0000018C456D318C92A985D307518903.jpg",
                "small": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/db31a252-c783-4a65-b266-e91984a0542d/dc9e6a35c2d8cdb6029208e90577dad4+0000018C456D318C92A985D307518903.jpg",
                "medium": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/db31a252-c783-4a65-b266-e91984a0542d/dc9e6a35c2d8cdb6029208e90577dad4+0000018C456D318C92A985D307518903.jpg"
              },
              "media_preview_first_frame_archive_images": {
                "large": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/db31a252-c783-4a65-b266-e91984a0542d/fc8bbf71943fcccb03ec1d83d33dd46d+0000018C456D319592A7FA62E022F2C0.jpg",
                "small": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/db31a252-c783-4a65-b266-e91984a0542d/fc8bbf71943fcccb03ec1d83d33dd46d+0000018C456D319592A7FA62E022F2C0.jpg",
                "medium": "https://storage-cdn.nuum.ru/api/v1/files/nuum-vod-production/db31a252-c783-4a65-b266-e91984a0542d/fc8bbf71943fcccb03ec1d83d33dd46d+0000018C456D319592A7FA62E022F2C0.jpg"
              }
            },
            "media_duration": 41,
            "media_status": "STOPPED"
          }
        ]
      }
    ],
    "tags": [],
    "media_container_user": {
      "created_at": "2023-12-02T12:01:37.143Z",
      "deleted_at": null,
      "updated_at": "2023-12-07T18:04:19.402Z",
      "user_id": 3564,
      "user_login": "Misalelik",
      "profile_description": "Про Кошку Мису и ее сына Лелика 😺\nПодпишись!❤️👆",
      "profile_image": {
        "large": "https://st.nuum.ru/nuum-upload/avatars/e023ae7d-e684-44b3-b140-7c26716af364/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/avatars/e023ae7d-e684-44b3-b140-7c26716af364/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/avatars/e023ae7d-e684-44b3-b140-7c26716af364/original.jpeg"
      },
      "profile_background": {
        "large": "https://st.nuum.ru/nuum-upload/channel_images/4fd4ada2-6c77-4977-aded-930037d9f85b/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/channel_images/4fd4ada2-6c77-4977-aded-930037d9f85b/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/channel_images/4fd4ada2-6c77-4977-aded-930037d9f85b/original.jpeg"
      },
      "channel_id": 3320,
      "profile_is_live": false
    },
    "media_container_channel": {
      "created_at": "2023-12-02T12:01:37.143Z",
      "deleted_at": null,
      "updated_at": "2024-01-02T11:57:19.088Z",
      "channel_id": 3320,
      "channel_name": "Misalelik",
      "user_id": 3564,
      "followers_count": 339,
      "channel_is_live": false,
      "channel_description": "Про Кошку Мису и ее сына Лелика 😺\nПодпишись!❤️👆",
      "channel_description_enabled": true,
      "channel_donation_url": null,
      "channel_image": {
        "large": "https://st.nuum.ru/nuum-upload/avatars/e023ae7d-e684-44b3-b140-7c26716af364/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/avatars/e023ae7d-e684-44b3-b140-7c26716af364/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/avatars/e023ae7d-e684-44b3-b140-7c26716af364/original.jpeg"
      },
      "background": {
        "large": "https://st.nuum.ru/nuum-upload/channel_images/4fd4ada2-6c77-4977-aded-930037d9f85b/original.jpeg",
        "medium": "https://st.nuum.ru/nuum-upload/channel_images/4fd4ada2-6c77-4977-aded-930037d9f85b/original.jpeg",
        "small": "https://st.nuum.ru/nuum-upload/channel_images/4fd4ada2-6c77-4977-aded-930037d9f85b/original.jpeg"
      },
      "channel_status": "ACTIVE",
      "channel_clips_count": 0,
      "channel_alias": null,
      "channel_priority": 0,
      "last_activity_date": null,
      "meta": {},
      "is_verified": false,
      "notification": false,
      "is_user_follower": false,
      "is_partner": false
    }
  }
}

Formats

live stream

ID   EXT RESOLUTION FPS │   TBR PROTO │ VCODEC      ACODEC 
─────────────────────────────────────────────────────────────
5430 mp4 1920x1080   60 │ 5430k m3u8  │ avc1.64002a mp4a.40.2

video

ID             EXT RESOLUTION FPS │   TBR PROTO │ VCODEC        VBR ACODEC     MORE INFO 
───────────────────────────────────────────────────────────────────────────────────────────
audio0-English mp4 audio only     │       m3u8  │ audio only        unknown    [en] English
629            mp4 640x360     25 │  630k m3u8  │ avc1.64001e  630k video only
759            mp4 854x480     25 │  759k m3u8  │ avc1.64001e  759k video only
2382           mp4 1280x720    25 │ 2382k m3u8  │ avc1.64001f 2382k video only
6467           mp4 1920x1080   25 │ 6468k m3u8  │ avc1.640028 6468k video only

clip

ID             EXT RESOLUTION FPS │   TBR PROTO │ VCODEC        VBR ACODEC     MORE INFO 
────────────────────────────────────────────────────────────────────────────────────────
audio0-default mp4 audio only     │       m3u8  │ audio only        unknown    default
684            mp4 360x640     30 │  684k m3u8  │ avc1.64001e  684k video only
943            mp4 480x853     30 │  944k m3u8  │ avc1.64001f  944k video only
3240           mp4 720x1280    30 │ 3241k m3u8  │ avc1.64001f 3241k video only
Template

Before submitting a pull request make sure you have:

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

@seproDev seproDev added the site-request Request to support a new website label Dec 29, 2023
@DmitryScaletta DmitryScaletta changed the title [NUUM]: Add extractors [NUUM] Add extractors Dec 30, 2023
@bashonly bashonly self-requested a review January 31, 2024 18:55
yt_dlp/extractor/nuum.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nuum.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nuum.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nuum.py Outdated Show resolved Hide resolved
@seproDev seproDev added the pending-fixes PR has had changes requested label Feb 2, 2024
@seproDev
Copy link
Collaborator

seproDev commented Feb 4, 2024

I have reworked the extractors a bit. Please test that everything still works.
I know that using the playlist extractor the metadata is now fetched twice (once as part of the playlist, and once due to the URL result). While not ideal, I would argue that this is better than fetching every m3u8 URL during playlist extraction. This problem can only truly be solved once we have lazy info dicts.

@seproDev seproDev removed the pending-fixes PR has had changes requested label Feb 4, 2024
@DmitryScaletta
Copy link
Contributor Author

Please test that everything still works

Everything seems to be working fine.

yt_dlp/extractor/nuum.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nuum.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nuum.py Outdated Show resolved Hide resolved
yt_dlp/extractor/nuum.py Show resolved Hide resolved
yt_dlp/extractor/nuum.py Show resolved Hide resolved
@bashonly bashonly added the pending-fixes PR has had changes requested label Feb 4, 2024
seproDev and others added 2 commits February 4, 2024 18:35
Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
@seproDev seproDev removed the pending-fixes PR has had changes requested label Feb 4, 2024
@seproDev seproDev merged commit acaf806 into yt-dlp:master Feb 5, 2024
6 checks passed
FletcherD pushed a commit to FletcherD/yt-dlp that referenced this pull request Feb 14, 2024
Authored by: DmitryScaletta, seproDev

Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
Authored by: DmitryScaletta, seproDev

Co-authored-by: sepro <4618135+seproDev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-request Request to support a new website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants