Hi, I posted an idea of handling directory as one playitem earlier. Nobody commented the idea then and I am posting this again because I have been using this feature since and found it very usefull. Situation where there are couple of video files, text file, cover art, subtitles, etc. in one directory could be handled as one movie instead of a folder. These changes are made to 1.3.4 but I could make a real patch if this sounds like a festure that could be inserted to freevo. fxd file that changes the dir to playitem is named after directory, but might be better to name it just playitem.fxd or something similar.
Petri Damstén --- __init__.py.1.3.4 Thu Oct 2 16:02:50 2003 +++ __init__.py Wed Oct 1 15:06:49 2003 @@ -56,6 +56,7 @@ import util import xml_parser import os +import copy from videoitem import VideoItem @@ -66,6 +67,18 @@ """ items = [] + for file in copy.copy(files): + if (os.path.isdir(file)): + if (os.path.basename(file)[0] == '.'): + files.remove(file) + continue + f = os.path.join(file, os.path.basename(file) + '.' + config.SUFFIX_VIDEO_DEF_FILES[0]) + if (os.path.isfile(f)): + x = xml_parser.save_parseMovieFile(f, parent, files) + if x: + files.remove(file) + items += x + for file in util.find_matches(files, config.SUFFIX_VIDEO_DEF_FILES): x = xml_parser.save_parseMovieFile(file, parent, files) if x: ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel