Added: Support for renaming of downloaded files
Added: Folder path and file name are set by replaceable variables such as %s for season number.
Added: Extracts directly to the final folder.
Added: Failed downloads are placed in an extra folder called '_FAILED_'
Current Limitations:
Only renames extracted files, and only if over 123MB
Was not compatible with sorting TV DVD seasons so support for them has been removed for now.
Includes following fixes:
Sorting of folders now happens at post-processing stage rather than on nzb import.
Changed config layout: TV sort on/off. Season folders on/off. Folder name optionable. Allows for more configurations
Untested support for S1D1 dvd sorting.
Cleaned up the code a bit and added more comments.
Added support for non-unique folders for sorting files directly into Season folders.
- User script directory
- Set default user script
- Make script selectable in the queue (if script-dir present)
- Remove old fixed user-script handling
Warning:
- queue.tmpl changes in SMPL, Plush and iPhone incomplete (they miss the extra column)
- main page of SMPL and iPhone not modified.
- newzbin config page.
- Automatic retrieval of newzbin bookmarks
Todo:
- Add newzbin icon in Plush
- The hide/show bookmark in smpl does not work well (no refresh)
Each template must now reside under the "interfaces" folder.
The "standard" templates are now called "Default".
The Config-General screen now shows all interfaces found in the "interfaces" folders and lets the user pick one.
Only through the command option -t it is possible to specify an absolute path.
Any non-absolute path in the -t option is matched against the templates in "interfaces", only when one is matched it will be used. Otherwise the Default will be used. Any templates missing the template/main.tmpl constructions is refused and the Default is used.
Also: set the $web_name variable for the template. This is to be used in the "default.css?version=$web_name" construction, to ensure that the browser picks up the correct default.css when changing interfaces.
Recover when web_dir is empty
__init__.py / misc.py:
Refactoring of dir_setup. Extract create_real_path an put it in misc.py
interface.py:
Proper handling of directories on save.
Improved checking of templates directories.
Recover from empty template field.
config_directories.tmpl:
Change notice on directories again.
- download_free should be in the "system" directories section
- schedlines not initialized properly (special handling because it's a list)
- moved real_path to misc.py (cannot export it from __init__.py)
- "save-dir" in interface.py should use real_path to check the directories
- Some explanation texts in templates changed.