mirror of
https://github.com/ceratic/MediaCollectorLibary.git
synced 2026-05-14 08:06:47 +02:00
959 lines
57 KiB
Twig
959 lines
57 KiB
Twig
{% extends "layouts/app.twig" %}
|
|
|
|
{% block content %}
|
|
<!-- Hero Section with Backdrop -->
|
|
<div class="relative">
|
|
<div class="h-96 md:h-[500px] relative overflow-hidden">
|
|
<img src="{{ movie.backdrop_url ? movie.backdrop_url : movie.poster_url }}" alt="{{ movie.title }} backdrop" class="w-full h-full object-cover">
|
|
<div class="absolute inset-0 bg-gradient-to-t from-black via-black/50 to-transparent"></div>
|
|
<div class="absolute inset-0 bg-gradient-to-r from-black/80 via-black/40 to-transparent"></div>
|
|
|
|
<!-- Back button -->
|
|
<div class="absolute top-4 left-4 z-10">
|
|
<a href="{{ path_for('adult.index') }}" class="inline-flex items-center text-white hover:text-gray-300 transition-colors bg-black/20 backdrop-blur-sm rounded-full px-4 py-2">
|
|
<svg class="mr-2" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"/>
|
|
</svg>
|
|
Back to Adult Videos
|
|
</a>
|
|
</div>
|
|
|
|
<!-- Hero Content -->
|
|
<div class="absolute bottom-0 left-0 right-0 p-6 md:p-8">
|
|
<div class="max-w-4xl">
|
|
<h1 class="text-4xl md:text-6xl font-bold text-white mb-2 drop-shadow-lg">{{ movie.title }}</h1>
|
|
{% if movie.tagline %}
|
|
<p class="text-xl md:text-2xl text-gray-200 mb-4 drop-shadow-md">{{ movie.tagline }}</p>
|
|
{% endif %}
|
|
|
|
<!-- Quick Info -->
|
|
<div class="flex flex-wrap gap-4 text-sm text-white mb-4">
|
|
{% if movie.release_date %}
|
|
<span class="flex items-center bg-black/30 backdrop-blur-sm rounded-full px-3 py-1">
|
|
<svg class="mr-2" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"/>
|
|
</svg>
|
|
{{ movie.release_date|date('Y') }}
|
|
</span>
|
|
{% endif %}
|
|
|
|
{% if movie.rating %}
|
|
<span class="flex items-center bg-black/30 backdrop-blur-sm rounded-full px-3 py-1">
|
|
<svg class="mr-2" width="16" height="16" fill="currentColor" viewBox="0 0 20 20">
|
|
<path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"/>
|
|
</svg>
|
|
{{ movie.rating }}/10
|
|
</span>
|
|
{% endif %}
|
|
|
|
{% if movie.runtime_minutes %}
|
|
<span class="flex items-center bg-black/30 backdrop-blur-sm rounded-full px-3 py-1">
|
|
<svg class="mr-2" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/>
|
|
</svg>
|
|
{{ (movie.runtime_minutes / 60)|round(1) }}h {{ movie.runtime_minutes % 60 }}m
|
|
</span>
|
|
{% endif %}
|
|
|
|
{% if movie.file_size %}
|
|
<span class="flex items-center bg-black/30 backdrop-blur-sm rounded-full px-3 py-1">
|
|
<svg class="mr-2" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 4V2a1 1 0 011-1h8a1 1 0 011 1v2h4a1 1 0 010 2h-1v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6H3a1 1 0 010-2h4z"/>
|
|
</svg>
|
|
{{ movie.file_size|filesizeformat }}
|
|
</span>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<!-- Status badges -->
|
|
<div class="flex flex-wrap gap-2 mb-4">
|
|
{% if movie.watched %}
|
|
<span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-green-500 text-white">
|
|
<svg class="mr-2" width="14" height="14" fill="currentColor" viewBox="0 0 20 20">
|
|
<path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd"/>
|
|
</svg>
|
|
Watched
|
|
</span>
|
|
{% endif %}
|
|
|
|
{% if movie.is_favorite %}
|
|
<span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-red-500 text-white">
|
|
<svg class="mr-2" width="14" height="14" fill="currentColor" viewBox="0 0 20 20">
|
|
<path d="M3.172 5.172a4 4 0 015.656 0L10 6.343l1.172-1.171a4 4 0 115.656 5.656L10 17.657l-6.828-6.829a4 4 0 010-5.656z"/>
|
|
</svg>
|
|
Favorite
|
|
</span>
|
|
{% endif %}
|
|
|
|
{% if movie.collection %}
|
|
<span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-purple-500 text-white">
|
|
<svg class="mr-2" width="14" height="14" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11H5m14 0a2 2 0 012 2v6a2 2 0 01-2 2H5a2 2 0 01-2-2v-6a2 2 0 012-2m14 0V9a2 2 0 00-2-2M5 11V9a2 2 0 012-2m0 0V5a2 2 0 012-2h6a2 2 0 012 2v2M7 7h10"/>
|
|
</svg>
|
|
{{ movie.collection }}
|
|
</span>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<!-- Action buttons -->
|
|
<div class="flex flex-wrap gap-3">
|
|
<button class="bg-blue-600 hover:bg-blue-700 text-white px-6 py-3 rounded-lg font-medium transition-colors flex items-center">
|
|
<svg class="mr-2" width="18" height="18" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.828 14.828a4 4 0 01-5.656 0M9 10h1m4 0h1m-6 8a9 9 0 110-18 9 9 0 010 18z"/>
|
|
</svg>
|
|
Mark as Watched
|
|
</button>
|
|
<button class="bg-white/10 hover:bg-white/20 backdrop-blur-sm text-white border border-white/30 px-6 py-3 rounded-lg font-medium transition-colors flex items-center">
|
|
<svg class="mr-2" width="18" height="18" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"/>
|
|
</svg>
|
|
Add to Favorites
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
<!-- Main Content -->
|
|
<div class="max-w-7xl mx-auto px-4 py-8">
|
|
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
|
|
<!-- Poster and Quick Actions -->
|
|
<div class="lg:col-span-1">
|
|
<div class="sticky top-4">
|
|
<!-- Poster -->
|
|
<div class="bg-white rounded-xl shadow-lg overflow-hidden mb-6">
|
|
<div class="{{ movie.poster_aspect_ratio ? 'aspect-custom' : '' }}">
|
|
{% if movie.poster_url %}
|
|
<img src="{{ movie.poster_url }}" alt="{{ movie.title }}" class="w-full h-full object-cover">
|
|
{% else %}
|
|
<div class="w-full h-full flex items-center justify-center bg-gradient-to-br from-gray-100 to-gray-200">
|
|
<svg class="text-gray-400 w-16 h-16" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 4V2a1 1 0 011-1h8a1 1 0 011 1v2h4a1 1 0 010 2h-1v14a2 2 0 01-2 2H6a2 2 0 01-2-2V6H3a1 1 0 010-2h4z"/>
|
|
</svg>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Quick Stats -->
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-4">Quick Stats</h3>
|
|
<div class="space-y-3">
|
|
{% if movie.watch_count %}
|
|
<div class="flex justify-between items-center">
|
|
<span class="text-gray-600">Watch Count</span>
|
|
<span class="font-medium">{{ movie.watch_count }}</span>
|
|
</div>
|
|
{% endif %}
|
|
<div class="flex justify-between items-center">
|
|
<span class="text-gray-600">Source</span>
|
|
<span class="font-medium">{{ movie.source_name }}</span>
|
|
</div>
|
|
{% if movie.file_size %}
|
|
<div class="flex justify-between items-center">
|
|
<span class="text-gray-600">File Size</span>
|
|
<span class="font-medium">{{ movie.file_size|filesizeformat }}</span>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Main Details -->
|
|
<div class="lg:col-span-2 space-y-8">
|
|
<!-- Overview -->
|
|
{% if movie.overview %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h2 class="text-2xl font-bold text-gray-900 mb-4">Overview</h2>
|
|
<p class="text-gray-700 leading-relaxed">{{ movie.overview }}</p>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Cast & Crew -->
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h2 class="text-2xl font-bold text-gray-900 mb-6">Cast & Crew</h2>
|
|
|
|
<!-- Director and Writer -->
|
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
|
|
{% if movie.director %}
|
|
<div class="flex items-start">
|
|
<div class="bg-blue-100 rounded-full p-3 mr-4">
|
|
<svg class="text-blue-600" width="24" height="24" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"/>
|
|
</svg>
|
|
</div>
|
|
<div>
|
|
<h3 class="font-semibold text-gray-900">Director</h3>
|
|
<p class="text-gray-600">{{ movie.director }}</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if movie.writer %}
|
|
<div class="flex items-start">
|
|
<div class="bg-green-100 rounded-full p-3 mr-4">
|
|
<svg class="text-green-600" width="24" height="24" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"/>
|
|
</svg>
|
|
</div>
|
|
<div>
|
|
<h3 class="font-semibold text-gray-900">Writer</h3>
|
|
<p class="text-gray-600">{{ movie.writer }}</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<!-- Cast -->
|
|
{% if movie.cast %}
|
|
<div>
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-4">Cast</h3>
|
|
<div class="flex flex-wrap gap-2">
|
|
{% for actor in movie.cast|split(',') %}
|
|
<span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-gray-100 text-gray-800">{{ actor|trim }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Performers with thumbnails -->
|
|
{% if actors %}
|
|
<div class="mt-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-4">Performers</h3>
|
|
<div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-4">
|
|
{% for actor in actors %}
|
|
<a href="{{ path_for('actors.show', {'id': actor.id}) }}" class="flex flex-col items-center hover:bg-gray-50 rounded-lg p-2 transition-colors">
|
|
{% if actor.thumbnail_path %}
|
|
<img src="{{ actor.thumbnail_path }}" alt="{{ actor.name }}" class="w-16 h-16 rounded-full object-cover mb-2">
|
|
{% else %}
|
|
<div class="w-16 h-16 bg-gradient-to-br from-blue-400 to-purple-500 rounded-full flex items-center justify-center mb-2">
|
|
<span class="text-white font-medium text-sm">{{ actor.name|first|upper }}</span>
|
|
</div>
|
|
{% endif %}
|
|
<p class="text-xs text-gray-600 text-center">{{ actor.name }}</p>
|
|
</a>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<!-- Details Grid -->
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
|
<!-- Genres -->
|
|
{% if movie.genre %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-4">Genres</h3>
|
|
<div class="flex flex-wrap gap-2">
|
|
{% for genre in movie.genre|split(',') %}
|
|
<span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-blue-100 text-blue-800">{{ genre|trim }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Categories -->
|
|
{% if movie.categories %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-4">Categories</h3>
|
|
<div class="flex flex-wrap gap-2">
|
|
{% for category in movie.categories|split(',') %}
|
|
<span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-green-100 text-green-800">{{ category|trim }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Technical Details -->
|
|
{% if movie.video_codec or movie.audio_codec or movie.resolution %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-4">Technical</h3>
|
|
{% if movie.video_codec %}
|
|
<div class="mb-3">
|
|
<p class="text-sm text-gray-600 mb-1">Video Codec</p>
|
|
<p class="font-medium">{{ movie.video_codec }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if movie.audio_codec %}
|
|
<div class="mb-3">
|
|
<p class="text-sm text-gray-600 mb-1">Audio Codec</p>
|
|
<p class="font-medium">{{ movie.audio_codec }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if movie.resolution %}
|
|
<div>
|
|
<p class="text-sm text-gray-600 mb-1">Resolution</p>
|
|
<p class="font-medium">{{ movie.resolution }}</p>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
|
|
<!-- Production Info -->
|
|
{% if movie.studio or movie.production_companies %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h2 class="text-2xl font-bold text-gray-900 mb-4">Production</h2>
|
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
|
{% if movie.studio %}
|
|
<div class="flex items-start">
|
|
<div class="bg-purple-100 rounded-full p-3 mr-4">
|
|
<svg class="text-purple-600" width="24" height="24" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"/>
|
|
</svg>
|
|
</div>
|
|
<div>
|
|
<h3 class="font-semibold text-gray-900">Studio</h3>
|
|
<p class="text-gray-600">{{ movie.studio }}</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if movie.production_companies %}
|
|
<div class="flex items-start">
|
|
<div class="bg-indigo-100 rounded-full p-3 mr-4">
|
|
<svg class="text-indigo-600" width="24" height="24" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4"/>
|
|
</svg>
|
|
</div>
|
|
<div>
|
|
<h3 class="font-semibold text-gray-900">Production Company</h3>
|
|
<p class="text-gray-600">{{ movie.production_companies }}</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Technical Details & Metadata -->
|
|
{% if metadata %}
|
|
<div class="space-y-6">
|
|
<h2 class="text-2xl font-bold text-gray-900">Technical Details & Metadata</h2>
|
|
|
|
<!-- Source Info -->
|
|
{% if metadata.source %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-blue-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"/>
|
|
</svg>
|
|
Source Information
|
|
</h3>
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<code class="text-sm text-gray-800 font-mono">{{ metadata.source }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- File Details -->
|
|
{% if metadata.file_path or metadata.file_size %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-green-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
|
|
</svg>
|
|
File Information
|
|
</h3>
|
|
<div class="space-y-3">
|
|
{% if metadata.file_path %}
|
|
<div>
|
|
<p class="text-sm font-medium text-gray-700 mb-1">File Path</p>
|
|
<div class="bg-gray-50 rounded-lg p-3 overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.file_path }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.file_size %}
|
|
<div>
|
|
<p class="text-sm font-medium text-gray-700 mb-1">File Size</p>
|
|
<p class="font-medium">{{ metadata.file_size|filesizeformat }}</p>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Video Details -->
|
|
{% if metadata.video_codec or metadata.audio_codec or metadata.resolution %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-purple-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"/>
|
|
</svg>
|
|
Video Details
|
|
</h3>
|
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
|
{% if metadata.video_codec %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Video Codec</p>
|
|
<p class="font-medium">{{ metadata.video_codec }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.audio_codec %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Audio Codec</p>
|
|
<p class="font-medium">{{ metadata.audio_codec }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.resolution %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Resolution</p>
|
|
<p class="font-medium">{{ metadata.resolution }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.bitrate %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Bitrate</p>
|
|
<p class="font-medium">{{ metadata.bitrate }} kbps</p>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{{ dump(movie.metadata.source)}}
|
|
|
|
<!-- Stash Metadata Cards -->
|
|
{% if movie.metadata.source == 'stash' %}
|
|
<!-- Stash ID and URL -->
|
|
{% if movie.metadata.stash_id %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-blue-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"/>
|
|
</svg>
|
|
Stash Information
|
|
</h3>
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Stash ID</p>
|
|
<p class="font-medium font-mono">{{ metadata.stash_id }}</p>
|
|
</div>
|
|
{% if metadata.stash_url %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Stash URL</p>
|
|
<a href="{{ metadata.stash_url }}" target="_blank" class="text-blue-600 hover:text-blue-800 font-medium break-all">{{ metadata.stash_url }}</a>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.organized is defined %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Organized</p>
|
|
<p class="font-medium">{{ metadata.organized ? 'Yes' : 'No' }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.o_counter is defined %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Organization Counter</p>
|
|
<p class="font-medium">{{ metadata.o_counter }}</p>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Stash Performers -->
|
|
{% if metadata.performers %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-pink-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"/>
|
|
</svg>
|
|
Performers
|
|
</h3>
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4">
|
|
{% for performer in metadata.performers %}
|
|
<div class="bg-gray-50 rounded-lg p-4">
|
|
<div class="flex items-center mb-3">
|
|
{% if performer.image_path %}
|
|
<img src="{{ performer.image_path }}" alt="{{ performer.name }}" class="w-12 h-12 rounded-full object-cover mr-3">
|
|
{% else %}
|
|
<div class="w-12 h-12 bg-gradient-to-br from-pink-400 to-purple-500 rounded-full flex items-center justify-center mr-3">
|
|
<span class="text-white font-medium text-sm">{{ performer.name|first|upper }}</span>
|
|
</div>
|
|
{% endif %}
|
|
<div>
|
|
<h4 class="font-semibold text-gray-900">{{ performer.name }}</h4>
|
|
{% if performer.gender %}
|
|
<p class="text-xs text-gray-600">{{ performer.gender }}</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<div class="space-y-2 text-sm">
|
|
{% if performer.birthdate %}
|
|
<div class="flex justify-between">
|
|
<span class="text-gray-600">Birthdate:</span>
|
|
<span>{{ performer.birthdate }}</span>
|
|
</div>
|
|
{% endif %}
|
|
{% if performer.ethnicity %}
|
|
<div class="flex justify-between">
|
|
<span class="text-gray-600">Ethnicity:</span>
|
|
<span>{{ performer.ethnicity }}</span>
|
|
</div>
|
|
{% endif %}
|
|
{% if performer.country %}
|
|
<div class="flex justify-between">
|
|
<span class="text-gray-600">Country:</span>
|
|
<span>{{ performer.country }}</span>
|
|
</div>
|
|
{% endif %}
|
|
{% if performer.height_cm %}
|
|
<div class="flex justify-between">
|
|
<span class="text-gray-600">Height:</span>
|
|
<span>{{ performer.height_cm }}cm</span>
|
|
</div>
|
|
{% endif %}
|
|
{% if performer.measurements %}
|
|
<div class="flex justify-between">
|
|
<span class="text-gray-600">Measurements:</span>
|
|
<span>{{ performer.measurements }}</span>
|
|
</div>
|
|
{% endif %}
|
|
{% if performer.career_length %}
|
|
<div class="flex justify-between">
|
|
<span class="text-gray-600">Career:</span>
|
|
<span>{{ performer.career_length }}</span>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Stash File Info -->
|
|
{% if metadata.file_info %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-green-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
|
|
</svg>
|
|
File Information
|
|
</h3>
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
|
|
{% if metadata.file_info.size %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">File Size</p>
|
|
<p class="font-medium">{{ metadata.file_info.size|filesizeformat }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.file_info.duration %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Duration</p>
|
|
<p class="font-medium">{{ (metadata.file_info.duration / 3600)|round(1) }}h {{ ((metadata.file_info.duration % 3600) / 60)|round(0) }}m</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.file_info.video_codec %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Video Codec</p>
|
|
<p class="font-medium">{{ metadata.file_info.video_codec }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.file_info.audio_codec %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Audio Codec</p>
|
|
<p class="font-medium">{{ metadata.file_info.audio_codec }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.file_info.width and metadata.file_info.height %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Resolution</p>
|
|
<p class="font-medium">{{ metadata.file_info.width }}x{{ metadata.file_info.height }}</p>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Stash Paths -->
|
|
{% if metadata.paths %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-purple-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"/>
|
|
</svg>
|
|
Media Paths
|
|
</h3>
|
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
|
{% if metadata.paths.stream %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Stream URL</p>
|
|
<div class="overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.paths.stream }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.paths.preview %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Preview URL</p>
|
|
<div class="overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.paths.preview }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.paths.webp %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">WebP URL</p>
|
|
<div class="overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.paths.webp }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.paths.vtt %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">VTT URL</p>
|
|
<div class="overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.paths.vtt }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.paths.caption %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Caption URL</p>
|
|
<div class="overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.paths.caption }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.paths.funscript %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Funscript URL</p>
|
|
<div class="overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.paths.funscript }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.paths.sprite %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Sprite URL</p>
|
|
<div class="overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.paths.sprite }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- Stash Image URLs -->
|
|
{% if metadata.cover_url or metadata.screenshot_url %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-orange-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"/>
|
|
</svg>
|
|
Image URLs
|
|
</h3>
|
|
<div class="space-y-3">
|
|
{% if metadata.cover_url %}
|
|
<div>
|
|
<p class="text-sm font-medium text-gray-700 mb-1">Cover URL</p>
|
|
<div class="bg-gray-50 rounded-lg p-3 overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.cover_url }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.screenshot_url %}
|
|
<div>
|
|
<p class="text-sm font-medium text-gray-700 mb-1">Screenshot URL</p>
|
|
<div class="bg-gray-50 rounded-lg p-3 overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.screenshot_url }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.local_cover_path %}
|
|
<div>
|
|
<p class="text-sm font-medium text-gray-700 mb-1">Local Cover Path</p>
|
|
<div class="bg-gray-50 rounded-lg p-3 overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.local_cover_path }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.local_screenshot_path %}
|
|
<div>
|
|
<p class="text-sm font-medium text-gray-700 mb-1">Local Screenshot Path</p>
|
|
<div class="bg-gray-50 rounded-lg p-3 overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.local_screenshot_path }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- XBVR Metadata Cards -->
|
|
{% elseif metadata.source == 'xbvr' %}
|
|
<!-- XBVR ID and URL -->
|
|
{% if metadata.xbvr_id %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-blue-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"/>
|
|
</svg>
|
|
XBVR Information
|
|
</h3>
|
|
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">XBVR ID</p>
|
|
<p class="font-medium font-mono">{{ metadata.xbvr_id }}</p>
|
|
</div>
|
|
{% if metadata.xbvr_url %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">XBVR URL</p>
|
|
<a href="{{ metadata.xbvr_url }}" target="_blank" class="text-blue-600 hover:text-blue-800 font-medium break-all">{{ metadata.xbvr_url }}</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- XBVR Cast -->
|
|
{% if metadata.cast %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-pink-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"/>
|
|
</svg>
|
|
Cast
|
|
</h3>
|
|
<div class="flex flex-wrap gap-2">
|
|
{% for actor in metadata.cast %}
|
|
<span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-pink-100 text-pink-800">{{ actor }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- XBVR Tags -->
|
|
{% if metadata.tags %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-green-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 7h.01M7 3h5c.512 0 1.024.195 1.414.586l7 7a2 2 0 010 2.828l-7 7a2 2 0 01-2.828 0l-7-7A1.994 1.994 0 013 12V7a4 4 0 014-4z"/>
|
|
</svg>
|
|
Tags
|
|
</h3>
|
|
<div class="flex flex-wrap gap-2">
|
|
{% for tag in metadata.tags %}
|
|
<span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-green-100 text-green-800">{{ tag }}</span>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- XBVR Video Details -->
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-purple-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 10l4.553-2.276A1 1 0 0121 8.618v6.764a1 1 0 01-1.447.894L15 14M5 18h8a2 2 0 002-2V8a2 2 0 00-2-2H5a2 2 0 00-2 2v8a2 2 0 002 2z"/>
|
|
</svg>
|
|
Video Details
|
|
</h3>
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
|
|
{% if metadata.video_length %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Duration</p>
|
|
<p class="font-medium">{{ (metadata.video_length / 3600)|round(1) }}h {{ ((metadata.video_length % 3600) / 60)|round(0) }}m</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.video_width and metadata.video_height %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Resolution</p>
|
|
<p class="font-medium">{{ metadata.video_width }}x{{ metadata.video_height }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.video_codec %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Video Codec</p>
|
|
<p class="font-medium">{{ metadata.video_codec }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.paysite %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Paysite</p>
|
|
<p class="font-medium">{{ metadata.paysite }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.is3d is defined %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">3D</p>
|
|
<p class="font-medium">{{ metadata.is3d ? 'Yes' : 'No' }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.deoVR_format is defined %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">DeoVR Format</p>
|
|
<p class="font-medium">{{ metadata.deoVR_format ? 'Yes' : 'No' }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.screenType %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Screen Type</p>
|
|
<p class="font-medium">{{ metadata.screenType }}</p>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.stereoMode %}
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Stereo Mode</p>
|
|
<p class="font-medium">{{ metadata.stereoMode }}</p>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
<!-- XBVR File Information -->
|
|
{% if metadata.file_path %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-green-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
|
|
</svg>
|
|
File Information
|
|
</h3>
|
|
<div class="space-y-3">
|
|
{% if metadata.file_path %}
|
|
<div>
|
|
<p class="text-sm font-medium text-gray-700 mb-1">File Path</p>
|
|
<div class="bg-gray-50 rounded-lg p-3 overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.file_path }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- XBVR Image URLs -->
|
|
{% if metadata.cover_url or metadata.screenshot_url %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-orange-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"/>
|
|
</svg>
|
|
Image URLs
|
|
</h3>
|
|
<div class="space-y-3">
|
|
{% if metadata.cover_url %}
|
|
<div>
|
|
<p class="text-sm font-medium text-gray-700 mb-1">Cover URL</p>
|
|
<div class="bg-gray-50 rounded-lg p-3 overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.cover_url }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.screenshot_url %}
|
|
<div>
|
|
<p class="text-sm font-medium text-gray-700 mb-1">Screenshot URL</p>
|
|
<div class="bg-gray-50 rounded-lg p-3 overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.screenshot_url }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.local_cover_path %}
|
|
<div>
|
|
<p class="text-sm font-medium text-gray-700 mb-1">Local Cover Path</p>
|
|
<div class="bg-gray-50 rounded-lg p-3 overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.local_cover_path }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.local_screenshot_path %}
|
|
<div>
|
|
<p class="text-sm font-medium text-gray-700 mb-1">Local Screenshot Path</p>
|
|
<div class="bg-gray-50 rounded-lg p-3 overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.local_screenshot_path }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
<!-- XBVR Availability -->
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-orange-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"/>
|
|
</svg>
|
|
Availability
|
|
</h3>
|
|
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4">
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Available</p>
|
|
<p class="font-medium">{{ metadata.is_available ? 'Yes' : 'No' }}</p>
|
|
</div>
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Watched</p>
|
|
<p class="font-medium">{{ metadata.is_watched ? 'Yes' : 'No' }}</p>
|
|
</div>
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Watch Count</p>
|
|
<p class="font-medium">{{ metadata.watch_count }}</p>
|
|
</div>
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Full Access</p>
|
|
<p class="font-medium">{{ metadata.fullAccess ? 'Yes' : 'No' }}</p>
|
|
</div>
|
|
<div class="bg-gray-50 rounded-lg p-3">
|
|
<p class="text-sm text-gray-600 mb-1">Full Video Ready</p>
|
|
<p class="font-medium">{{ metadata.fullVideoReady ? 'Yes' : 'No' }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% else %}
|
|
<!-- Image URLs -->
|
|
{% if metadata.poster_url or metadata.backdrop_url %}
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<h3 class="text-lg font-semibold text-gray-900 mb-3 flex items-center">
|
|
<svg class="mr-2 text-orange-600" width="20" height="20" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"/>
|
|
</svg>
|
|
Image URLs
|
|
</h3>
|
|
<div class="space-y-3">
|
|
{% if metadata.poster_url %}
|
|
<div>
|
|
<p class="text-sm font-medium text-gray-700 mb-1">Poster URL</p>
|
|
<div class="bg-gray-50 rounded-lg p-3 overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.poster_url }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% if metadata.backdrop_url %}
|
|
<div>
|
|
<p class="text-sm font-medium text-gray-700 mb-1">Backdrop URL</p>
|
|
<div class="bg-gray-50 rounded-lg p-3 overflow-x-auto">
|
|
<code class="text-xs text-gray-800 font-mono break-all">{{ metadata.backdrop_url }}</code>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
<!-- Raw Metadata (Collapsible) -->
|
|
<div class="bg-white rounded-xl shadow-lg p-6">
|
|
<details class="group">
|
|
<summary class="cursor-pointer flex items-center text-gray-700 hover:text-gray-900 transition-colors">
|
|
<svg class="mr-2 group-open:rotate-90 transition-transform" width="16" height="16" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"/>
|
|
</svg>
|
|
<span class="font-medium">Full Raw Metadata</span>
|
|
</summary>
|
|
<div class="mt-4 bg-gray-50 rounded-lg p-4 overflow-x-auto">
|
|
<pre class="text-xs text-gray-800 whitespace-pre-wrap"><code>{{ metadata|json_encode(constant('JSON_PRETTY_PRINT')) }}</code></pre>
|
|
</div>
|
|
</details>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|