Comments (6)
If you want to register to URL handler without using lincastor, you can do it manually with an application bundle created from an Apple Script.
- Follow the steps of the original post up to and including step 10; however, if you use the homebrew python, you need to make sure it is used to execute nzbmonkey, not the python that comes with macOS (otherwise, it will not find the dependencies). You can achieve this by adding the following to the script before calling nzbmonkey:
# for Apple Silicon
PATH="/opt/homebrew/bin:$PATH"
# for x86_64
PATH="/usr/local/bin:$PATH"
- Open "Script Editor", create a new apple script "New Document"
- Insert the following AppleScript code:
on open location this_URL
do shell script "$HOME/path/to/nzbmonkey-vX.Y.Z-linux/nzbmonkey.command " & quoted form of this_URL
end open location
- Save it, as File Format in the Save dialog choose "Application"
- Go to the newly saved Application bundle in the Finder, right click, "Show Package Contents"
- Open Contents/Info.plist with a text editor, e.g. TextEdit
- Add the following, for example right after the initial
<dict>
tag (it can be anywhere, just not in between an existing key-value pair):
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>NZBLNK URL</string>
<key>CFBundleURLSchemes</key>
<array>
<string>nzblnk</string>
</array>
</dict>
</array>
- Open the application by double clicking it in the finder. Nothing visible happens, but it registers itself with the system as a handler for the nzblnk URI scheme.
- Now when you click an nzblnk link, it should offer you to open the application you created with the Script Editor to handle the URI.
from nzb-monkey.
@mstilkerich thanks for your instructions, but I can not get it to run
the nzbmonkey.command script works fine when I call it from the command line but the AppleScript-app doesn't seem to do anything. When I open a "nzblnk"-URL I see the script editor app appearing in the dock for a few seconds and then it disappears again and nothing was sent to sabnzbd
do you have any idea what might be the problem?
Edit: the output of the AppleScript is:
error "Traceback (most recent call last): File \"/Users/musername/nzbmonkey/nzbmonkey.py\", line 1754, in <module> sys.exit(main()) File \"/Users/myusername/nzbmonkey/nzbmonkey.py\", line 1607, in main uch = int(input('\\n Your choice: ')) - 1 EOFError: EOF when reading a line" number 1
Edit2: I guess the problem is that nzbmonkey prompts the user to choose a category for the download and the AppleScript aborts the script at that point
Edit3: it works fine when "categorize" is set to "auto" in nzbmonkey.cfg
from nzb-monkey.
Thank you for your contribution. We will test this an include this in out build chains. The idea is not to use lincastor in this list. So we try to provide everything necessary. 👍
from nzb-monkey.
I heard the author of NZB Donkey (a NZB Monkey browser plugin) is working on a iOS version. Please keep you eyes open for "NZB Donkey" in the app store (its not yet there).
from nzb-monkey.
Can confirm that the combination of @e-skulk and @mstilkerich works flawlessly on macOS Monterey 12.5.1
from nzb-monkey.
@mstilkerich Works great, thanks for that. But do you know if there is a way to show the output of the script while it's being executed? Like, just the simple Terminal windows or something. Would be great to be able to track what's happening, right now it's just the AppleScript icon in the task bar as only indication.
Thanks!
from nzb-monkey.
Related Issues (20)
- Suggestion: Docker Container HOT 1
- 64 bit? HOT 1
- Integrate Premiumize Cloud
- SRR (ReScene) Integration HOT 1
- latest version as download link for batch updating? HOT 1
- NZBindex not working anymore HOT 1
- Latest version not working any more nzbking HOT 3
- No cfg file created on ubuntu HOT 1
- [Question] Android-App HOT 2
- nzbindex problems HOT 4
- Linux installation method outdated HOT 1
- NZB-Monkey failing to push to latest SABnzbd HOT 7
- Changes for python 3.91 on Arch HOT 1
- Pushing to Synology (with DSM7.x) failing - latest NZBMONKEY version (0.27) HOT 2
- categorize = manual gives KeyError with SABnzbd v3.7.0 HOT 2
- remove nzbking from search list HOT 1
- NZBKing.com ... and we are BACK!
- more "indexer"
- 0.2.9 not compatible with python 3.12
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 nzb-monkey.