Exemple #1
0
PROWL = config.getboolean('PROWL', 'prowl')
PROWL_KEY = config.get('PROWL', 'key')

#
#   CODE
#

if PROWL:
    try:
        import prowlpy
    except:
        print 'Prowl Support requires prowlpy installed https://github.com/jacobb/prowlpy'

    prowl = prowlpy.Prowl(PROWL_KEY)

MKVapi = makeMKV()

if (MKVapi.findDisc(MKV_TEMP_OUTPUT)):
    movieTitle = MKVapi.getTitle()

    if not os.path.exists('%s/%s' % (MKV_SAVE_PATH, movieTitle)):
        os.makedirs('%s/%s' % (MKV_SAVE_PATH, movieTitle))

        if PROWL:
            try:
                prowl.add('makeMKV', 'Start Rip - ' + movieTitle, movieTitle,
                          1, None, None)
            except:
                pass

        stopwatch = Timer()