-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong language text in a4ksubtitles #8
Comments
I think the issue is the lang_ids.sort() at the end of get_lang_ids Commenting this out solves the problem |
@peno64 Thank you for the feedback. You can open a PR with your proposed changes and explain the issue there. |
Fixed in: a4k-openproject/a4kSubtitles#89 |
Thank you. I had it on test and also another user had my change on test and it looked also fine for him. Would have created a PR after some days but I see now that you already made the change. Great. I do have another change I once made but I don't exactly remember in which case it happened. Maybe when I played a youtube video or so. The comment I added then does explain it a bit. In service.py, line 28 after has_done_subs_check = True I added this:
Maybe you can also take a look at this change if it is (still) needed. |
@newt-sc
Hi,
There is an issue with a4kSubtitles and since there is no issues tab on the repo I can only contact you this way.
In above printscreen you can see that the flag shows Dutch but the text says English. This happens at least with providers subDL and podnadpisi.
In kodi settings both language Dutch and English are chosen.
As you can see on those printscreens, I made some changes in the code:
def create_listitem(item): # pragma: no cover
(item_name, item_ext) = os.path.splitext(item['name'])
item_name = item_name.replace('.', ' ')
item_ext = item_ext.upper()[1:]
item_service = item['service']
item_color = item.get('color', 'white')
'label2': '%s ([B]%s[/B]) ([B][COLOR %s]%s[/COLOR][/B])' % (item_name, item_ext, item_color, item_service),
I also changed this in subdl.py:
This shows this in the logfile:
2024-11-16 09:34:19.491 T:16860 info : service.subtitles.a4ksubtitles: subdl: Star Trek 2009 >en< >0< >Dutch<
2024-11-16 09:34:19.491 T:16860 info : service.subtitles.a4ksubtitles: subdl: Star.Trek.SCREENER.XviD-ROAR >nl< >1< >English<
As you can see, Dutch and English are switched.
This must have something to do with this:
But I don't know exactly what.
Is this something you can take a look at?
Thank you
The text was updated successfully, but these errors were encountered: