Kodi Community Forum
Prioritize Hearing Impaired/CC On/Off - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Subtitle Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=143)
+---- Thread: Prioritize Hearing Impaired/CC On/Off (/showthread.php?tid=196874)



Prioritize Hearing Impaired/CC On/Off - constantine109 - 2014-06-03

This might already be implemented, but here it goes.

Currently 'Sync' subtitles are prioritized on top of list but sometimes CC/hearing impaired subtitles comes at top or random location.

What i would prefer would be a sorting "Sync > CC (at top)" if enabled and if disabled "Sync > CC (At bottom) since i'm not hearing impaired i wouldn't want it on top of the list to be automatically downloaded.

Is it possible to enable/disable hearing impaired already and i'm just too thick to find it?

I'm not sure if Sync sorting is integrated in the service or each specific addon. Would give me a clue where to code it in.


RE: Prioritize Hearing Impaired/CC On/Off - constantine109 - 2014-06-03

Did abit more digging and found it's located in service.py by each addon. By subscene.com addon as example:

Replacing:
subtitles.sort(key=lambda x: [not x['sync']])

with this (CC/Hearing impaired NOT prioritized):
subtitles.sort(key=lambda x: [not x['sync'],x['hearing_imp']])
or with this (CC/Hearing impaired prioritized):
subtitles.sort(key=lambda x: [not x['sync'],not x['hearing_imp']])

It gaves perfect result of what i wanted.

People can change this themselves. I'll try get this implemented as a setting in Subscene.com and OpenSubtitles.org addons.

You may close this topic if you have nothing to add.