Skip to content
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

[subtitle] load .sup file like other external subtitles. #20471

Merged
merged 1 commit into from Nov 9, 2021

Conversation

taxigps
Copy link
Member

@taxigps taxigps commented Nov 6, 2021

Description

Scan .sup file use ScanForExternalSubtitles and support to load .sup file in GUIDialogSubtitleSettings

Motivation and context

https://forum.kodi.tv/showthread.php?tid=356403

How has this been tested?

What is the effect on users?

Screenshots (if appropriate):

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • Clean up (non-breaking change which removes non-working, unmaintained functionality)
  • Improvement (non-breaking change which improves existing functionality)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that will cause existing functionality to change)
  • Cosmetic change (non-breaking change that doesn't touch code)
  • None of the above (please explain below)

Checklist:

  • My code follows the Code Guidelines of this project
  • My change requires a change to the documentation, either Doxygen or wiki
  • I have updated the documentation accordingly
  • I have read the Contributing document
  • I have added tests to cover my change
  • All new and existing tests passed

@taxigps taxigps added Type: Feature non-breaking change which adds functionality v20 Nexus labels Nov 6, 2021
@taxigps taxigps added this to the Nexus 20.0 Alpha 1 milestone Nov 6, 2021
@taxigps taxigps self-assigned this Nov 6, 2021
@taxigps
Copy link
Member Author

taxigps commented Nov 6, 2021

@enen92 reworked. please review again.

Copy link
Collaborator

@CastagnaIT CastagnaIT left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think you have to add the subtitle extension also in to these files (look the lists):
xbmc/network/upnp/UPnPInternal.cpp
xbmc/platform/darwin/ios/Info.plist.in

xbmc/cores/VideoPlayer/VideoPlayer.cpp Outdated Show resolved Hide resolved
xbmc/cores/VideoPlayer/VideoPlayer.cpp Outdated Show resolved Hide resolved
xbmc/cores/VideoPlayer/VideoPlayer.cpp Outdated Show resolved Hide resolved
@taxigps
Copy link
Member Author

taxigps commented Nov 6, 2021

@CastagnaIT updated

Copy link
Member

@enen92 enen92 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, only suggestion is to make -1 some error constexpr so it conveys something meaningful but it's fine either way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature non-breaking change which adds functionality v20 Nexus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants