Add functionality of CharTranslator.py to Deobfuscate.py ?

Want something added? Ask for it here.
Post Reply
pven
Release Testers
Release Testers
Posts: 114
Joined: August 21st, 2009, 5:00 am

Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by pven »

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 ?
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by safihre »

Hmmm it's an interesting thought.
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
User avatar
OneCD
Hero Member
Hero Member
Posts: 557
Joined: March 4th, 2017, 3:47 pm

Re: Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by OneCD »

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
pven
Release Testers
Release Testers
Posts: 114
Joined: August 21st, 2009, 5:00 am

Re: Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by pven »

@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 :

Code: Select all

#!/bin/sh
python /usr/local/sabnzbd/var/scripts/CharTranslator.py "$@"
python /usr/local/sabnzbd/var/scripts/Deobfuscate.py "$@"
User avatar
OneCD
Hero Member
Hero Member
Posts: 557
Joined: March 4th, 2017, 3:47 pm

Re: Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by OneCD »

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 "$@"
That's cheating! ;D

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
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by safihre »

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.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
pven
Release Testers
Release Testers
Posts: 114
Joined: August 21st, 2009, 5:00 am

Re: Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by pven »

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.)
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Add functionality of CharTranslator.py to Deobfuscate.py ?

Post by safihre »

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.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply