Eisa01 / mpv-scripts

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

Attempt of loading pasted youtube video through "Clipboard" menu , that was never loaded before will lead to "SmartCopyPaste_II" exiting . #108

Open pinksquare opened 1 year ago

pinksquare commented 1 year ago

Scripts version: 25-09-2023
MPV version : 0.36.0 (Flatpak)

Steps to reproduce: 1.Open mpv and paste any random youtube link

  1. Play it
  2. Paste another youtube link
  3. Try to open it through "Clipboard" menu
  4. Try to open "Clipboard" menu .

Log: [ 41.493][d][cplayer] Run command: script-binding, flags=73, args=[name="SmartCopyPaste_II/list-select"] [ 41.493][d][cplayer] Run command: loadfile, flags=64, args=[url="https://www.youtube.com/watch?v=jVao4UdOFHk", flags="replace", options=""] [ 41.493][v][cplayer] EOF code: 3
[ 41.493][w][SmartCopyPaste_II] [ 41.493][w][SmartCopyPaste_II] stack traceback: [ 41.493][w][SmartCopyPaste_II] .../app/io.mpv.Mpv/config/mpv/scripts/SmartCopyPaste_II.lua:1251: in function 'fn' [ 41.493][w][SmartCopyPaste_II] mp.defaults:230: in function 'fn' [ 41.493][w][SmartCopyPaste_II] mp.defaults:65: in function 'handler' [ 41.493][w][SmartCopyPaste_II] mp.defaults:380: in function 'handler' [ 41.493][w][SmartCopyPaste_II] mp.defaults:510: in function 'call_event_handlers' [ 41.493][w][SmartCopyPaste_II] mp.defaults:552: in function 'dispatch_events' [ 41.493][w][SmartCopyPaste_II] mp.defaults:503: in function [ 41.493][w][SmartCopyPaste_II] [C]: at 0x55f43e1d2cb0 [ 41.493][w][SmartCopyPaste_II] [C]: at 0x55f43e1d3950 [ 41.493][f][SmartCopyPaste_II] Lua error: .../app/io.mpv.Mpv/config/mpv/scripts/SmartCopyPaste_II.lua:1231: attempt to concatenate field 'found_name' (a nil value) [ 41.493][v][cplayer] Running hook: SimpleHistory/on_unload [ 41.493][d][ad] Uninit decoder. [ 41.494][d][vd] Uninit decoder. [ 41.494][d][SmartCopyPaste_II] Exiting...