Files
Lycostorrent/app/templates/admin_parsing.html
2026-03-23 20:59:26 +01:00

108 lines
4.5 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lycostorrent - Tags de Parsing</title>
<link rel="stylesheet" href="/static/css/style.css">
<link rel="stylesheet" href="/static/css/admin.css">
</head>
<body>
<div class="container">
<!-- Header -->
<header class="header">
<h1>🏷️ Tags de Parsing</h1>
<p class="subtitle">Mots-clés utilisés pour couper les titres de torrents</p>
<nav class="main-nav">
<a href="/">🔍 Recherche</a>
<a href="/latest">🎬 Nouveautés</a>
<a href="/admin/latest">⚙️ Catégories</a>
<a href="/admin/parsing" class="active">🏷️ Tags</a>
</nav>
</header>
<!-- Instructions -->
<div class="admin-info">
<h3> Comment ça marche</h3>
<p>Ces tags sont utilisés pour <strong>couper</strong> les titres de torrents avant de chercher sur TMDb/Last.fm.</p>
<p>Exemple: <code>Avatar.2009.MULTi.1080p.BluRay</code> → si "MULTi" est dans la liste, le titre sera coupé à <code>Avatar</code></p>
<p><strong>⚠️ Attention:</strong> N'ajoutez pas de mots qui pourraient être des vrais titres (ex: "Intégrale", "Complete", "Extended").</p>
</div>
<!-- Tags actuels -->
<div class="admin-section">
<h2>Tags de coupure actuels</h2>
<div class="tags-editor">
<div id="tagsList" class="tags-list-editor">
<p class="loading">Chargement...</p>
</div>
<div class="add-tag-form">
<input type="text" id="newTagInput" placeholder="Nouveau tag (ex: VOSTFR)" maxlength="30">
<button id="addTagBtn" class="btn-primary"> Ajouter</button>
</div>
</div>
<div class="config-actions">
<button id="saveTagsBtn" class="btn-primary">💾 Sauvegarder</button>
<button id="resetTagsBtn" class="btn-secondary">🔄 Réinitialiser (défaut)</button>
</div>
</div>
<!-- Présets -->
<div class="admin-section">
<h2>📦 Ajouter des présets</h2>
<p class="config-description">Cliquez pour ajouter un groupe de tags courants</p>
<div class="presets-grid">
<button class="preset-btn" data-preset="langues">
🗣️ Langues<br>
<small>VFF, VFQ, VOSTFR, FRENCH...</small>
</button>
<button class="preset-btn" data-preset="resolutions">
📺 Résolutions<br>
<small>1080p, 720p, 4K, UHD...</small>
</button>
<button class="preset-btn" data-preset="sources">
📀 Sources<br>
<small>BluRay, WEB, HDTV, REMUX...</small>
</button>
<button class="preset-btn" data-preset="codecs">
🎬 Codecs<br>
<small>x264, x265, HEVC, AV1...</small>
</button>
<button class="preset-btn" data-preset="audio">
🔊 Audio<br>
<small>DTS, AC3, FLAC, Atmos...</small>
</button>
</div>
</div>
<!-- Test -->
<div class="admin-section">
<h2>🧪 Tester le parsing</h2>
<p class="config-description">Entrez un titre de torrent pour voir le résultat du nettoyage</p>
<div class="test-form">
<input type="text" id="testTitleInput" placeholder="Ex: Avatar.2009.MULTi.1080p.BluRay.x264">
<button id="testParsingBtn" class="btn-primary">🔍 Tester</button>
</div>
<div id="testResult" class="test-result hidden">
<div class="test-original">
<strong>Original:</strong> <span id="testOriginal"></span>
</div>
<div class="test-cleaned">
<strong>Nettoyé:</strong> <span id="testCleaned"></span>
</div>
</div>
</div>
<!-- Messages -->
<div id="messageBox" class="message-box hidden"></div>
</div>
<script src="/static/js/admin_parsing.js"></script>
</body>
</html>