Coder Social home page Coder Social logo

Comments (5)

tatsumoto-ren avatar tatsumoto-ren commented on August 14, 2024 1

Thank you for your feedback. To support lua 5.1 I'm going to commit the changes.

from mpvacious.

tatsumoto-ren avatar tatsumoto-ren commented on August 14, 2024

Thank you for the bug report. It's really strange but I can't get the same error. It must be platform-specific or related to the version of lua that mpv uses. Does it work with this file?

from mpvacious.

anonx7eb avatar anonx7eb commented on August 14, 2024

Thanks for the quick response! The file you sent fixes the error on startup! However, Ctrl+C to copy subs doesn't work for me and throws this error:

[new_mpvvacious]
[new_mpvvacious] stack traceback:
[new_mpvvacious]        /home/<user>/.config/mpv/scripts/new_mpvvacious.lua:169: in function 'copy_to_clipboard'
[new_mpvvacious]        /home/<user>/.config/mpv/scripts/new_mpvvacious.lua:175: in function 'fn'
[new_mpvvacious]        mp.defaults:225: in function 'fn'
[new_mpvvacious]        mp.defaults:60: in function 'handler'
[new_mpvvacious]        mp.defaults:365: in function 'handler'
[new_mpvvacious]        mp.defaults:486: in function 'call_event_handlers'
[new_mpvvacious]        mp.defaults:520: in function 'dispatch_events'
[new_mpvvacious]        mp.defaults:479: in function <mp.defaults:478>
[new_mpvvacious]        [C]: ?
[new_mpvvacious]        [C]: ?
[new_mpvvacious] Lua error: /home/<user>/.config/mpv/scripts/new_mpvvacious.lua:169: attempt to index a boolean
value

Lua Version: Lua 5.1.5
OS: Gentoo

from mpvacious.

tatsumoto-ren avatar tatsumoto-ren commented on August 14, 2024

Lua 5.1.5

This must be it. mpv by default uses lua 5.2 and I expect many things to break in older versions.
This is my attempt to rewrite that chunk with 5.1 support.

from mpvacious.

anonx7eb avatar anonx7eb commented on August 14, 2024

This works! I will make sure I'm on 5.2 before reporting any problems on future versions. Thanks!

from mpvacious.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.