Share your scripts or request scripts with specific features.
Forum rules
Please keep the forum clean - one topic per script. Questions not related to a specific script should be posted in Support forum.
-
rolmei
- Posts: 51
- Joined: 13 Apr 2013, 15:52
Post
by rolmei » 30 Aug 2020, 10:28
Hallo,
i habe try my first script, but it doesn't work.
Could somebody check what is wrong.
In the message are this messages:
info Sun Aug 30 2020 12:18:46 SizePriority: IndentationError: unindent does not match any outer indentation level
info Sun Aug 30 2020 12:18:46 SizePriority: ^
info Sun Aug 30 2020 12:18:46 SizePriority: result = nzbget.editqueue('GroupSetPriority', 0, Priority, nzb['NZBID']
With the message i find no idea what is really wrong.
Is it possible to debug a phyton in nzbget?
-
Attachments
-
- SizePriority.py
- (3.73 KiB) Downloaded 227 times
-
hugbug
- Developer & Admin
- Posts: 7645
- Joined: 09 Sep 2008, 11:58
- Location: Germany
Post
by hugbug » 30 Aug 2020, 17:59
Python is sensitive to proper line indentation. Open the file in a text editor which can show invisible symbols (spaces and tabs), then replace all tabs with spaces and check/correct indentation.
Instead of debugging from nzbget you can launch the script from terminal or from your favourite python IDE/debugger. You just need to set environment variables required by your script (which are normally set by nzbget for scripts).
Who is online
Users browsing this forum: No registered users and 24 guests