calzoneman / sync

Node.JS Server and JavaScript/HTML Client for synchronizing online media
Other
1.47k stars 232 forks source link

[YouTube] Detect unfinished uploads #710

Closed calzoneman closed 6 years ago

calzoneman commented 7 years ago

Creating a tracking issue for https://twitter.com/Minty_Root/status/920536484238843905.

From investigation, in-progress uploads look like this:

      "contentDetails": {
        "duration": "PT0S",
        "dimension": "2d",
        "definition": "sd",
        "caption": "false",
        "licensedContent": false,
        "projection": "rectangular"
      },
      "status": {
        "uploadStatus": "uploaded",
        "privacyStatus": "unlisted",
        "license": "youtube",
        "embeddable": true,
        "publicStatsViewable": true
      },

CyTube should check that status.uploadStatus is "processed" before queueing.

calzoneman commented 6 years ago

Snafu: live streams have status uploaded but in that case they actually do work as expected (unlike VODs).

Damn it YouTube.

calzoneman commented 6 years ago

Closing via https://github.com/CyTube/mediaquery/commit/b9edac4bcb0b03ea3a9478a9b92b881188d07923