-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Move subtitle addon core handling to core. #3552
Conversation
jenkins build this please |
#empty strings from id 24104 to 24999 | ||
msgctxt "#24104" | ||
msgid "Save subtitles to movie folder" | ||
msgstr "" |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
a thing i noticed is, xbmc is not settings focus to the list. i've updated DialogSubtitles.xml to use the new positioning goodies: |
Overall looking good. I assume the stack handling is still on the todo-list? |
not on my list short-term, so if you could adapt what you have that might be useful. |
Well I don't have anything yet beside "ideas" but this is certainly something I'd be willing to work on. When will this hit mainline? |
It's reliant on the list settings stuff, so towards the end of the merge window. |
@amet rebased up with @Montellese' list[string] implementation. Please test. |
<delimiter>,</delimiter> | ||
<minimum>1</minimum> | ||
</constraints> | ||
<control type="list" format="string" /> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
jenkins build this please |
<constraints> | ||
<options>languages</options> | ||
<delimiter>,</delimiter> | ||
<minimum>1</minimum> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@jmarshallnz I will try to test tonight to make sure all is ok with the service. are we ok to clean it up in the upcoming merge window before Gotham goes into freeze window or is what we have here final? we should really take care of default services and stack movies, as much as I hate them :) EDIT: just realized we missed merge window, didn't see it was 11th.. so we have some time to polish it and shove in in December. |
Fixes are fine after the fact. And this is ready to go in - it was reviewed during merge window. |
@amet: rebased from recent flurry of commits. Ready for your testing. jenkins build this please |
Move subtitle addon core handling to core.
@jmarshallnz what do you think about replacing the country flag icons with these? |
where were you 3 minutes ago?? EDIT: anyway its a skin thing, Jezz_X/ronie/you or whoever wants to change it is more than welcome to it |
i can add a PR with the new ones, if you want? |
They don't appear to be freely distributable? |
yeah you are right .. will look for some other ones. |
https://www.gosquared.com/resources/flag-icons/
are they okay? |
As discussed in xbmc#3552, this replace the subtitle flag icons with new 32x32 pixel icons from https://www.gosquared.com/resources/flag-icons/ This also fixes some wrong flags like uk. It's Ukrainian not United Kingdom.
@jmarshallnz Edit: fixed typos. |
They'll need icon.png for the add-ons manager I guess? If so, mayaswell make 'em square in the UI as well I should think - no point having two logos? |
indeed for addon manager. |
That might just be a skin thing though? @amet: any opinion? |
For reference Wunderground addon has it like in the resource folder |
@jmarshallnz no way to downlaod sub/idx subtitles now? |
That's a question for @amet |
CStdString strSubPath = URIUtils::AddFileToFolder(strDestPath, strSubName); | ||
|
||
// and copy the file across | ||
CFile::Cache(strUrl, strSubPath); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@taxigps I have no way of testing that... if you have a service that downloads sub/idx let me have it and we can just check for idx if ext is sub. should not be too hard |
@jmarshallnz @taxigps something like this ? http://paste.ubuntu.com/6521191/ but as said earlier, I have nothing to test with... all done blind. it compiles though :) |
@amet yes, the patch is ok. my service here https://github.com/taxigps/service.subtitles.shooter. you can test it. but not all movie have sub/idx subtitle. |
@amet two problem of your patch.
|
@amet I have fixed the problem of the patch, and it works well in my test. new patch here: http://paste.ubuntu.com/6523036/ |
@taxigps, feel free to make PR or push in as fix if you tested it... I won't be able test for few days |
This is primarily aimed at taking away some of the load from @amet at having to handle 1249591 subtitle services.
It moves the UI portion of the xbmc subtitles script into core, and has the services run as plugins from there. This will allow (in future) for better integration of downloading of subtitles. For now it's still a little clunky in that downloading of subtitles is still somewhat separate from embedded or external subs already on disk. Nonetheless, it's a starting point and IMO important to get that starting point in so that the subtitle service guys can get things done (it's a minor change for them) and so that skinners can get their changes done.
If anyone has any ideas on how it could be better integrated in the future, then that's cool - please discuss on forums to keep this focused on code discussion.
It does add a new window for skinners to deal with, but most already have it in place as most support the subtitles script. Their existing window can be transferred over just by renaming the file in most cases.
@Montellese: It relies on multi-select list settings, so a solution to that needs to happen first. Note that all it needs is a comma separated list of languages, so we don't actually need any special retrieving of a multi-select setting pre-broken down (as we'll just stuff it back together again).