File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ def FindBestSubtitleMatches(movie_filenames, language):
61
61
closest_matches = difflib .get_close_matches (basename , possibilities )
62
62
if closest_matches :
63
63
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' ]) ))
65
65
search_result = filtered [0 ]
66
66
yield movie_filename , search_result ['SubDownloadLink' ], '.' + search_result ['SubFormat' ]
67
67
else :
@@ -325,8 +325,7 @@ def PrintStatus(text, status):
325
325
if __name__ == '__main__' :
326
326
try :
327
327
import sys
328
- #Main(sys.argv)
329
- Main (['' , 'm:/incoming/Community.S04E03.HDTV.x264-LOL.mp4' ])
328
+ Main (sys .argv )
330
329
except :
331
330
import traceback
332
331
with file (__file__ + '.log' , 'a+' ) as log_file :
You can’t perform that action at this time.
0 commit comments