File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,10 @@ Please note that many of these scripts have been slightly modified from their in
32
32
33
33
## Updates
34
34
35
+ ### 2025-01-10
36
+
37
+ - FIX: fix modernx.lua crashing if playing a live radio (m3u8 file)
38
+
35
39
### 2025-01-09
36
40
37
41
- Re-add ` key_bindings ` in ` modernx.lua `
Original file line number Diff line number Diff line change @@ -1833,10 +1833,14 @@ function exec_description(args, result)
1833
1833
if afterLastPattern then
1834
1834
if (select (2 , afterLastPattern :gsub (" \\ N" , " " )) == 1 ) then -- get rid of last | if there's only one item
1835
1835
-- print("Erasing last item")
1836
- tempDesc = tempDesc :gsub (" | " , " " )
1837
- state .videoDescription = tempDesc .. " | " ..
1838
- mp .get_property (" width" ) .. " x" .. mp .get_property (" height" ) .. " | FPS: " ..
1839
- math.floor (mp .get_property_number (" estimated-vf-fps" ) + 0.5 ) -- can't get a normal description, display something else
1836
+ if mp .get_property_number (" estimated-vf-fps" ) then
1837
+ tempDesc = tempDesc :gsub (" | " , " " )
1838
+ state .videoDescription = tempDesc .. " | " ..
1839
+ mp .get_property (" width" ) .. " x" .. mp .get_property (" height" ) .. " | FPS: " ..
1840
+ math.floor (mp .get_property_number (" estimated-vf-fps" ) + 0.5 ) or " " -- can't get a normal description, display something else
1841
+ else
1842
+ state .videoDescription = " No description"
1843
+ end
1840
1844
end
1841
1845
end
1842
1846
You can’t perform that action at this time.
0 commit comments