You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not exactly sure why i got the error after pressing right arrow key until i reached the 'episodes' part of jellyfin. from the console, the problematic part seems to be here:
localfunctionupdate_list()
overlay.data=""localmagic_num=29-- constlist_start[layer] =list_start[layer] or1-- this one line fixed my "attempt to perform arithmetic on a nil value" errorifselection[layer] -list_start[layer] >magic_numthen-- errored herelist_start[layer] =selection[layer] -magic_numelseifselection[layer] -list_start[layer] <0thenlist_start[layer] =selection[layer]
endfori=list_start[layer],list_start[layer]+magic_numdoifi>#itemsthenbreakendlocalindex=""ifitems[i].IndexNumberanditems[i].IsFolder==falsethenindex=items[i].IndexNumber..". "else-- nothingendifi==selection[layer] thenoverlay.data=overlay.data.."{\\fs16}{\\c&HFF&}"..index..items[i].Name.."\n"elseoverlay.data=overlay.data.."{\\fs16}"..index..items[i].Name.."\n"endendoverlay:update()
end
EDIT:
Seems like the amount of folders and lack of arrays in list_layer caused it to give the error.
For example: Folder1 -> Folder2 -> Folder3 wouldn't produce the error as there are indeed 3 arrays.
Folder1 -> Folder2 -> Folder3 -> Folder4 would give a nil error since there are only 3 arrays, yet 4 layers(?)
So, by adding arrays as needed seems to have fixed it:
if#list_start<layerthentable.insert(list_start, 1) end
The text was updated successfully, but these errors were encountered:
Not exactly sure why i got the error after pressing
right arrow
key until i reached the 'episodes' part of jellyfin. from the console, the problematic part seems to be here:EDIT:
Seems like the amount of folders and lack of arrays in
list_layer
caused it to give the error.For example:
Folder1
->Folder2
->Folder3
wouldn't produce the error as there are indeed 3 arrays.Folder1
->Folder2
->Folder3
->Folder4
would give anil
error since there are only 3 arrays, yet 4 layers(?)So, by adding arrays as needed seems to have fixed it:
The text was updated successfully, but these errors were encountered: