Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

unmangle the deliberately-malformed subject from WtF release group #832

Open
wants to merge 73 commits into
base: develop
Choose a base branch
from

Conversation

paul-chambers
Copy link

There is at least one release group (perhaps more) that deliberately mangles the subject field. The result is files named like 'abc.xyz.{hex digits}' which is hugely unhelpful.

This PR adds some additional logic to identify these malformed headers and 'unmangle' them, so the extracted files are given the correct names. It has no effect in the absence of these intentionally-malformed headers.

I've been using this modified version for a few months now, and it has cured the problem for me.

acidDrain and others added 10 commits November 30, 2020 22:25
…instead of hardcoded 120px because larger file sizes cause text to overlap/cram
This function has been removed in OpenSSL 3, replaced by
EVP_default_properties_enable_fips. See
https://www.openssl.org/docs/man3.0/man7/migration_guide.html
Calculation of 
Total time
Download time
Verification time
Repair time
Unpack time
was broken for python3. Everything except hours

def format_time_sec_orig(sec):
    Hour = sec / 3600
    Min = (sec - (sec / 3600) * 3600) / 60
    Sec = (sec - (sec / 3600) * 3600) % 60
    return '%d:%02d:%02d' % (Hour, Min, Sec)

def format_time_sec_new(sec):
    Hour = sec / 3600
    Min = (sec % 3600) / 60
    Sec = (sec % 60)
    return '%d:%02d:%02d' % (Hour, Min, Sec)

print("Orig: " + format_time_sec_orig(int(7199)))
print("New: " + format_time_sec_new(int(7199)))


Output:

1:00:00
1:59:59

Process finished with exit code 0
daemon:connect: don't use FIPS_mode_set with OpenSSL 3
Make the pattern matching a little more flexible
@SteffanCline
Copy link

Apologies but I'm a novice. Is there a place I can download a build of this to test and see if it resolves my issues? I have a bunch of these that are completed but I can't seem to do anything with them. I'm hoping with your build I can redo the post processing and correct them all.

paul-chambers and others added 30 commits February 8, 2023 16:34
…to using git tags for versioning had the side-effect of prepending 'v', this change restores the previous format.
Don't reset the lastReset timestamp to zero on every loop iteration.
…ere is to resize to zero length (makeEmpty).
The size passed to `vsnprintf()` needs to take in to account the
size of the existing data.

Fixes nzbget-ng/nzbget#41.
Replace nzbget.net with nzbget-ng.github.io
… for now, hopefully others will provide pull requests for their distro of choice.
…ersioning is not. So change the 'version' API to return a dotted-decimal number.
Flush stdio buffers to ensure log messages are not lost on execvp.
Fix stuck script execution.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet