File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -733,6 +733,18 @@ public async Task<ActionResult<MoonfinHomeRowsResponse>> GetHomeRows(
733733 Rows = [ ]
734734 } ;
735735
736+ var rowsV2 = NormalizeRows ( resolved . HomeRowsV2 ) ;
737+ var configuredSource = string . IsNullOrWhiteSpace ( resolved . HomeRowsSource )
738+ ? null
739+ : resolved . HomeRowsSource . Trim ( ) . ToLowerInvariant ( ) ;
740+
741+ if ( configuredSource == "kefintweaks" && rowsV2 . Count > 0 )
742+ {
743+ response . Source = "kefintweaks" ;
744+ response . Rows = rowsV2 ;
745+ return Ok ( response ) ;
746+ }
747+
736748 var hssRows = await TryGetHssRowsAsync ( userId . Value , language ) ;
737749 if ( hssRows != null && hssRows . Count > 0 )
738750 {
@@ -741,10 +753,9 @@ public async Task<ActionResult<MoonfinHomeRowsResponse>> GetHomeRows(
741753 return Ok ( response ) ;
742754 }
743755
744- var rowsV2 = NormalizeRows ( resolved . HomeRowsV2 ) ;
745756 if ( rowsV2 . Count > 0 )
746757 {
747- response . Source = string . IsNullOrWhiteSpace ( resolved . HomeRowsSource ) ? "moonfin" : resolved . HomeRowsSource ;
758+ response . Source = configuredSource ?? "moonfin" ;
748759 response . Rows = rowsV2 ;
749760 return Ok ( response ) ;
750761 }
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ var Settings = {
3131 getHomeRowsSourceLabel : function ( source ) {
3232 var normalized = String ( source || '' ) . toLowerCase ( ) ;
3333 if ( normalized === 'hss' ) return 'Home Screen Sections (HSS)' ;
34+ if ( normalized === 'kefintweaks' ) return 'KefinTweaks Rows' ;
3435 if ( normalized === 'moonfin' ) return 'Moonfin Custom Rows' ;
3536 if ( normalized === 'legacy' ) return 'Legacy Jellyfin Home Order' ;
3637 return normalized ? normalized : 'Legacy Jellyfin Home Order' ;
You can’t perform that action at this time.
0 commit comments