Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import YouTube playlist #11

Open
4 tasks
BrianZanti opened this issue May 4, 2020 · 0 comments
Open
4 tasks

Import YouTube playlist #11

BrianZanti opened this issue May 4, 2020 · 0 comments

Comments

@BrianZanti
Copy link
Collaborator

Currently tutorials can be created by manually entering information and then manually entering videos one by one.

The playlist importer should take a playlist_id which relates to a youtube playlist and import all of the videos and associate them with a tutorial.

As an admin
When I visit '/admin/tutorials/new'
Then I should see a link for 'Import YouTube Playlist'
When I click 'Import YouTube Playlist'
Then I should see a form

And when I fill in 'Playlist ID' with a valid ID
Then I should be on '/admin/dashboard'
And I should see a flash message that says 'Successfully created tutorial. View it here.'
And 'View it here' should be a link to '/tutorials/:id'
And when I click on 'View it here'
Then I should be on '/tutorials/:id'
And I should see all videos from the YouTube playlist
And the order should be the same as it was on YouTube
  • Retain the original sequence from YouTube
  • Creates a video record for each video in the playlist and stores the youtube id.
  • Associates each video stored in the DB is associated with a tutorial. (validate presence of tutorial id)
  • Can import a playlist with more than 50 videos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant