Handle downloads which are directories
Bug #346893 reported by
Michael Still
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MythNetTV |
New
|
Undecided
|
Unassigned |
Bug Description
From email on the users list.
If a torrent uses a subdirectory to host the video file, then mythnettv downloads the files in the torrent and saves them correctly, but no import is done, as it tries to import the directory as if it where a file. I guess a simple check in program.py "Import" if the file is actualy a directory should be enough. Then if true recursively check the directory to import any files with an extension like "avi", "mov", "mkv" etc.. If more than one file is detected, then just add to the subtitle a "Part 1 of X" tag.
To post a comment you must log in.
Revision 279 now handles a download which creates a directory with a _single file_ in it correctly. The case where more than one video file is in the directory is not yet handled.