Change YouTube importer to post rich embed of youtube videos rather than
Ticket(s) / Related Merge Requests
- Issue card: #2197 (closed)
- Front-end MR: front!1750 (merged)
Summary of Changes
Changes YT importer feature so that it will now post new videos as rich embeds to a user's channel, rather than the previous functionality where it would pull and transcode videos from YouTube. The rationale behind this is that Google deprecated the endpoint we used which prevented the feature from working and also rate limits were quite excessive when it was functional.
Testing Considerations
Front-end
- Make a youtube channel for development
- Upload a small video - can be anything
- Connect your YT account following instructions at settings/other/youtube-migration - HOWEVER use the sandbox domain instead of minds.com in your bio.
- Test UI
Backend
Automatically
If you upload a video to the youtube channel, it should be posted to your channel after processing.
Manually
You can run this command video the CLI, inserting your own channel and video ID
php /var/www/Minds/engine/cli.php YouTubeImporter import --channel_id=121212 --video_id='404040'
After running the video should appear on your channel.
Regression Scope
Changes YouTube migrator feature which in currently turned off behind a feature flag.
Platform Affected (web, mobile, etc)
Front-end and engine runners.
Developer Testing Completed
Specs
Screenshots
Does this impact
-
Localization -
Dark/light mode -
Guest mode
Edited by Ben