mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 02:35:42 -04:00
build: populate channel urls from gitea repo
This commit is contained in:
@@ -1570,7 +1570,8 @@ async function serveM3U( res, req )
|
|||||||
chalk.blueBright( `<to>` ), chalk.gray( `${ baseUrl }/channel?url=${ encodeURIComponent( fullUrl ) }` ) );
|
chalk.blueBright( `<to>` ), chalk.gray( `${ baseUrl }/channel?url=${ encodeURIComponent( fullUrl ) }` ) );
|
||||||
|
|
||||||
return `${ baseUrl }/channel?url=${ encodeURIComponent( fullUrl ) }`;
|
return `${ baseUrl }/channel?url=${ encodeURIComponent( fullUrl ) }`;
|
||||||
})
|
});
|
||||||
|
/*
|
||||||
.replace( /(https?:\/\/fl\d+\.moveonjoy\.com[^\s]*)/g, ( fullUrl ) =>
|
.replace( /(https?:\/\/fl\d+\.moveonjoy\.com[^\s]*)/g, ( fullUrl ) =>
|
||||||
{
|
{
|
||||||
const urlRewrite = fullUrl.replace( /fl\d+\.moveonjoy\.com/, 'fl25.moveonjoy.com' );
|
const urlRewrite = fullUrl.replace( /fl\d+\.moveonjoy\.com/, 'fl25.moveonjoy.com' );
|
||||||
@@ -1582,6 +1583,7 @@ async function serveM3U( res, req )
|
|||||||
|
|
||||||
return `${ urlRewrite }`;
|
return `${ urlRewrite }`;
|
||||||
});
|
});
|
||||||
|
*/
|
||||||
|
|
||||||
res.writeHead( 200, {
|
res.writeHead( 200, {
|
||||||
'Content-Type': 'application/x-mpegURL',
|
'Content-Type': 'application/x-mpegURL',
|
||||||
|
|||||||
Reference in New Issue
Block a user