Skip to content

Commit

Permalink
Improve utf8 support for python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
emericg committed Mar 30, 2021
1 parent 754bca2 commit cb55245
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions OpenSubtitlesDownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ def hashFile(path):

def selectionGnome(subtitlesResultList):
"""GNOME subtitles selection window using zenity"""
subtitlesSelected = ''
subtitlesItems = ''
subtitlesSelected = u''
subtitlesItems = u''
subtitlesMatchedByHash = 0
subtitlesMatchedByName = 0
columnHi = ''
Expand All @@ -273,7 +273,7 @@ def selectionGnome(subtitlesResultList):
if opt_selection_hi == 'on':
columnHi = '--column="HI" '
if item['SubHearingImpaired'] == '1':
subtitlesItems += '"✔" '
subtitlesItems += u'"✔" '
else:
subtitlesItems += '"" '
if opt_selection_language == 'on':
Expand Down Expand Up @@ -331,8 +331,8 @@ def selectionGnome(subtitlesResultList):

def selectionKde(subtitlesResultList):
"""KDE subtitles selection window using kdialog"""
subtitlesSelected = ''
subtitlesItems = ''
subtitlesSelected = u''
subtitlesItems = u''
subtitlesMatchedByHash = 0
subtitlesMatchedByName = 0

Expand Down

0 comments on commit cb55245

Please sign in to comment.