feat: Add series TV support with Vidzy HLS downloads and duplicate prevention

Major improvements:
- Series TV support via FS7 provider with dedicated search endpoint
- Vidzy downloader now uses Playwright for JS obfuscation and ffmpeg for HLS streams
- Episode filenames properly named (Series Title - Episode X) instead of master.m3u8.mp4
- Duplicate download prevention: checks existing tasks before creating new ones
- Removed host preference system in favor of intelligent URL-based detection

Technical changes:
- Vidzy: Added Playwright extraction and M3U8→MP4 conversion with ffmpeg
- FS7: Episodes now use pipe format (video_url|series_url|episode_title)
- DownloadManager: Extract target_filename from pipe URL and prevent duplicates
- UI: New Series tab with search, recommendations, and releases sections
- Anime-Sama: Removed hardcoded host preferences, uses site's URL order

Generated with [Claude Code](https://claude.com/claude-code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
root
2026-01-25 20:42:29 +00:00
parent 5e50081b58
commit c1c31d7685
17 changed files with 938 additions and 219 deletions
@@ -1,32 +0,0 @@
{# Template pour un onglet de provider anime spécifique #}
{# Variables disponibles: provider_id, provider_info #}
<div id="tab-anime-{{ provider_id }}" class="tab-content">
<div class="url-form">
<div class="anime-input-group">
<input
type="text"
id="searchInput-{{ provider_id }}"
placeholder="Rechercher un anime sur {{ provider_info.name }}..."
onkeypress="if(event.key === 'Enter') searchAnimeProvider('{{ provider_id }}')"
>
<select id="langSelect-{{ provider_id }}" style="max-width: 120px;">
<option value="vostfr">VOSTFR</option>
<option value="vf">VF</option>
</select>
<button type="button" class="btn-primary" onclick="searchAnimeProvider('{{ provider_id }}')">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
</svg>
Rechercher
</button>
</div>
<div style="display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13px; color: #888;">
<input type="checkbox" id="includeMetadata-{{ provider_id }}" style="width: auto; margin: 0;">
<label for="includeMetadata-{{ provider_id }}" style="cursor: pointer; user-select: none;">
📊 Inclure les métadonnées
</label>
</div>
</div>
<div id="searchResults-{{ provider_id }}" class="search-results"></div>
</div>
-28
View File
@@ -1,28 +0,0 @@
<!-- Direct Download Tab -->
<div id="tab-direct" class="tab-content">
<div class="url-form">
<form id="downloadForm">
<div class="input-group">
<input
type="text"
id="urlInput"
placeholder="Collez le lien de téléchargement ici..."
required
>
<button type="submit" class="btn-primary">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4"></path>
</svg>
Télécharger
</button>
</div>
</form>
<div class="supported-hosts">
<span class="host-badge">1fichier</span>
<span class="host-badge">Doodstream</span>
<span class="host-badge">Rapidfile</span>
<span class="host-badge">Anime-Sama</span>
<span class="host-badge">Anime-Ultime</span>
</div>
</div>
</div>
-6
View File
@@ -9,12 +9,6 @@
</svg>
Accueil
</button>
<button class="tab" data-tab-type="search" onclick="switchTab('search')">
<svg style="width:16px;height:16px;vertical-align:middle;margin-right:5px" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
</svg>
Recherche
</button>
<button class="tab" data-tab-type="anime" onclick="switchTab('anime')">
<svg style="width:16px;height:16px;vertical-align:middle;margin-right:5px" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"></path>
-24
View File
@@ -1,24 +0,0 @@
<!-- Search Tab -->
<div id="tab-search" class="tab-content">
<div class="url-form">
<div class="input-group">
<input
type="text"
id="searchInput"
placeholder="Rechercher un anime (ex: Frieren, One Piece...)"
>
<button type="button" class="btn-primary" onclick="handleSearch()">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path>
</svg>
Rechercher
</button>
</div>
<div style="margin-top: 10px; padding: 10px; background: rgba(0, 217, 255, 0.1); border-radius: 8px; font-size: 12px; color: #aaa;">
💡 <strong>Info:</strong> La recherche utilise MyAnimeList pour afficher la fiche complète de l'anime (synopsis, saisons, etc.) et trouve les sources de streaming disponibles.
</div>
</div>
<!-- Anime details and streaming results -->
<div id="animeSearchResults"></div>
</div>