Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
"""
Chops and NZB into episodes that has
1) had all of the file names mangled and
2) has been indexed as a single, whole-season NZB
"""
import copy
import os
import re
import sys
#!/usr/bin/env python
import glob
import subprocess
import sys
import pprint
import os
mapping = {}
@pleo1
pleo1 / nzbrename.py
Last active August 29, 2015 14:05
nzbrename-threaded
#!/usr/bin/env python
"""
nzbrename - A utility for renaming mangled NZBs.
Almost all of the NNTP and yenc stuff is taken from SabNZBd.
Requires:
* par2ools
* pynzb
"""
@pleo1
pleo1 / par2rename
Last active December 23, 2015 00:49
#!/usr/bin/env python
"""
par2rename - A utility for renaming mangled file names beloning to a par2 set.
"""
import hashlib
import glob
import os
import sys
from par2ools import par2
@pleo1
pleo1 / nzbrename.py
Last active December 18, 2015 13:49
nzbrename - A utility for renaming mangled NZBs.Almost all of the NNTP and yenc stuff is taken from SabNZBd.
#!/usr/bin/env python
"""
nzbrename - A utility for renaming mangled NZBs.
Almost all of the NNTP and yenc stuff is taken from SabNZBd.
Requires:
* par2ools
* pynzb
"""