diff --git a/app/components/movie_title_table_component.html.erb b/app/components/movie_title_table_component.html.erb index 6e4b0d67..6a485cfc 100644 --- a/app/components/movie_title_table_component.html.erb +++ b/app/components/movie_title_table_component.html.erb @@ -34,7 +34,7 @@

- <% if disk_title.video_blob&.uploaded? %> + <% if movie.ripped_disk_titles.any? { _1.video_blob&.uploaded? } %> <%= icon('square-check') %> <% else %> <%= icon('square') %> diff --git a/app/views/seasons/show.html.erb b/app/views/seasons/show.html.erb index 5d2e8edc..a11c9a79 100644 --- a/app/views/seasons/show.html.erb +++ b/app/views/seasons/show.html.erb @@ -48,7 +48,7 @@

- <% if episode.video_blobs.any?(&:uploaded?) %> + <% if episode.ripped_disk_titles.any? { _1.video_blob.uploaded? } %> <%= icon('square-check') %> <% else %> <%= icon('square') %> diff --git a/app/workers/rip_worker.rb b/app/workers/rip_worker.rb index 4e09bead..3e73171a 100644 --- a/app/workers/rip_worker.rb +++ b/app/workers/rip_worker.rb @@ -55,10 +55,18 @@ def redirect_to_season_or_movie end def redirect_url - if disk.video.is_a?(Movie) - movie_url(disk.video) - elsif disk.video.is_a?(Tv) - tv_season_url(disk.episode.season.tv, disk.episode.season) + disk_title = DiskTitle.find_by(id: disk_title_ids.first) + return if disk_title.nil? + + if disk_title.video.is_a?(Movie) + movie_url(disk_title.video) + elsif disk_title.video.is_a?(Tv) + tv_season_url(disk_title.episode.season.tv, disk_title.episode.season) end end + + def reload_page! + cable_ready[BroadcastChannel.channel_name].reload + cable_ready.broadcast + end end