mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-14 05:06:16 -08:00
refactor: code style improvements
This commit is contained in:
1 parent
44a110c585
commit
4d408fb484
3 files changed
+51
-68
No files matched your search
@@ -13,7 +13,7 @@ export function aggregateFavoriteChannels(playlists: Playlist[]): Channel[] {
|
||||
const favorites = [];
|
||||
playlists.forEach((playlist) => {
|
||||
if (playlist.favorites?.length > 0) {
|
||||
playlist.playlist.items.forEach((channel) => {
|
||||
playlist?.playlist?.items.forEach((channel) => {
|
||||
if (
|
||||
playlist.favorites.includes(channel.id) ||
|
||||
playlist.favorites.includes(channel.url)
|
||||
|
||||
Reference in new issue
Block a user