Unpackerr / unpackerr

Extracts downloads for Radarr, Sonarr, Lidarr, Readarr, and/or a Watch folder - Deletes extracted files after import
https://unpackerr.zip
MIT License
991 stars 36 forks source link

unpackerr only recognizes English .rar files in the watched folder #487

Open nasssssss2363 opened 3 weeks ago

nasssssss2363 commented 3 weeks ago

The file name was originally in Chinese, unpackerr didn't decompress it, I changed the Chinese name to 111.rar and it started decompressing immediately

[INFO] 2024/08/25 16:08:43 [Folder] Watching (fsnotify): /media/downloads/unpackerr
[INFO] 2024/08/25 16:08:43 [Folder] Polling @ 1s: /media/downloads/unpackerr
[INFO] 2024/08/25 16:08:43 [Radarr] Updated (http://172.17.0.1:7879): 1 Items Queued, 1 Retrieved
[INFO] 2024/08/25 16:08:43 [Sonarr] Updated (http://172.17.0.1:8990): 50 Items Queued, 50 Retrieved
[INFO] 2024/08/25 16:09:43 [Unpackerr] Queue: 0 waiting, 0 queued, 0 extracting, 0 extracted, 0 imported, 0 failed, 0 deleted
[INFO] 2024/08/25 16:09:43 [Unpackerr] Totals: 0 retries, 0 finished, 0|0 webhooks, 0|0 cmdhooks, stacks; event:0, hook:0, del:0, up 1 min 4 ms 130 µs
[INFO] 2024/08/25 16:10:43 [Radarr] Updated (http://172.17.0.1:7879): 1 Items Queued, 1 Retrieved
[INFO] 2024/08/25 16:10:43 [Sonarr] Updated (http://172.17.0.1:8990): 50 Items Queued, 50 Retrieved
[INFO] 2024/08/25 16:10:43 [Unpackerr] Queue: 0 waiting, 0 queued, 0 extracting, 0 extracted, 0 imported, 0 failed, 0 deleted
[INFO] 2024/08/25 16:10:43 [Unpackerr] Totals: 0 retries, 0 finished, 0|0 webhooks, 0|0 cmdhooks, stacks; event:0, hook:0, del:0, up 2 mins 3 ms 762 µs
[INFO] 2024/08/25 16:11:00 [Folder] Tracking New Item: /media/downloads/unpackerr/111.rar (event: f CREATE)
[INFO] 2024/08/25 16:11:43 [Unpackerr] Queue: 0 waiting, 0 queued, 0 extracting, 0 extracted, 0 imported, 0 failed, 0 deleted
[INFO] 2024/08/25 16:11:43 [Unpackerr] Totals: 0 retries, 0 finished, 0|0 webhooks, 0|0 cmdhooks, stacks; event:0, hook:0, del:0, up 3 mins 3 ms 935 µs
[INFO] 2024/08/25 16:12:03 [Folder] Queued: /media/downloads/unpackerr/111.rar, queue size: 1
[INFO] 2024/08/25 16:12:03 [Folder] Extraction Started: /media/downloads/unpackerr/111.rar, retries: 0, items in queue: 0
davidnewhall commented 2 weeks ago

Cool solution, but you left out the problem. Can you attach the log from when it was Chinese?

nasssssss2363 commented 2 weeks ago

Cool solution, but you left out the problem. Can you attach the log from when it was Chinese?

Here's the beginning of the log

[INFO] 2024/08/25 16:08:43 [Folder] Watching (fsnotify): /media/downloads/unpackerr
[INFO] 2024/08/25 16:08:43 [Folder] Polling @ 1s: /media/downloads/unpackerr
[INFO] 2024/08/25 16:08:43 [Radarr] Updated (http://172.17.0.1:7879): 1 Items Queued, 1 Retrieved
[INFO] 2024/08/25 16:08:43 [Sonarr] Updated (http://172.17.0.1:8990): 50 Items Queued, 50 Retrieved
[INFO] 2024/08/25 16:09:43 [Unpackerr] Queue: 0 waiting, 0 queued, 0 extracting, 0 extracted, 0 imported, 0 failed, 0 deleted
[INFO] 2024/08/25 16:09:43 [Unpackerr] Totals: 0 retries, 0 finished, 0|0 webhooks, 0|0 cmdhooks, stacks; event:0, hook:0, del:0, up 1 min 4 ms 130 µs
[INFO] 2024/08/25 16:10:43 [Radarr] Updated (http://172.17.0.1:7879): 1 Items Queued, 1 Retrieved
[INFO] 2024/08/25 16:10:43 [Sonarr] Updated (http://172.17.0.1:8990): 50 Items Queued, 50 Retrieved
[INFO] 2024/08/25 16:10:43 [Unpackerr] Queue: 0 waiting, 0 queued, 0 extracting, 0 extracted, 0 imported, 0 failed, 0 deleted
[INFO] 2024/08/25 16:10:43 [Unpackerr] Totals: 0 retries, 0 finished, 0|0 webhooks, 0|0 cmdhooks, stacks; event:0, hook:0, del:0, up 2 mins 3 ms 762 µs

I was looking at the log to change the file name, probably the log ran here, I changed the file name to 111.rar on the automatic decompression, so the log is a little bit ....

[INFO] 2024/08/25 16:11:00 [Folder] Tracking New Item: /media/downloads/unpackerr/111.rar (event: f CREATE)
[INFO] 2024/08/25 16:11:43 [Unpackerr] Queue: 0 waiting, 0 queued, 0 extracting, 0 extracted, 0 imported, 0 failed, 0 deleted
[INFO] 2024/08/25 16:11:43 [Unpackerr] Totals: 0 retries, 0 finished, 0|0 webhooks, 0|0 cmdhooks, stacks; event:0, hook:0, del:0, up 3 mins 3 ms 935 µs
[INFO] 2024/08/25 16:12:03 [Folder] Queued: /media/downloads/unpackerr/111.rar, queue size: 1
[INFO] 2024/08/25 16:12:03 [Folder] Extraction Started: /media/downloads/unpackerr/111.rar, retries: 0, items in queue: 0
nasssssss2363 commented 2 weeks ago

I re-created a Chinese test file Hello.rar and successfully extracted it, I don't know what the reason is, maybe the previous file is too big, it's more than 30G. if I encounter it again, I'll upload the log.

Anyway, thanks for your help!

[INFO] 2024/08/27 01:41:41 [Radarr] Updated (http://172.17.0.1:7879): 2 Items Queued, 2 Retrieved
[INFO] 2024/08/27 01:41:41 [Sonarr] Updated (http://172.17.0.1:8990): 50 Items Queued, 50 Retrieved
[INFO] 2024/08/27 01:41:41 [Unpackerr] Queue: 0 waiting, 0 queued, 0 extracting, 0 extracted, 0 imported, 1 failed, 0 deleted
[INFO] 2024/08/27 01:41:41 [Unpackerr] Totals: 0 retries, 2 finished, 0|0 webhooks, 0|0 cmdhooks, stacks; event:0, hook:0, del:0, up 1 day 3 hours 10 mins
[INFO] 2024/08/27 01:41:56 [Folder] Queued: /media/downloads/unpackerr/你好.rar, queue size: 1
[INFO] 2024/08/27 01:41:56 [Folder] Extraction Started: /media/downloads/unpackerr/你好.rar, retries: 0, items in queue: 0
[INFO] 2024/08/27 01:41:56 [Folder] Extraction Finished: /media/downloads/unpackerr/你好.rar => elapsed: 0s, archives: 1, extra archives: 0, files extracted: 2, written: 0MiB
[INFO] 2024/08/27 01:42:06 [Folder] Finished, Removed History: /media/downloads/unpackerr/你好.rar
[INFO] 2024/08/27 01:42:41 [Unpackerr] Queue: 0 waiting, 0 queued, 0 extracting, 0 extracted, 0 imported, 0 failed, 0 deleted
[INFO] 2024/08/27 01:42:41 [Unpackerr] Totals: 0 retries, 3 finished, 0|0 webhooks, 0|0 cmdhooks, stacks; event:0, hook:0, del:0, up 1 day 3 hours 11 mins
[INFO] 2024/08/27 01:43:41 [Radarr] Updated (http://172.17.0.1:7879): 2 Items Queued, 2 Retrieved
[INFO] 2024/08/27 01:43:41 [Sonarr] Updated (http://172.17.0.1:8990): 50 Items Queued, 50 Retrieved
[INFO] 2024/08/27 01:43:41 [Unpackerr] Queue: 0 waiting, 0 queued, 0 extracting, 0 extracted, 0 imported, 0 failed, 0 deleted
[INFO] 2024/08/27 01:43:41 [Unpackerr] Totals: 0 retries, 3 finished, 0|0 webhooks, 0|0 cmdhooks, stacks; event:0, hook:0, del:0, up 1 day 3 hours 12 mins
nasssssss2363 commented 2 weeks ago

Cool solution, but you left out the problem. Can you attach the log from when it was Chinese?

It seems to be a bit of a problem, I tested four or five files, as long as the zip file name contains Chinese, unzip out the naming is wrong. image

davidnewhall commented 1 week ago

Can you send me a test file with a problem? And some screenshots showing 'correct' and 'incorrect'.

nasssssss2363 commented 1 week ago

ok,this is test file 悟空.zip correct image incorrect image

nasssssss2363 commented 5 days ago

Can you send me a test file with a problem? And some screenshots showing 'correct' and 'incorrect'.

Did I post that correctly?