mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 02:35:42 -04:00
fix(m3u): source 3 offline due to dns change
This commit is contained in:
@@ -1692,12 +1692,12 @@ async function serveM3U( res, req )
|
||||
|
||||
return `${ baseUrl }/channel?url=${ encodeURIComponent( fullUrl ) }`;
|
||||
})
|
||||
.replace( /(https?:\/\/[^\s]*fl2.moveonjoy[^\s]*)/g, ( fullUrl ) =>
|
||||
.replace( /(https?:\/\/fl\d+\.moveonjoy\.com[^\s]*)/g, ( fullUrl ) =>
|
||||
{
|
||||
const urlRewrite = fullUrl.replace( 'fl2.moveonjoy', 'fl6.moveonjoy' );
|
||||
const urlRewrite = fullUrl.replace( /fl\d+\.moveonjoy\.com/, 'fl25.moveonjoy.com' );
|
||||
Log.debug( `.m3u`, chalk.yellow( `[rewriter]` ), chalk.white( `⚙️` ),
|
||||
chalk.blueBright( `<msg>` ), chalk.gray( `Rewriting url for keyword` ),
|
||||
chalk.blueBright( `<keyword>` ), chalk.gray( `*fl2.moveonjoy` ),
|
||||
chalk.blueBright( `<keyword>` ), chalk.gray( `*fl1.moveonjoy` ),
|
||||
chalk.blueBright( `<from>` ), chalk.gray( `${ fullUrl }` ),
|
||||
chalk.blueBright( `<to>` ), chalk.gray( `${ urlRewrite }` ) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user