Patari app for Debian, OS X and Windows.
Why is that good?
- No more 'trying to find in which tab is Patari running'
- Media keys support! (Yeah, those with
▶❚❚ on them.)
- Tray icon gives quick access to current playlist
I love Patari and support their vision. So I made this app in my free time.
- If the Windows version crashes on playing any song, please set the compatibility mode for Patari.exe to Windows 7. The bug is currently under investigation.
# Clone this repository $ git clone https://github.com/asadm/patari # Go into the repository $ cd patari # Install dependencies and run the app $ npm install && npm start # To build executables, first install electron-packager $ npm install -g electron-packager # To build bundle for OS X $ npm run make-osx # To build bundle for Windows $ npm run make-win
./main.jsholds the main logic for electron based app.
./preload.jsthis script is injected into Patari website onload. Starts communication with host (main.js) and set's up helpers and listeners for DOM playlist changes etc.
./libs/domhelpers.jsThis class is a wrapper around any interaction with HTML DOM of Patari. If Patari website changes significantly and breaks this app, This is where to make fixes.
./libs/observer.jshelper function used by
domhelpers.js, uses MutationObserver checks if there are any changes in the DOM tree of given target.