Skip to content

Commit

Permalink
Merge pull request #39 from Anthonyy232/main
Browse files Browse the repository at this point in the history
Fix for nil concatenation error
  • Loading branch information
zydezu authored Aug 1, 2024
2 parents 07dba02 + d62c519 commit 95f6123
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions modernx.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1693,8 +1693,12 @@ function exec_dislikes(args, result)
state.dislikes = ""
end

if (user_opts.showdescription and not state.descriptionLoaded) then
state.localDescriptionClick = state.localDescriptionClick .. '\\N' .. state.dislikes
if (not state.descriptionLoaded) then
if state.localDescriptionClick then
state.localDescriptionClick = state.localDescriptionClick .. '\\N' .. state.dislikes
else
state.localDescriptionClick = state.dislikes
end
state.videoDescription = state.localDescriptionClick
else
addLikeCountToTitle()
Expand Down Expand Up @@ -3963,4 +3967,4 @@ end)

set_virt_mouse_area(0, 0, 0, 0, 'input')
set_virt_mouse_area(0, 0, 0, 0, 'window-controls')
mp.set_property("title", "mpv")
mp.set_property("title", "mpv")

0 comments on commit 95f6123

Please sign in to comment.