def CDREventArrived(sender, e): ##Get the Event object and display it pd = e.NewEvent.Properties["TargetInstance"] mbo = pd.Value if (mbo.Properties["VolumeName"].Value is not None): titleRetriever = TitleRetriever(mbo.Properties["DeviceID"].Value[0:1]); movieName = titleRetriever.getMovieName(); Console.WriteLine("Found: "+movieName) mkvFile = ripper.rip(titleRetriever.driveLetter, movieName) ripper.transcode(mkvFile, movieName)
def CDREventArrived(sender, e): ##Get the Event object and display it pd = e.NewEvent.Properties["TargetInstance"] mbo = pd.Value if (mbo.Properties["VolumeName"].Value is not None): titleRetriever = TitleRetriever(mbo.Properties["DeviceID"].Value[0:1]) movieName = titleRetriever.getMovieName() Console.WriteLine("Found: "+movieName) notifier.showBalloon("Begining Archive",movieName) mkvFile = ripper.rip(titleRetriever.driveLetter, movieName) ripper.transcode(mkvFile, movieName) else: notifier.showBalloon("Disk Ejected") Console.WriteLine("CD has been ejected")
def CDREventArrived(sender, e): ##Get the Event object and display it pd = e.NewEvent.Properties["TargetInstance"] mbo = pd.Value if mbo.Properties["VolumeName"].Value is not None: titleRetriever = TitleRetriever(mbo.Properties["DeviceID"].Value[0:1]) movieName = titleRetriever.getMovieName() Console.WriteLine("Found: " + movieName) notifier.showBalloon("Begining Archive", movieName) mkvFile = ripper.rip(titleRetriever.driveLetter, movieName) ripper.transcode(mkvFile, movieName) else: notifier.showBalloon("Disk Ejected") Console.WriteLine("CD has been ejected")