Example #1
0
File: nut.py Project: blawar/nut
                if args.scrape_title:
                    nut.initTitles()
                    nut.initFiles()

                    if not Titles.contains(args.scrape_title):
                        Print.error('Could not find title ' +
                                    args.scrape_title)
                    else:
                        Titles.get(args.scrape_title).scrape(False)
                        Titles.save()
                        # Print.info(repr(Titles.get(args.scrape_title).__dict__))
                        pprint.pprint(Titles.get(args.scrape_title).__dict__)

                if args.download_all:
                    nut.downloadAll()
                    Titles.save()

            if args.gen_tinfoil_titles:
                genTinfoilTitles()

            if args.compression_stats:
                compressionStats()

            if args.unlock_all:
                unlockAll(args.copy)
                pass

            if args.unlock:
                nut.initTitles()
                nut.initFiles()
Example #2
0
File: Api.py Project: carlchina/nut
def getCdnDownloadAll(request, response):
    nut.downloadAll()
    return success(request, response, "Fin")