IPTV / fix_format2.js
Hamza-Alobeidli's picture
Upload 8009 files
a2f457e verified
Raw History Blame Contribute Delete
382 Bytes
import fs from 'fs';
let content = fs.readFileSync('App.tsx', 'utf8');
// Replace the default '.m3u8' with '.ts' to match the user request
content = content.replace(/localStorage.getItem\('hydra_stream_format'\) \|\| '\.m3u8'/g, "localStorage.getItem('hydra_stream_format') || '.ts'");
content = content.replace(/ \: '\.m3u8'/g, " : '.ts'");
fs.writeFileSync('App.tsx', content);