CaptainFact / CaptainFact/captain-fact

Multiple providers for video

Open
#19 1 comment 1 reaction 1 assignee Claimed by @Betree View on GitHub
backend complexity > simple refactor
Dominant language
No language data
Stars
71
Forks
7
PR merge metrics
No merged PRs in 30d

Description

# Description

A lot of publishers post their videos on both Facebook and Youtube. We should be able to have multiple URLs for videos.

This could be done by changing `videos` table to work like that:

```
youtube_id: string,
facebook_id: string,
vimeo_id: string
```

When returning from the API, `url` field should contain a default URL (either youtube or facebook) but also the different provider's ids.

We should also add a `{provider}_offset` column for each provider that will allow to set different offsets for each provider.

We will keep the legacy `provider` and `provider_id` columns until all the projects are migrated.

# Progress

- [x] Frontend
- [x] Backend
- [ ] Extension
- [ ] Injector

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.