首页 > 解决方案 > youtube api returns copyright free videos as copyrighted

问题描述

While using the Youtube API, I'm getting wrong results from the licensedContent. This is how I check it:

def videos_list_by_id(client, **kwargs):
    response = client.videos().list(
        **kwargs
    ).execute()
    return response['items'][0]['contentDetails']['licensedContent']

The problem seems not to be in the code anyways as it does return False for copyrighted videos, but it also does, sometimes, for copyright free ones. I know that because the videos I'm checking are uploaded by myself and I can see if they have any copyright issue.

标签: python-3.xgoogle-apiyoutube-apigoogle-api-python-client

解决方案


推荐阅读