Check if youtube movie has been renamed

Can you use the youtube API to verify that a video has already been reindexed in the youtube search index after modifying one of its tags? The language is not important right now, but preferable to Java / Scala.

+6
source share
2 answers

Once you update the video with the new tag, following the steps shown here , the video goes into the reindex queue. It will be selected from the queue based on internal logic. At the moment, I don’t think we have an API to tell the status of the index.

If your application needs this, with the current API available, you can poll the video and get tags, check if your tag modification is available (workaround).

+2
source

Once you have completed the download, you can use processingDetails through a call to youtube.videos.list () .

Example:

GET https://www.googleapis.com/youtube/v3/videos?part=processingDetails&id=P41w1KkcP5w&key= {YOUR_API_KEY}

Answer:

200 OK

  • Show headers - {"kind": "youtube # videoListResponse", "etag": "\" gMjDJfS6nsym0T-NKCXALC_u_rM / Q2AsW8DSmKUN3ErB0YUS15N7t_o \ "," pageInfo ": {" totalResults ": 1" "" "" "" "" "" "" : [{

    "kind": "youtube # video", "etag": "\" GMjDJfS6nsym0T-NKCXALC_u_rM / G9iHMnwcFYD3asMQYe-pvgVk0pQ \ "",
    "id": "P41w1KkcP5w", "processingDetails": { "processStatus": "completed" }}]}

-1
source

Source: https://habr.com/ru/post/972787/


All Articles