Comments (4)
We really need a better way to pass data to the hooks. Using the environment was
the easiest way so I went with that initially. But as you said this approach is
flawed and it shows itself clearly with the playlist event case.
Maybe using standard input to pass data is a better way. What do you think?
from mpdcron.
stdin is a much better way, yes :)
from mpdcron.
As of 387f423 mpdcron is more conservative when exporting variables to the environment.
I'll update the documentation on webpage soonish.
I did this because I don't have time to properly solve this problem (with stdin method or some other one)... That can wait for later.
Please test and report back!
from mpdcron.
Documentation fixed by 0a25333
Closing this, reopen if the problem persists.
from mpdcron.
Related Issues (20)
- mpdcron: free(): invalid pointer: 0x089c4f60 HOT 1
- Quickly skipping through songs doesn't update notify-osd HOT 2
- mpdcron will not run as daemon HOT 4
- modules are missing HOT 1
- wrong hook HOT 1
- Reimplementation of option and playlist hooks HOT 1
- scrobbler breaks when you upgrade curl 7.21.3 -> 7.21.4 HOT 7
- Please add --log and --verbose options
- write a proper manual page
- Error while using 'stats' module HOT 1
- hooks/player executed TWICE when song changes
- homescrape does not import HOT 1
- mpdcron ./configure: No such file or directory HOT 1
- Daemon returned 2 as return value HOT 1
- systemd support HOT 1
- Scrobbler broken HOT 1
- Player Event causes twice execution of hooks HOT 1
- Cache of mirrored tracks recently played by mpd
- how do I use it? HOT 2
- Update documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mpdcron.