Import YouTube playlist
Opened this issue · 0 comments
mikedao commented
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)