|
@ -126,6 +126,8 @@ def searchThumbnail(options): |
|
|
options['--thumbnail'] = video_directory + options.get('--name') + ".jpg" |
|
|
options['--thumbnail'] = video_directory + options.get('--name') + ".jpg" |
|
|
elif isfile(video_directory + options.get('--name') + ".jpeg"): |
|
|
elif isfile(video_directory + options.get('--name') + ".jpeg"): |
|
|
options['--thumbnail'] = video_directory + options.get('--name') + ".jpeg" |
|
|
options['--thumbnail'] = video_directory + options.get('--name') + ".jpeg" |
|
|
|
|
|
elif isfile(video_directory + options.get('--name') + ".png"): |
|
|
|
|
|
options['--thumbnail'] = video_directory + options.get('--name') + ".png" |
|
|
# Then, if we still not have thumbnail, check for thumbnail based on videofile name |
|
|
# Then, if we still not have thumbnail, check for thumbnail based on videofile name |
|
|
if not options.get('--thumbnail'): |
|
|
if not options.get('--thumbnail'): |
|
|
video_file = splitext(basename(options.get('--file')))[0] |
|
|
video_file = splitext(basename(options.get('--file')))[0] |
|
@ -133,6 +135,8 @@ def searchThumbnail(options): |
|
|
options['--thumbnail'] = video_directory + video_file + ".jpg" |
|
|
options['--thumbnail'] = video_directory + video_file + ".jpg" |
|
|
elif isfile(video_directory + video_file + ".jpeg"): |
|
|
elif isfile(video_directory + video_file + ".jpeg"): |
|
|
options['--thumbnail'] = video_directory + video_file + ".jpeg" |
|
|
options['--thumbnail'] = video_directory + video_file + ".jpeg" |
|
|
|
|
|
elif isfile(video_directory + video_file + ".png"): |
|
|
|
|
|
options['--thumbnail'] = video_directory + video_file + ".png" |
|
|
|
|
|
|
|
|
# Display some info after research |
|
|
# Display some info after research |
|
|
if not options.get('--thumbnail'): |
|
|
if not options.get('--thumbnail'): |
|
|