Commit e2297aa2 authored by Michael Pyne's avatar Michael Pyne

Fix Bug #81589 by forcing the user-specified pattern to match at the end

of the filename.  This means that patterns with embedded slashes such
as %A/%a/%t will correctly match tags in a file structure such as
/mnt/hdc1/mpeg/genre/Album/Artist/Titles*.mp3, instead of ending up with
Album = mnt, artist = hdc1, and title = mpeg.

You might still need to rearrange the order of the patterns in the Tag
Guesser Configuration Dialog.

svn path=/trunk/kdemultimedia/juk/; revision=313716
parent 832b724a
......@@ -108,7 +108,7 @@ QString FileNameScheme::composeRegExp(const QString &s) const
regExp = ".*" + regExp;
regExp.replace(' ', "\\s+");
regExp = KMacroExpander::expandMacros(regExp, substitutions);
regExp += ".*";
regExp += "[^/]*$";
return regExp;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment