예제 #1
0
def genTinfoilTitles():
	nut.initTitles(verify=False)
	nut.initFiles(verify=False)

	nut.refreshRegions(False)

	for region, languages in Config.regionLanguages().items():
		for language in languages:
			nut.importRegion(region, language, save=False)
			Titles.save('titledb/titles.%s.%s.json' % (region, language), False)
			#Print.info('%s - %s' % (region, language))
	nut.importRegion()
	exit(0)
예제 #2
0
파일: nut.py 프로젝트: blawar/nut
                nut.initFiles()
                for _, game in Nsps.files.items():
                    title = game.title()
                    if title.isUpdate or title.isDLC:
                        if game.isUpdateAvailable():
                            Print.info(title.getName())
                            Print.info(game.isUpdateAvailable())
                exit(0)

            if args.submit_keys:
                nut.initTitles()
                nut.initFiles()
                submitKeys()

            if args.refresh_regions:
                nut.refreshRegions()

            if args.import_region:
                region = args.import_region.upper()
                if not args.language:
                    args.language = Config.language

                args.language = args.language.lower()

                nut.importRegion(region, args.language)
                exit(0)

            if hasCdn:
                if args.cdn_save_languages:
                    cdn.Shogun.saveLanguages()
                    cdn.Shogun.saveRegions()