diff --git a/frontend/src/components/forms/M3U.jsx b/frontend/src/components/forms/M3U.jsx index 3d55d31b..450107c5 100644 --- a/frontend/src/components/forms/M3U.jsx +++ b/frontend/src/components/forms/M3U.jsx @@ -201,223 +201,225 @@ const M3U = ({ } return ( - - + <> + + -
- - - - - - + Standard for direct M3U URLs,
+ Xtream Codes for panel-based services + + } + data={[ + { + value: 'STD', + label: 'Standard', + }, + { + value: 'XC', + label: 'Xtream Codes', + }, + ]} + key={form.key('account_type')} + {...form.getInputProps('account_type')} + /> - - + {form.getValues().account_type == 'XC' && ( + + {!m3uAccount && ( + + Create EPG + + + )} - ({ + label: ua.name, + value: `${ua.id}`, + })) + )} + /> - - - {playlist && ( - <> - setProfileModalOpen(false)} - /> - - - - )} - -
+ + How often to automatically refresh M3U data +
+ (0 to disable automatic refreshes) + + } + {...form.getInputProps('refresh_interval')} + key={form.key('refresh_interval')} + /> + + + + + + + + + {playlist && ( + <> + + + + + )} + + + + +
+ {playlist && ( + <> + setProfileModalOpen(false)} + /> + + + + )} + ); }; diff --git a/frontend/src/components/tables/M3UsTable.jsx b/frontend/src/components/tables/M3UsTable.jsx index c71789f2..d72fbeb4 100644 --- a/frontend/src/components/tables/M3UsTable.jsx +++ b/frontend/src/components/tables/M3UsTable.jsx @@ -803,7 +803,12 @@ const M3UTable = () => { return ( { padding: 0, // gap: 1, }} - > - + >