[PR #1009] [MERGED] api/ok: fix author not being handled properly #1298

Closed
opened 2025-11-09 10:10:05 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/imputnet/cobalt/pull/1009
Author: @zjy4fun
Created: 12/19/2024
Status: Merged
Merged: 2/11/2025
Merged by: @wukko

Base: mainHead: fix-ok.ru-download-failed


📝 Commits (1)

  • 40fda53 api/ok: fix author not being handled properly

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 api/src/processing/services/ok.js (+1 -1)

📄 Description

closes #866

https://github.com/imputnet/cobalt/blob/main/api/src/processing/services/ok.js#L47

author may be undefined

videoData:

{
  "provider": "UPLOADED_ODKL",
  "service": "ok",
  "owner": false,
  "voted": false,
  "likeCount": 0,
  "subscribed": false,
  "isWatchLater": false,
  "slot": 690,
  "siteZone": -1,
  "showAd": true,
  "fromTime": 0,
  "author": {},
  "movie": {
    "id": "376357718731",
    "movieId": "376357718731",
    "likeId": "376357718731",
    "contentId": "340295027403",
    "poster": "https://i.okcdn.ru/videoPreview?id=340295027403&type=32&idx=13&tkn=T6Z6ADXIQZOdmr9owIB_hbz0dVk&fn=external_8",
    "duration": "4201",
    "title": "Peppa.Pig.My.First.Cinema.Experience.2017.HDRip.ShahidFirst.TV",
    "url": "https://ok.ru/video/376357718731",
    "link": "/video/376357718731",
    "collageInfo": {
      "imageType": "COLLAGE",
      "url": "https://i.okcdn.ru/videoPreview?id=340295027403&type=36&idx=0&tkn=C6WrJIVv2USi4CTmlrtc9ByIY5k",
      "frequency": 30,
      "height": 44,
      "width": 80,
      "count": 141,
      "tileWidth": 0,
      "tileHeight": 0
    },
    "status": "OK",
    "statusText": "OK",
    "isLive": false,
    "notPublished": false,
    "isClip": false
  },
  "admanMetadata": {},
  "partnerId": -1,
  "ownerMovieId": "376357718731",
  "alwaysShowRec": false,
  "videos": [
    {
      "name": "low",
      "url": "https://vd551.okcdn.ru/?expires=1734680631327&srcIp=45.76.252.155&pr=10&srcAg=CHROME&ms=185.226.55.61&type=1&sig=Q70T0ruIj-I&ct=0&urls=45.136.22.7&clientType=0&zs=43&id=340295027403",
      "seekSchema": 3,
      "disallowed": false
    }
  ],
  "ondemandHls": "https://vd551.okcdn.ru/expires/1734680631327/clientType/0/srcIp/45.76.252.155/type/2/mid/376357718731/id/340295027403/ms/185.226.55.61/zs/43/srcAg/CHROME/urls/45.136.22.7/oq/0/pr/10/ct/28/sig/u-pZMkQqhzc/ondemand/hls4_340295027403.CMuVrIX6CkDL4YK04hBQCnInWXG31_BE.m3u8",
  "ondemandDash": "https://vd551.okcdn.ru/expires/1734680631327/clientType/0/srcIp/45.76.252.155/type/2/mid/376357718731/id/340295027403/ms/185.226.55.61/zs/43/srcAg/CHROME/urls/45.136.22.7/oq/0/pr/10/ct/29/sig/u-pZMkQqhzc/ondemand/dash4_340295027403.CMuVrIX6CkDL4YK04hBQCnInWXG31_BE.mpd",
  "failoverHosts": [
    "vd199.okcdn.ru"
  ],
  "autoplay": {
    "autoplayEnabled": true,
    "timeFromEnabled": true,
    "noRec": false,
    "fullScreenExit": false,
    "vitrinaSection": "recommended_movie"
  },
  "security": {
    "url": "https://vd551.okcdn.ru/usr_login",
    "cookie": "vdsig"
  },
  "p2pInfo": {
    "isPeerEnabled": false,
    "ubsc": 0,
    "pbsc": 0,
    "mptpc": 0,
    "pctmt": 0,
    "pbesc": 0,
    "prrt": 0,
    "srt": 0,
    "swrt": 0,
    "dctt": 0
  },
  "stunServers": [
    {
      "urls": [
        "stun:videostun.okcdn.ru:19302"
      ]
    }
  ],
  "pins": [],
  "episodes": []
}

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/imputnet/cobalt/pull/1009 **Author:** [@zjy4fun](https://github.com/zjy4fun) **Created:** 12/19/2024 **Status:** ✅ Merged **Merged:** 2/11/2025 **Merged by:** [@wukko](https://github.com/wukko) **Base:** `main` ← **Head:** `fix-ok.ru-download-failed` --- ### 📝 Commits (1) - [`40fda53`](https://github.com/imputnet/cobalt/commit/40fda53b3d96103e1ad48815122b3d1fcaa0c4cb) api/ok: fix author not being handled properly ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `api/src/processing/services/ok.js` (+1 -1) </details> ### 📄 Description closes #866 https://github.com/imputnet/cobalt/blob/main/api/src/processing/services/ok.js#L47 `author` may be undefined videoData: ``` { "provider": "UPLOADED_ODKL", "service": "ok", "owner": false, "voted": false, "likeCount": 0, "subscribed": false, "isWatchLater": false, "slot": 690, "siteZone": -1, "showAd": true, "fromTime": 0, "author": {}, "movie": { "id": "376357718731", "movieId": "376357718731", "likeId": "376357718731", "contentId": "340295027403", "poster": "https://i.okcdn.ru/videoPreview?id=340295027403&type=32&idx=13&tkn=T6Z6ADXIQZOdmr9owIB_hbz0dVk&fn=external_8", "duration": "4201", "title": "Peppa.Pig.My.First.Cinema.Experience.2017.HDRip.ShahidFirst.TV", "url": "https://ok.ru/video/376357718731", "link": "/video/376357718731", "collageInfo": { "imageType": "COLLAGE", "url": "https://i.okcdn.ru/videoPreview?id=340295027403&type=36&idx=0&tkn=C6WrJIVv2USi4CTmlrtc9ByIY5k", "frequency": 30, "height": 44, "width": 80, "count": 141, "tileWidth": 0, "tileHeight": 0 }, "status": "OK", "statusText": "OK", "isLive": false, "notPublished": false, "isClip": false }, "admanMetadata": {}, "partnerId": -1, "ownerMovieId": "376357718731", "alwaysShowRec": false, "videos": [ { "name": "low", "url": "https://vd551.okcdn.ru/?expires=1734680631327&srcIp=45.76.252.155&pr=10&srcAg=CHROME&ms=185.226.55.61&type=1&sig=Q70T0ruIj-I&ct=0&urls=45.136.22.7&clientType=0&zs=43&id=340295027403", "seekSchema": 3, "disallowed": false } ], "ondemandHls": "https://vd551.okcdn.ru/expires/1734680631327/clientType/0/srcIp/45.76.252.155/type/2/mid/376357718731/id/340295027403/ms/185.226.55.61/zs/43/srcAg/CHROME/urls/45.136.22.7/oq/0/pr/10/ct/28/sig/u-pZMkQqhzc/ondemand/hls4_340295027403.CMuVrIX6CkDL4YK04hBQCnInWXG31_BE.m3u8", "ondemandDash": "https://vd551.okcdn.ru/expires/1734680631327/clientType/0/srcIp/45.76.252.155/type/2/mid/376357718731/id/340295027403/ms/185.226.55.61/zs/43/srcAg/CHROME/urls/45.136.22.7/oq/0/pr/10/ct/29/sig/u-pZMkQqhzc/ondemand/dash4_340295027403.CMuVrIX6CkDL4YK04hBQCnInWXG31_BE.mpd", "failoverHosts": [ "vd199.okcdn.ru" ], "autoplay": { "autoplayEnabled": true, "timeFromEnabled": true, "noRec": false, "fullScreenExit": false, "vitrinaSection": "recommended_movie" }, "security": { "url": "https://vd551.okcdn.ru/usr_login", "cookie": "vdsig" }, "p2pInfo": { "isPeerEnabled": false, "ubsc": 0, "pbsc": 0, "mptpc": 0, "pctmt": 0, "pbesc": 0, "prrt": 0, "srt": 0, "swrt": 0, "dctt": 0 }, "stunServers": [ { "urls": [ "stun:videostun.okcdn.ru:19302" ] } ], "pins": [], "episodes": [] } ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-09 10:10:05 -06:00
Sign in to join this conversation.