irs/tests/post_processors.py

22 lines
461 B
Python
Raw Normal View History

from irs.ripper import Ripper
import os
2017-03-14 04:41:38 +00:00
print ("[*] Testing `post_processors.py`")
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/",
"organize": True,
}
}).album("Da Frame 2R / Matador")
Ripper({
"post_processors": {
2017-03-16 01:37:13 +00:00
"custom_directory": "test_dir/",
"organize": True,
}
2017-03-14 04:41:38 +00:00
}).playlist("IRS Testing", "prakkillian")
print ("[+] Passed!")