Skip to content

feat(dailymotion-site): switch to using the public api for getting the data #181

Description

@Benexl

will use the public api endpoint: https://api.dailymotion.com, read more here: https://developers.dailymotion.com/reference

This will enable faster video and user searching; playlists require authentication for searching so will be discluded from the reimpl

It also seems there is no serious rate limiting to it as far as the docs; makes this even more worth it

search menu will support the following params (https://api.dailymotion.com/videos?):

  • search
  • sort - the available sorts are: recent, visited, visited-hour, visited-today, visited-week, visited-month, relevance, random, trending, old, live-audience, least-visited, live-airing-time, or id-asc
  • channel - categories defined here: https://developers.dailymotion.com/reference/video-categories
  • live
  • no_live
  • longer_than - seconds
  • shorter_than - seconds
  • limit
  • fields - the video fields to fetch will be: likes_total, channel, tags, id, thumbnail_url, title ,url, uploaded_time

users menu will support the following params (https://api.dailymotion.com/users?):

  • search
  • limit
  • fields - the user fields to fetch will be: avatar_360_url, country, description, instagram_url, gender, playlists_total, screenname, url, videos_total, views_total, website_url

user playlists menu will support the following params (https://api.dailymotion.com/user/user-id/playlists?):

  • fields - the playlist fields to fetch will be: description, id, name, owner, thumbnail_url, videos_total

user videos menu will support the following params (https://api.dailymotion.com/user/user-id/videos?)

  • search
  • limit
  • sort - the available sorts are: recent, visited, visited-hour, visited-today, visited-week, visited-month, relevance, random, trending, old, live-audience, least-visited, live-airing-time, or id-asc
  • fields - the video fields to fetch will be: likes_total, channel, tags, id, thumbnail_url, title ,url, uploaded_time

user playlist menu will support the following params (https://api.dailymotion.com/playlist/playlist-id/videos?)

  • search
  • limit
  • sort - the available sorts are: recent, visited, visited-hour, visited-today, visited-week, visited-month, relevance, random, trending, old, live-audience, least-visited, live-airing-time, or id-asc
  • fields - the video fields to fetch will be: likes_total, channel, tags, id, thumbnail_url, title ,url, uploaded_time

Metadata

Metadata

Assignees

Projects

Status
Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions