I am using several postprocess-scripts. One of them is CharTranslator.py ( https://github.com/SynoCommunity/spksrc ... nslator.py ). This is getting rid of some terrible characters that are allways hard to handle at the prompt.
Is it possible to integrate the 'get rid of the strange characters'-functionality into Deobfuscate.py ?
Add functionality of CharTranslator.py to Deobfuscate.py ?
Re: Add functionality of CharTranslator.py to Deobfuscate.py ?
Hmmm it's an interesting thought.
You could create a pull request for it?
You could create a pull request for it?
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Re: Add functionality of CharTranslator.py to Deobfuscate.py ?
A semi-related question: is it possible to run multiple post-processing scripts?
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
Re: Add functionality of CharTranslator.py to Deobfuscate.py ?
@safihr: I will
@OneCD: yes, it is
Maybe there is an easier way, but I created a script called all.psy (.sh is probably a better extension) that I start as postprocess-script, it contains :
@OneCD: yes, it is
Maybe there is an easier way, but I created a script called all.psy (.sh is probably a better extension) that I start as postprocess-script, it contains :
Code: Select all
#!/bin/sh
python /usr/local/sabnzbd/var/scripts/CharTranslator.py "$@"
python /usr/local/sabnzbd/var/scripts/Deobfuscate.py "$@"
Re: Add functionality of CharTranslator.py to Deobfuscate.py ?
That's cheating!pven wrote: ↑October 1st, 2018, 2:22 pmMaybe there is an easier way, but I created a script called all.psy (.sh is probably a better extension) that I start as postprocess-script, it contains :Code: Select all
#!/bin/sh python /usr/local/sabnzbd/var/scripts/CharTranslator.py "$@" python /usr/local/sabnzbd/var/scripts/Deobfuscate.py "$@"
Sorry, I meant via the SAB UI.
Stuff I like: Apache bash cron DD-WRT Debian DNSMasq Entware FireFox GitHub ImageMagick Kate KDE LibreELEC Netrunner NFS NVIDIA OpenVPN Orvibo-S20 pfSense Python Raspberry-Pi RAID SABnzbd Transmission Usenet VirtualBox Watcher3 XFCE
Re: Add functionality of CharTranslator.py to Deobfuscate.py ?
As SAB is "the easy client", we left such options out
Maybe we should add this char translation to the sabnzbd core? Since we have an option to Make windows compatible. Or is it too tricky? Seems like you need to set the specific encoding? We could use chardet package to do that.
Maybe we should add this char translation to the sabnzbd core? Since we have an option to Make windows compatible. Or is it too tricky? Seems like you need to set the specific encoding? We could use chardet package to do that.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Re: Add functionality of CharTranslator.py to Deobfuscate.py ?
I have no idea what happens ie with Chinese characters. No idea what the chardet package is.
You still want m to create a pull request? (Did not look into it yet.)
You still want m to create a pull request? (Did not look into it yet.)
Re: Add functionality of CharTranslator.py to Deobfuscate.py ?
Yes, a pull request and if you could include examples of NZB's that need it, that would be great for testing.
I can always modify the pull request and put it in Sab directly.
I can always modify the pull request and put it in Sab directly.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate