[TOOL] Script for generating -big.png high-res thumbs
#1
In order for Aeon to hack in high-res thumbs they have to be stored as <movie_filename>-big.png unless you have your movies all in separate folders. I already had all my high-res thumbs saved as .tbn so I made a quick script to duplicate them as -big.png files:

Code:
import os, sys, shutil, os.path

def isVideoFile (file):
    return file.endswith('.mkv') or file.endswith('.avi') or file.endswith('.wmv') or file.endswith('.iso')
        
def doDir (dir):
    print 'Scanning folder', dir
    for curFile in filter(isVideoFile, os.listdir(dir)):
        if os.path.isfile(os.path.join(dir, curFile[:curFile.rfind('.')]+'.tbn')):
            print '  Copying thumbnail for movie', curFile
            shutil.copy(os.path.join(dir, curFile[:curFile.rfind('.')]+'.tbn'), os.path.join(dir, curFile+'-big.png'))

if len(sys.argv) == 1:
    doDir(os.getcwd())
else:
    for dir in sys.argv[1:]:
        doDir(dir)

Should work on any OS as long as you have python installed. Just copy it to notepad and save it as something like "fileGen.py", then run python fileGen.py /my/movie/folder. Windows users will probably have to enclose their path in quotes: python.exe fileGen.py "C:\My\Movies".

Hope it helps somebody.
Reply
#2
merci, helped me Smile
Reply

Logout Mark Read Team Forum Stats Members Help
[TOOL] Script for generating -big.png high-res thumbs0