diff --git a/app/lib/snapshotter/content_module_slides.rb b/app/lib/snapshotter/content_module_slides.rb index 651f4d6..051cca3 100644 --- a/app/lib/snapshotter/content_module_slides.rb +++ b/app/lib/snapshotter/content_module_slides.rb @@ -8,8 +8,8 @@ def generate lesson.segments.each do |segment| next unless segment.is_a?(Video) - browser.goto("#{app_base}/slides/#{lesson.slug}/#{episode.slug}") - browser.screenshot(path: "#{out_dir}/#{lesson-ref}-#{episode.slug}.png", selector: '#slide-to-snapshot') + browser.goto("#{app_base}/slides/#{lesson.slug}/#{segment.slug}") + browser.screenshot(path: "#{out_dir}/#{lesson-ref}-#{segment.slug}.png", selector: '#slide-to-snapshot') end end end