Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NZBget]V12.09 issue with wrong characters? #932

Closed
Binnetie opened this issue Apr 15, 2014 · 22 comments
Closed

[NZBget]V12.09 issue with wrong characters? #932

Binnetie opened this issue Apr 15, 2014 · 22 comments

Comments

@Binnetie
Copy link

I Have a Synology DS214 nas and i installed NZBget V12.09 from Synocommunity, i don't know exactly witch version of NZBget it is, but I have a problem with special characters when I'm downloading mp3-files. This is exact the same problem with my older Synology Ds211 nas.

See my Spotweb:
dsm52_zps8c996e5a

After downloading, processing of NZBget I get this:
dsm5_zps8e0f0f6b

The files are corrupted and I can't play them.
When I download with my laptop and extract them with WinRAR, the filenames are good. On the NZBget forum I saw a possible fix for this problem: http://nzbget.net/forum/viewtopic.php?f=4&t=972
But that's a newer version V12 form NZBget

With DSM4.3:
spotweb_zps15f761d4

On Syno:
nas_zps774ce7be

@moneytoo
Copy link
Contributor

Could you send me the nzb via email (see in my profile). I want to try if I can replicate it and whatever switching to ncursesw help.

@Binnetie
Copy link
Author

I send a few NZB's to you by mail...

@moneytoo
Copy link
Contributor

Seems like it unpacks fine without any post processing. I don't use that so can you tell me what's your setup?

@Binnetie
Copy link
Author

I have a DS214 nas, i have no post-processing scripts to run:
postprecess

I use the unrar function form DownloadStation, this unrar-version is quicker:
unpack
I have nothing defined by the category 'music':
catogory

The language is set on 'Dutch' because i'm from the Netherlands, is that perhaps the problem?

@moneytoo
Copy link
Contributor

Does it unpack correctly when using unrar from SynoCommunity?

@Binnetie
Copy link
Author

No, I set the unrar to default en test it with a new NZB and this is the result:
error

@Diaoul
Copy link
Member

Diaoul commented Apr 15, 2014

Where are you seeing the result? Maybe DSM can't render the correct filename due to encoding issues.
Connect to SSH and issue ls -la /volume1/downloads/extractfolder

@Binnetie
Copy link
Author

This is what i see via Windows File Explorer:
verkenner

On the NZBget forum they said that it must bij a error form unrar...

This is from ssh:
mp3list

@moneytoo
Copy link
Contributor

I got the same error - in SABnzbd. Well, I should be able to debug that.

@moneytoo
Copy link
Contributor

Seems that in my case SABnzbd issue is caused by locale which is set to POSIX - even that I'm on DSM 5 where UTF-8 is by default I was upgrading from DSM 4.3 and locale wasn't updated. It makes sense it fixes SABnzbd as it parses the output of unrar. What is your locale when you run it in terminal? (DSM 5 exports LC_ALL and LANG in /etc/profile, set to en_US.utf8).

@Binnetie
Copy link
Author

I've opened the file 'profile' in winSCP, but i don't know witch line must be editted:
locale

Alright, i found another file 'profile' in /etc.defaults/:
local2

Or, must i inserted the lines beneath into the profile file in /etc/profile?
export LC_ALL=en_US.utf
export LANG=en_US.utf8

@moneytoo
Copy link
Contributor

Yes, insert these two lines to /etc/profile. Run locale to verify. Reboot just to make sure that all apps will read the new settings.

@schumi2004
Copy link
Contributor

Must be a locale UTF-8 issue, seen this before.
Solution: https://github.com/spotweb/spotweb/wiki/Instellen-locales-nl_NL.UTF8-op-Synology-NAS

@schumi2004
Copy link
Contributor

What does locale give you in cli, something like this?

DS211> locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

@Binnetie
Copy link
Author

This is the output:

DiskStation> locale
LANG=
LC_CTYPE="POSIX"
LC_NUMERIC="POSIX"
LC_TIME="POSIX"
LC_COLLATE="POSIX"
LC_MONETARY="POSIX"
LC_MESSAGES="POSIX"
LC_PAPER="POSIX"
LC_NAME="POSIX"
LC_ADDRESS="POSIX"
LC_TELEPHONE="POSIX"
LC_MEASUREMENT="POSIX"
LC_IDENTIFICATION="POSIX"
LC_ALL=

I saw the url you give earlier, but why is it so complicated? In DSM4.3 I have the same problem on my DS211 (also with DSM5). I never had this problem before.

@Binnetie
Copy link
Author

Problem solved!

I changed my /etc/profile and added the following lines:
export LC_CTYPE="en_US.utf8"
export LC_NUMERIC="en_US.utf8"
export LC_TIME="en_US.utf8"
export LC_COLLATE="en_US.utf8"
export LC_MONETARY="en_US.utf8"
export LC_MESSAGES="en_US.utf8"
export LC_PAPER="en_US.utf8"
export LC_NAME="en_US.utf8"
export LC_ADDRESS="en_US.utf8"
export LC_TELEPHONE="en_US.utf8"
export LC_MEASUREMENT="en_US.utf8"
export LC_IDENTIFICATION="en_US.utf8"

Then a reboot my nas and i started a new and fresh download.
Look at the results:
solved

The special characters are good!
Moneytoo and Schumi2004, thank you very very much for helping me out! I started to download a lot of new mp3 to overwrite the wrong ones!

@Diaoul
Copy link
Member

Diaoul commented Apr 16, 2014

Maybe we can enforce this when running packages what do you think @moneytoo?

@moneytoo
Copy link
Contributor

@Diaoul You're right, we should be able to put configs in homes of users under which SynoCommunity apps run or set locale when executing. However I was able to duplicate the issue only with SABnzbd and not with Nzbget.

@Diaoul
Copy link
Member

Diaoul commented Apr 16, 2014

I was thinking inline in the start function like we do for the PATH sometimes.

@moneytoo
Copy link
Contributor

If that will be enough (survives restarting, spawning unrar, plugins etc.) than of course that would be better.

@Binnetie
Copy link
Author

I saw that a new version of NZBget is available in Package Center, is this a update with a solution for my problem? What version of unrar does NZBget use? I read about a version of unrar 5.01 that speeds up unpacking. But is this version of unrar in the NZBget package?

@moneytoo
Copy link
Contributor

Unrar 5.1.2 compiled with -O3. Nothing else as I would like to see if I can verify the (UTF-8) issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants