2017-03-10 08:21:17 +00:00
|
|
|
from irs.ripper import Ripper
|
|
|
|
import os
|
|
|
|
|
2017-03-14 04:41:38 +00:00
|
|
|
print ("[*] Testing `post_processors.py`")
|
|
|
|
|
2017-03-10 08:21:17 +00:00
|
|
|
if not os.path.exists("test_dir"):
|
|
|
|
os.makedirs("test_dir")
|
|
|
|
Ripper({
|
|
|
|
"post_processors": {
|
2017-03-16 01:37:13 +00:00
|
|
|
"custom_directory": "test_dir/",
|
2017-03-10 08:21:17 +00:00
|
|
|
"organize": True,
|
|
|
|
}
|
|
|
|
}).album("Da Frame 2R / Matador")
|
|
|
|
|
|
|
|
Ripper({
|
|
|
|
"post_processors": {
|
2017-03-16 01:37:13 +00:00
|
|
|
"custom_directory": "test_dir/",
|
2017-03-10 08:21:17 +00:00
|
|
|
"organize": True,
|
|
|
|
}
|
2017-03-14 04:41:38 +00:00
|
|
|
}).playlist("IRS Testing", "prakkillian")
|
|
|
|
|
|
|
|
print ("[+] Passed!")
|