Example #1
0
def copyImageToTemp(movieNumbers):
    if not os.path.exists(SysConst.getImageTempPath()):
        os.mkdir(SysConst.getImageTempPath())

    allImages = getAllImages(SysConst.getImageCachePath())
    for num in movieNumbers:
        for image in allImages:
            if num in image["fullpath"]:
                shutil.copy(image["fullpath"],
                            SysConst.getImageTempPath() + image["filename"])
                break
Example #2
0
def copyOneImageToTemp(actor, avNumber):
    if not os.path.exists(SysConst.getImageTempPath()):
        os.mkdir(SysConst.getImageTempPath())

    source = SysConst.getImageCachePath() + actor + "//" + avNumber + ".jpg"
    to = SysConst.getImageTempPath() + avNumber + ".jpg"
    shutil.copy(source, to)


# avList = [{"av_number": "ABS-072"}]
# pprint(findLocalMovies(avList=avList, path="G://Game//File//"))

#deleteSmallImages(SysConst.getImageCachePath())
#copyImageToTemp(["ABS-072"])
#copyOneImageToTemp("阿部乃美久", "ARMG-274")
Example #3
0
def getMagnetFromTemp():
    images = DiskIndex.getAllImages(SysConst.getImageTempPath())
    mags = []
    try:
        for image in images:
            mag = getMagnet(image["filename"][0:-4])
            if mag:
                print(mag)
                mags.append(mag)
    except Exception as err:
        print(err)
    finally:
        for mag in mags:
            print(mag)

    return mags