[Synology NAS] Fixed non-ASCII chars and more...(2020/09/11)

Come up with a useful post-processing script? Share it here!
nebbs82
Newbie
Newbie
Posts: 1
Joined: April 9th, 2014, 9:03 pm

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by nebbs82 »

LapinFou wrote:Yes you can (as explained in the middle of the tutorial... ::) ).
From a telnet session using the following command line, if you are using the SynoCommunity repository.
For example if you want to fix the folder download/complete, then type the command:
/usr/local/sabnzbd/var/scripts/CharTranslator.py /volume1/download/complete

Note1: no options must be enabled in CharTranslator.py script (such as DLNA, sickbeard, etc...). This is the case by default.
Note2: the script is recursive, so all sub-folders inside the target folder will also be processed.

Keep me inform if it did work.
:)
Thank you very much for this solution, it fixed my problem!
User avatar
LapinFou
Full Member
Full Member
Posts: 100
Joined: April 23rd, 2012, 7:35 am
Location: France, Caen

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by LapinFou »

Hi nebbs82,

Thanks for taking time to reply. :)
I'm glad to see a new happy user. ;D
Don't hesitate to reply if you shall meet any issues with my script.
Synology Model: DS-916+
Firmware Version: DSM 6.2.3-25426 Update 2
HDD Model: 3xSeagate ST4000VN008 4To - SHR + 1x256Go SSD - cache
marlowe310
Newbie
Newbie
Posts: 3
Joined: August 27th, 2013, 6:15 pm

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by marlowe310 »

Not sure if this is the right place, but I had an issue I think you guys might be able to help with -- essentially, since installing an SSL cert (StartSSL) on my NAS, I can't access SabNZBD. I figure that's due to some mismatch of the SSL/Port settings, but I just cannot get to the Web GUI -- I've tried restarting the service, the nas, uninstalling and reinstalling -- the works.

The only thing I can think left to do short of an entire wipe of the NAS itself is to SSH in and delete ALL traces of SabNZBD data, then reinstall again. Do you guys happen to know the precise location and/or cmds to delete said data?

Thanks a ton -- I really appreciate it.
User avatar
LapinFou
Full Member
Full Member
Posts: 100
Joined: April 23rd, 2012, 7:35 am
Location: France, Caen

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by LapinFou »

If you are using the SynoCommunity version, you can check the config file through a telnet session or using the package "Config File Editor":
/usr/local/sabnzbd/var/config.ini
You should also check that your new certificate is also installed in Sabnzbd.
Synology Model: DS-916+
Firmware Version: DSM 6.2.3-25426 Update 2
HDD Model: 3xSeagate ST4000VN008 4To - SHR + 1x256Go SSD - cache
Rankiz
Newbie
Newbie
Posts: 3
Joined: January 18th, 2011, 4:12 pm

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by Rankiz »

How do you get Synology Sabnzbd to auto detect nzb files? Since sabnzbd is installed on the Synology server, you can't just click on the nzb file because then it will open on the "regular" sabnzbd client on your computer. Please help, I know I can click "Add NZB" within sabnzbd, but that is a very cumbersome method.
User avatar
LapinFou
Full Member
Full Member
Posts: 100
Joined: April 23rd, 2012, 7:35 am
Location: France, Caen

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by LapinFou »

With Sabnzbd you can used a "Watched folder". All nzb files saved in this folder will be automatically downloaded.
To setup it, go in:
config -> folders -> "Watched Folder" Field in "User Folders" section.
For ex, in my config here are my setup:
Temporary Download Folder: /volume1/download/incomplete
Completed Download Folder: /volume1/download/complete
Permissions for completed downloads: 777 (this an important in order to be sure that downloaded files will be accessible by every users on the NAS)
Watched Folder: /volume1/download/autonzb
Watched Folder Scan Speed: 5sec

Sabnzb will scan the watched folder every 5sec. If a nzb file is present, it will launch the download and remove the nzb file of this watched folder.

You must used the "Browse" button in order to select the appropriated folder. Indeed, the path must be the real NAS path (/volumeX/"something").
Under Windows, you must mount a shared folder in your network drives. In my case my shared folder P: is mapped to //NAS_IP/download

For the usage, instead having your browser sending the nzb directly to you Sabnzb, you must save the nzb in this dedicated folder (in my case) P:\autonzb.

That's all !!

