This makes the detection code more exact. This will now properly fail when
a set with the following files comes along:
Name matches:
X.par2
X.vol0+1.par2
X.001
X.002
...
Protection matches:
X.001
X.002
...
This new type will have to be handled in a seperate PAR2Set-derived class.
Signed-off-by: Ira W. Snyder <devel@irasnyder.com>
#
def detect_JOIN (name_files, prot_files):
- return has_a_match ('^.*\.\d\d\d$', name_files)
+ return has_a_match ('^.*\.\d\d\d$', name_files) \
+ and not has_a_match ('^.*\.\d\d\d$', prot_files)
class PAR2Set_JOIN (PAR2Set.PAR2Set):