Eisa01 / mpv-scripts

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

SmartHistory_1_5 sometimes throws an error #5

Closed gbstan closed 4 years ago

gbstan commented 4 years ago

It seems that sometimes (on youtube playlists for example) SmartHistory 1.5 throws an error.

Here is an example:


[SmartHistory_1_5] 
[SmartHistory_1_5] stack traceback:
[SmartHistory_1_5]  ...uy-bartstan/.config/mpv/scripts/SmartHistory-1.5.lua:48: in function 'handler'
[SmartHistory_1_5]  mp.defaults:460: in function 'call_event_handlers'
[SmartHistory_1_5]  mp.defaults:494: in function 'dispatch_events'
[SmartHistory_1_5]  mp.defaults:453: in function <mp.defaults:452>
[SmartHistory_1_5]  [C]: ?
[SmartHistory_1_5]  [C]: ?
[SmartHistory_1_5] Lua error: ...uy-bartstan/.config/mpv/scripts/SmartHistory-1.5.lua:48: attempt to concatenate global 'filePath' (a nil value)
gbstan commented 4 years ago

Any way I can help debug this?

Eisa01 commented 4 years ago

@gbstan Thank you for reporting the issue, however I was away for a month. The logs I believe are enough.

Can you test this version and let me know if it fixes the issue SmartHistory-1.5.1.txt rename it to .lua

gbstan commented 4 years ago

Yes, this seems to work!