Skip to content

Commit fd64188

Browse files
committed
Removed debugging code on Main() left by accident
Should probably use a mock to ensure that is correct
1 parent 66ac14c commit fd64188

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ss.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def FindBestSubtitleMatches(movie_filenames, language):
6161
closest_matches = difflib.get_close_matches(basename, possibilities)
6262
if closest_matches:
6363
filtered = [x for x in search_results if x['SubFileName'] in closest_matches]
64-
filtered.sort(key=lambda x: (closest_matches.index(x['SubFileName']), -x['SubDownloadsCnt']))
64+
filtered.sort(key=lambda x: (closest_matches.index(x['SubFileName']), -int(x['SubDownloadsCnt'])))
6565
search_result = filtered[0]
6666
yield movie_filename, search_result['SubDownloadLink'], '.' + search_result['SubFormat']
6767
else:
@@ -325,8 +325,7 @@ def PrintStatus(text, status):
325325
if __name__ == '__main__':
326326
try:
327327
import sys
328-
#Main(sys.argv)
329-
Main(['', 'm:/incoming/Community.S04E03.HDTV.x264-LOL.mp4'])
328+
Main(sys.argv)
330329
except:
331330
import traceback
332331
with file(__file__ + '.log', 'a+') as log_file:

0 commit comments

Comments
 (0)