[mythtv] [PATCH] Mythvideo,
allow "Video List" to accept malformed file name
Leandro Dardini
ldardini at tiscali.it
Sat Feb 7 09:34:23 EST 2004
Malformed filename, those with one or mode "." on the middle, plus the "."
for extension are truncated at the first occurrence of "." and only the
first portion of the name is displayed.
Now also the following file name is correctly displayed:
this.is.a.bad.but.common.file.name.avi
Leandro
Index: videotree.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythvideo/mythvideo/videotree.cpp,v
retrieving revision 1.25
diff -b -u -2 -r1.25 videotree.cpp
--- videotree.cpp 20 Jan 2004 08:41:46 -0000 1.25
+++ videotree.cpp 7 Feb 2004 14:31:19 -0000
@@ -283,5 +283,5 @@
{
QString title = (*an_it);
- where_to_add->addNode(title.section(".",0,0), i, true);
+ where_to_add->addNode(title.section(".",0,-2), i,
true);
}
More information about the mythtv-dev
mailing list