Ticket #2150: mythburn-use-localfilename.diff

File mythburn-use-localfilename.diff, 1.2 KB (added by spin667@…, 18 years ago)
  • mythburn.py

     
    10151015    if doesFileExist(mediafile) == False:
    10161016        fatalError("Source file does not exist: " + mediafile)
    10171017
     1018    if file.hasAttribute("localfilename"):
     1019            mediafile = file.attributes["localfilename"].value
     1020
    10181021    #write( "Original file is",os.path.getsize(mediafile),"bytes in size")
    10191022    getFileInformation(file, os.path.join(folder, "info.xml"))
    10201023
    1021     if file.hasAttribute("localfilename"):
    1022             mediafile = file.attributes["localfilename"].value
    1023 
    10241024    getStreamInformation(mediafile, os.path.join(folder, "streaminfo.xml"), 0)
    10251025
    10261026    videosize = getVideoSize(os.path.join(folder, "streaminfo.xml"))
     
    27222734
    27232735    mediafile=""
    27242736
    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":
    27262740        mediafile = os.path.join(recordingpath, file.attributes["filename"].value)
    27272741    elif file.attributes["type"].value=="video":
    27282742        mediafile=os.path.join(videopath, file.attributes["filename"].value)