Video Library

<% if @storage_locations.any? %> <%= link_to "New Storage Location", new_storage_location_path, class: "bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-4 rounded-lg transition-colors" %> <% end %>
<% if @storage_locations.empty? %>
No storage locations found

Storage locations are automatically discovered from directories mounted under /videos

Example Docker volume mounts:

/path/to/movies:/videos/movies:ro
/path/to/tv_shows:/videos/tv:ro
/path/to/documentaries:/videos/docs:ro
<% else %>
<% @storage_locations.each do |storage_location| %>

<%= link_to storage_location.name, storage_location, class: "hover:text-blue-600 transition-colors" %>

Path: <%= storage_location.path %>

Type: <%= storage_location.storage_type.titleize %>

Videos: <%= storage_location.video_count %>

<% if storage_location.accessible? %>
Accessible
<% else %>
Not Accessible
<% end %>
<%= link_to "View Videos", storage_location, class: "bg-blue-600 hover:bg-blue-700 text-white font-medium py-2 px-3 rounded text-sm transition-colors" %> <%= form_with(url: scan_storage_location_path(storage_location), method: :post, class: "inline-flex") do |form| %> <%= form.submit "Scan", class: "bg-gray-600 hover:bg-gray-700 text-white font-medium py-2 px-3 rounded text-sm cursor-pointer transition-colors" %> <% end %>
<% end %>
<% end %>