Changeset 292 for indytube/trunk

Show
Ignore:
Timestamp:
11/26/07 11:22:41 (14 months ago)
Author:
andy
Message:

report converted stats only if we actually transcoded to a flv file properly

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • indytube/trunk/indytube/indytube.py

    r289 r292  
    163163                                                finish_time=time.time() 
    164164                                                logging.info("Encoded %s in %.2f seconds, using cmd -- %s" % (videofile,finish_time-start_time,theora_cmd)) 
     165 
     166                                                if os.path.exists(flvfile) and os.path.getsize(flvfile)>0: 
     167                                                        # OK ! It Worked. 
     168                                                        #XXX expand to OGG format checking 
     169                                                        worked = True 
    165170 
    166171                                        else: 
     
    189194                                        f.close() 
    190195 
    191                                         # OK ! It Worked. 
    192                                         worked = True 
    193  
    194196                                else: 
    195197                                        logging.info("FLV file size is zero - assuming encoding failed! Permanently skipping file!") 
     
    241243 
    242244    #install a signal handler to re-read configuration files. 
    243     # eg kill -USR2 <pid> 
     245    # eg kill -s USR2 <pid> 
    244246    signal.signal(signal.SIGUSR2, indytuber.rereadConfig) 
    245247