Hello, I'm El
- Javascript
- Python
- Go
This lua script for mpv media player will use zenity and youtube-dl for search youtube video.
Hi!
I'm trying this in Fedora 35 Gnome 41.6 Wayland but getting only this error.
I have noted there is function using xdotool(not working in wayland) in your code, but it is not used.
Command zenity --entry --title=Search\ Youtube --window-icon=mpv --text=Enter\ Search\ Text:
works fine in zsh.
I have tried this in Xorg but got the same.
Also I get the same error in mpv-zenity-open-files script, which on your script is based.
Could you guess what is the problem?
[youtube_search]
[youtube_search] stack traceback:
[youtube_search] [string "/home/evgeniy/.config/mpv/scripts/youtube-search.lua"]:20: in function 'invoke_zenity'
[youtube_search] [string "/home/evgeniy/.config/mpv/scripts/youtube-search.lua"]:27: in function 'fn'
[youtube_search] mp.defaults:230: in function 'fn'
[youtube_search] mp.defaults:65: in function 'handler'
[youtube_search] mp.defaults:380: in function 'handler'
[youtube_search] mp.defaults:510: in function 'call_event_handlers'
[youtube_search] mp.defaults:555: in function 'dispatch_events'
[youtube_search] mp.defaults:503: in function <mp.defaults:502>
[youtube_search] [C]: ?
[youtube_search] [C]: ?
[youtube_search] Lua error: [string "/home/evgeniy/.config/mpv/scripts/youtube-search.lua"]:20: attempt to call field 'unpack' (a nil value)
mpv --version
mpv 0.34.1 Copyright © 2000-2021 mpv/MPlayer/mplayer2 projects
built on UNKNOWN
FFmpeg library versions:
libavutil 56.70.100
libavcodec 58.134.100
libavformat 58.76.100
libswscale 5.9.100
libavfilter 7.110.100
libswresample 3.9.100
FFmpeg version: 4.4.2
Mplug is like a package manager but for mpv scripts.
Please add your script there (if already not there) and also installation instructions in manifest - https://github.com/Nudin/mpv-script-directory/blob/master/HOWTO_ADD_INSTALL_INSTRUCTIONS.md
Hello,
How can I use this with mpv-gallery-view please ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.