Eisa01 / mpv-scripts

This repository contain scripts I have made for mpv media player...
BSD 2-Clause "Simplified" License
504 stars 35 forks source link

fix nil values #59

Closed dyphire closed 1 year ago

Eisa01 commented 1 year ago

Did you encounter an issue that required a check for nil within mark_chapter function?

dyphire commented 1 year ago

Did you encounter an issue that required a check for nil within mark_chapter function?

When use mark_*_as_chapter=yes option, If the log_file does not exist, the script will crash due to nil values. The pr will fix this bug.

dyphire commented 1 year ago

The check needs an additional or statement for list_contents[1]: if not list_contents or not list_contents[1] then return end

Done.