Ticket #2150: mythburn-use-localfilename.diff
File mythburn-use-localfilename.diff, 1.2 KB (added by , 18 years ago) |
---|
-
mythburn.py
1015 1015 if doesFileExist(mediafile) == False: 1016 1016 fatalError("Source file does not exist: " + mediafile) 1017 1017 1018 if file.hasAttribute("localfilename"): 1019 mediafile = file.attributes["localfilename"].value 1020 1018 1021 #write( "Original file is",os.path.getsize(mediafile),"bytes in size") 1019 1022 getFileInformation(file, os.path.join(folder, "info.xml")) 1020 1023 1021 if file.hasAttribute("localfilename"):1022 mediafile = file.attributes["localfilename"].value1023 1024 1024 getStreamInformation(mediafile, os.path.join(folder, "streaminfo.xml"), 0) 1025 1025 1026 1026 videosize = getVideoSize(os.path.join(folder, "streaminfo.xml")) … … 2722 2734 2723 2735 mediafile="" 2724 2736 2725 if file.attributes["type"].value=="recording": 2737 if file.hasAttribute("localfilename"): 2738 mediafile=file.attributes["localfilename"].value 2739 elif file.attributes["type"].value=="recording": 2726 2740 mediafile = os.path.join(recordingpath, file.attributes["filename"].value) 2727 2741 elif file.attributes["type"].value=="video": 2728 2742 mediafile=os.path.join(videopath, file.attributes["filename"].value)