Note: In my case, download is a shared folder created on the Volume1 from the Synology DSM web interface (I reserved it for Sabnzbd/Transmission/etc.. usage).
Note2: Which Sanbzbd are you using?? I strongly recommending you to use the SynoCommunity version which, by the way, will included my script.
;D
Synology Model: DS-916+
Firmware Version: DSM 6.2.3-25426 Update 2
HDD Model: 3xSeagate ST4000VN008 4To - SHR + 1x256Go SSD - cache
User avatar
LapinFou
Full Member
Full Member
Posts: 100
Joined: April 23rd, 2012, 7:35 am
Location: France, Caen

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by LapinFou »

Did you try???
Synology Model: DS-916+
Firmware Version: DSM 6.2.3-25426 Update 2
HDD Model: 3xSeagate ST4000VN008 4To - SHR + 1x256Go SSD - cache
vandermark
Newbie
Newbie
Posts: 5
Joined: November 23rd, 2015, 6:40 am

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by vandermark »

Major bump but i have the following question:

My mediaserver on my synology doesn't index new movies I manually add to sabnzbd. After reading this topic I think i need the feature:

"IndexInSynoDLNA = True" in a postprocessing script for the movie category.

My question(s):
(A) Can I just use the standard script chartranslator.py and change False to True for IndexInSynoDLNA in the Py file?
(B) I don't need anything else but "IndexInSynoDLNA = True". Can I just remove all lines in chartranslator.py and only keep "IndexInSynoDLNA = True"?
(C) Can you give me directions on how to make a script file which only performs: "IndexInSynoDLNA = True"?
User avatar
LapinFou
Full Member
Full Member
Posts: 100
Joined: April 23rd, 2012, 7:35 am
Location: France, Caen

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by LapinFou »

(A) Yes. :)
(B) Yes for the 1st part and no, don't remove all lines. The flag IndexInSynoDLNA is used inside those lines.
(C) Well, I could, however I don't have much time right now. Anyway it won't harm to use the script as it is (expected "IndexInSynoDLNA = True"). If you do download only files without any "weird" chars, the script will simply skip them.

You should have a try and keep me inform of your results.
;D
Synology Model: DS-916+
Firmware Version: DSM 6.2.3-25426 Update 2
HDD Model: 3xSeagate ST4000VN008 4To - SHR + 1x256Go SSD - cache
User avatar
LapinFou
Full Member
Full Member
Posts: 100
Joined: April 23rd, 2012, 7:35 am
Location: France, Caen

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by LapinFou »

By the way, here is a direct download.
OneDrive link: CharTranslator.py
Last edited by LapinFou on November 23rd, 2015, 8:38 am, edited 1 time in total.
Synology Model: DS-916+
Firmware Version: DSM 6.2.3-25426 Update 2
HDD Model: 3xSeagate ST4000VN008 4To - SHR + 1x256Go SSD - cache
User avatar
LapinFou
Full Member
Full Member
Posts: 100
Joined: April 23rd, 2012, 7:35 am
Location: France, Caen

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by LapinFou »

OK, finally I've done a simple version of the script named IndexDLNA.py

I just kept 2 options:
- MoveToThisFolder: False by default. As explained you can move the completed SABnzbd downloaded file/folder, then index it in the DLNA.
- IndexInSynoDLNA: True by default.

I don't have time to test it. So, there is no guarantee. :)
Keep me in touch!
Synology Model: DS-916+
Firmware Version: DSM 6.2.3-25426 Update 2
HDD Model: 3xSeagate ST4000VN008 4To - SHR + 1x256Go SSD - cache
vandermark
Newbie
Newbie
Posts: 5
Joined: November 23rd, 2015, 6:40 am

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by vandermark »

Great! Thanks for your quick reply. I will test when I'm @home 8)
vandermark
Newbie
Newbie
Posts: 5
Joined: November 23rd, 2015, 6:40 am

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by vandermark »

It worked! Nice notification in SAB after which said the movie was indexed. I checked in dsvideo and the movie showed right up, awesome and thanks so much for your help :)
User avatar
LapinFou
Full Member
Full Member
Posts: 100
Joined: April 23rd, 2012, 7:35 am
Location: France, Caen

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by LapinFou »

You're welcome.
Did you noticed the "move" option? Maybe not useful in your case.
Synology Model: DS-916+
Firmware Version: DSM 6.2.3-25426 Update 2
HDD Model: 3xSeagate ST4000VN008 4To - SHR + 1x256Go SSD - cache
vandermark
Newbie
Newbie
Posts: 5
Joined: November 23rd, 2015, 6:40 am

Re: [Synology NAS] Fixed non-ASCII chars and more...(2013/10

Post by vandermark »

I don't need the move option. I manually add movies to sabnzbd and the category itself moves the movie to the correct folder.

Thanks!
Post Reply