Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions VideoSort.py
Original file line number Diff line number Diff line change
Expand Up @@ -475,10 +475,10 @@ def move_satellites(videofile, dest):
if guess and 'subtitle_language' in guess:
fbase = fbase[:fbase.rfind('.')]
# Use alpha2 subtitle language from GuessIt (en, es, de, etc.)
subpart = '.' + guess['subtitle_language'][0].alpha2
subpart = '.' + guess['subtitle_language'].alpha2
if verbose:
if subpart != '':
print('Satellite: %s is a subtitle [%s]' % (filename, guess['subtitle_language'][0]))
print('Satellite: %s is a subtitle [%s]' % (filename, guess['subtitle_language']))
else:
# English (or undetermined)
print('Satellite: %s is a subtitle' % filename)
Expand All @@ -489,7 +489,7 @@ def move_satellites(videofile, dest):
if guess is not None:
# Guess details are not important, just that there was a match
fbase = base
if fbase.lower() == base.lower():
if fbase.lower() != base.lower():
old = fpath
new = destbasenm + subpart + fext
if verbose:
Expand Down