Commit Graph

50 Commits

Author SHA1 Message Date
f18d5aca10 Use rename and fix minor issues 2010-01-22 11:42:52 +00:00
90033e4169 Use shutil.rename if on the same filesystem (move makes a copy first).
Suggested by the Python 2.6.4 documentation:
http://docs.python.org/library/shutil.html
2010-01-21 09:38:35 +00:00
dbr
124b442709 Move config into main(), moved filename_config import next to other imports 2008-12-29 17:18:53 +10:30
dbr
b925d8a709 Added inital setup.py file 2008-12-29 17:01:09 +10:30
dbr
b45386ead1 Moved finding files into find_files function 2008-12-29 17:00:50 +10:30
dbr
eac58ad04a PEP8'ing 2008-12-29 17:00:24 +10:30
dbr
113853a2fd Reoved unused import re 2008-12-29 17:00:14 +10:30
dbr
1212b284ad Output full path of errored files 2008-11-08 19:45:02 +10:30
dbr
a9a728d354 Correctly decrappify filenames (removing .DS_Store and so on from checks) 2008-11-08 19:38:30 +10:30
dbr
a72762de3c Allow ./season 2 [720p]/ path 2008-11-08 18:49:33 +10:30
dbr
8f421444fd Get full path to file, rather than a realtive one. Decrappify files in less roundabout and problem-causing way (used to split dir/file name, then rejoin the filenames to the location, which breaks if there is sub-directories) 2008-11-08 18:49:13 +10:30
dbr
c167891821 Use shared regex configs 2008-11-08 18:21:56 +10:30
dbr
9eea05a709 Shared regex configuration 2008-11-08 18:21:42 +10:30
dbr
fbd52804b9 Fix progress bar being overwritten with next print statement, remove debug printing of confirmation answer 2008-11-08 17:57:59 +10:30
dbr
96615bd984 Added ! to valid characters 2008-11-08 17:57:03 +10:30
dbr
1be8f4445f Tidy up progress bar display code 2008-11-08 17:48:23 +10:30
dbr
2f07fa10e2 Added --always option (when used, will not prompt y/n before copying) 2008-11-08 17:37:36 +10:30
dbr
28340f80c5 Added progress bar to file copy 2008-11-08 17:27:34 +10:30
dbr
fd6b0505ac Fixed typo in info message, fixed file moving and error handling 2008-11-01 15:07:02 +10:30
dbr
6b97c26b36 Check if file is on same partition, if so move it, if not copy it. 2008-11-01 15:02:09 +10:30
dbr
d0663047a8 made autoPathTV executable 2008-10-20 19:14:46 +10:30
dbr
606173bdf8 Removed path.py (used by old checkTvEps.py) 2008-10-20 19:14:37 +10:30
dbr
202bf952db Tiny visual change to error heading (has trailing # in title block) 2008-10-20 19:12:33 +10:30
dbr
7413b4c125 Moved 2checkTvEps to checkTvEps as it is now better than checkTvEps 2008-10-20 19:12:02 +10:30
dbr
2f6c3d0e5d Removed checkTvEps 2008-10-20 19:09:50 +10:30
dbr
40cf5b8d4f Sort shownames and season numbers 2008-10-20 19:06:18 +10:30
dbr
9ecc610b0f Change target disc for autoPathTV 2008-10-20 19:06:06 +10:30
dbr
5aacfc6059 Added ignore for OS X Folder Icon 2008-10-20 19:05:49 +10:30
dbr
eff6fb2e07 Allow # in filenames 2008-10-20 19:05:10 +10:30
dbr
8a6dc68ad6 Slight change to valid path regexs 2008-08-09 16:50:58 +01:00
dbr
ab41906965 Added script to automatically move properly named files into the correct location 2008-08-09 16:50:26 +01:00
dbr
0ab75073fc Fixed same problem 2checkTvEps had - regexs didn't match until the end of the string (no trailing $) 2008-07-11 02:58:20 +01:00
dbr
87628e9ebf Quick messy way of parsing [01x01-02] numbers, should move to name-parsing section, not array-output-formatting 2008-07-01 01:53:37 +09:30
dbr
352171823d Added start-of-line and end-of-line markers to regex's, as it previously allowed "Blah - [01x02] - Valid episode name until n$%^&ow.avi" 2008-07-01 01:52:56 +09:30
dbr
29c2e60bbc Shows valid episodes, using ShowContainer and the other classes 2008-06-30 13:04:33 +09:30
dbr
6f40858821 Series of classes (ShowContainer, Show, Season, Episode) to replace the all_shows dict used previously, the __str__ output of ShowContainer returns a nicely formatted list of shows/seasons/episodes. Also added seq_display to condense list of numbers (eg, 1,2,3,4) to human-readable list (eg, 1-4) 2008-06-30 13:03:14 +09:30
dbr
6fad6aef87 Made regex's far more readable/maintainable (moved valid characters in episode names to config dict, instead of duplicating the character class twice per regex", added more examples of valid names) 2008-06-30 13:00:46 +09:30
dbr
328a1d03f1 Retabbed (to 4-space soft-tab) 2008-06-30 12:56:20 +09:30
dbr
2ed8fb56fe Improved output of invalid names 2008-06-22 21:24:54 +09:30
dbr
83b0a5f333 Added regex match-groups to valid-data-dicts 2008-06-22 21:22:06 +09:30
dbr
5b5b9746f1 Cleaned up whitespace 2008-06-22 21:21:42 +09:30
dbr
8e5b6deb95 Changed no-files-found exit code to non-zero 2008-06-22 21:21:05 +09:30
dbr
cad3bfc3bd Fixed end for current_file comment 2008-06-22 21:20:14 +09:30
dbr
6460378f46 Simlar to checkTvEps, but verifies films are in the format "The Film Name [2005].avi" 2008-06-02 11:39:54 +09:30
dbr
7973abcadf Added 2checkTvEps - similar concept to checkTvEps but does better checks (missing epsiode names, wrong paths etc)
Will obsolete checkTvEps when the output is nicer
2008-06-02 11:39:05 +09:30
dbr
32a92b84cb Added gitingore (hides DS_Store and pyc files) 2008-04-27 21:37:35 +09:30
dbr
bb72e60361 Added support for multiple regexs for valid episode names, and decrappify'ing regex (to remove valid, but non-video files) 2008-04-27 21:35:36 +09:30
dbr
439f656236 Accidently set colours for seasons with missing episodes to the same colours as valid seasons. It is now red. 2008-04-20 00:50:28 +09:30
dbr
c64b9fe7e3 Added support for [05x01-02] numbering 2008-04-20 00:26:47 +09:30
dbr
ed8eb0d7da Works in a single (current shell) path, on .avi files. Only lists episodes and missing (from sequence) episode numbers 2008-04-13 20:35:12 +09:30