Joystream / youtube-synch

YouTube Synchronization
11 stars 10 forks source link

Video categories for synched videos #38

Closed bedeho closed 1 year ago

bedeho commented 2 years ago
mochet commented 2 years ago

Not sure if it is known, but maybe the metadata from the video on YouTube could be utilized as the source of category information?

Metadata of YouTube videos does contain a numerical categoryId https://mattw.io/youtube-metadata/ The list of category IDs is available via the YouTube API (requires API key): https://developers.google.com/youtube/v3/docs/videoCategories/list

Additionally the metadata also includes topicCategories which looks like this:

    "topicCategories": [
        "https://en.wikipedia.org/wiki/Lifestyle_(sociology)",
        "https://en.wikipedia.org/wiki/Technology",
        "https://en.wikipedia.org/wiki/Vehicle"
    ]
}

and keywords that look like this:

"keywords": "education animated aviation wendover productions half as interesting"

and tags but I do not think many users still use this feature anymore

I believe this information is available via the API as well as being embedded within the page source of each video.

bedeho commented 2 years ago

Not sure if it is known, but maybe the metadata from the video on YouTube could be utilized as the source of category information?

the problem is that the categories on youtube do not have any automatic way of mapping to the categories found in a given atlas instance.

dmtrjsg commented 1 year ago

@dmtrjsg to create a separate issue to address it (rather than AC in this issue:

dmtrjsg commented 1 year ago

77