✨ Features: - App iOS completa para leer manga sin publicidad - Scraper con WKWebView para manhwaweb.com - Sistema de descargas offline - Lector con zoom y navegación - Favoritos y progreso de lectura - Compatible con iOS 15+ y Sideloadly/3uTools 📦 Contenido: - Backend Node.js con Puppeteer (opcional) - App iOS con SwiftUI - Scraper de capítulos e imágenes - Sistema de almacenamiento local - Testing completo - Documentación exhaustiva 🧪 Prueba: Capítulo 789 de One Piece descargado exitosamente - 21 páginas descargadas - 4.68 MB total - URLs verificadas y funcionales 🎉 Generated with Claude Code (https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
29 lines
681 B
JavaScript
29 lines
681 B
JavaScript
"use strict";
|
|
|
|
import stream from "stream";
|
|
|
|
class ZlibHeaderTransformStream extends stream.Transform {
|
|
__transform(chunk, encoding, callback) {
|
|
this.push(chunk);
|
|
callback();
|
|
}
|
|
|
|
_transform(chunk, encoding, callback) {
|
|
if (chunk.length !== 0) {
|
|
this._transform = this.__transform;
|
|
|
|
// Add Default Compression headers if no zlib headers are present
|
|
if (chunk[0] !== 120) { // Hex: 78
|
|
const header = Buffer.alloc(2);
|
|
header[0] = 120; // Hex: 78
|
|
header[1] = 156; // Hex: 9C
|
|
this.push(header, encoding);
|
|
}
|
|
}
|
|
|
|
this.__transform(chunk, encoding, callback);
|
|
}
|
|
}
|
|
|
|
export default ZlibHeaderTransformStream;
|