Wiki Navigation
- Loading...
Overview
Auto update Subtitles field when external Subtitles are available.
Feature
Currently MF supports adding Subtitles via integration with the SubCentral plugin. However, when subtitles are added the Subtitles field is NOT updated, so Subtitles field must be updated manually or Subtitles logo and field data does not display.
When Importing files (DVDs/BRDs/MKVs, etc.) that contain subtitles in media info, AMCU does add data in the Subtitles field
AFAIK MediaPortal only supports .srt and .sub subtitles for media files (avi, mp4 etc)
What are the benefits of this feature?
To enable DB to display data in Subtitles field (and thus a subtitle logo in GUI) whenever you add a Subtitle - either via SubCentral (from My Films Details context menu) or externally .
How should this feature work?
Note: methods already exist in MediaPortal for subtile detection and playback - as defined in Videos Configuration on the Subtitles tab. I don't know if these can be used by external plugins or not but they already provide most if not all the features proposed here.
Since the methods work when playing back videos even from My Films I assume they are not limited to MP videos or videos Db.
There are two main use cases:
Subtitles downloaded via SubCentral
- Subtitles saved in Movie Folder
- Subtitles saved in .\Subitles\ sub folder of Movie folder
- Subtitles saved in [moviedrive]\Subitles folder
However SubCentral contains the language of the subtitle downloaded, so in the above cases there may be no need to grab the language from the filename. MF can simply enter the Language from SubCentral in the Subtitles field. However, a single method that works for any use case is preferred - i.e. detect subtitle language from filename or enter user's default language if it does not exist in filename.
Since MF already includes integration with SubCentral this option imo has a higher priority.
Subtitles downloaded externally
In this case MF must 'grab' the subtitle Language(s) from the file and needs to know where the subtitle is stored.
- MyFilms should always search the Movie folder (or subfolders) for .srt or .sub files (or others if supported by MP)
- MyFilms should check any extended search path entered by user in Setup
- This would require a setup option for Subtitles (possibly on the Trailers Setup tab?) similar to Trailers:
- MyFilms enters the language contained in the subtitle filename (if it exists) in the Subtitles field
- If the filename does not contain a language, then users default language is entered in Subtitles field.
Note: MP subtile file name convention = %moviename%.%language%.) - one language per subtitle file.
Subtitles contained in DVDs/BRDs/MKVS etc.
AMCU already supports adding subtitle languages to Subtitles field (separated by comma as of v 6.0.0)
Setup/Config
Ideally no setup is required IF MyFilms could read the values/folders defined in MP Videos Configuration.
IF not I propose adding a Subtitles: 'extended path' either to Trailers Tab or movie playback section on General tab.
AMCU does not require additional fields as there is imo no need to display the subtitle filenames. However, import and update processes need to be expanded to extract language of subtitle either from filenames or SubCentral (ideally filename since one method that works in both cases is probably best). Some of the code could be the same as that currently used to enter the languages extracted from mediainfo.
UI
When adding subtitles via SubCentral
No user interaction is required - Subtitle field is updated (and data is refreshed so subtitle logo and language displays in subtitle field.
When adding subtitles externally:
- user has an option on Details Screen > Updates - Check for subtitles - checks movie folder, subtitles subfolder and any path entered as extended path for subtitles.
- OR MP methods can be used to automatically add subtitle languages to Subtitles field whenever Details Screen is opened.
- A Global Update option on Main Screen to check/add all subtitles - Note: I am not suret if this is necessary? Imo it could be done via AMCU Update Movies. In most cases subtitles languages will already be added via SubCentral download, importing or updating. So such a Batch update is only required to initially update all records if necessary..
When Importing new movies, or Updating movies via AMCU
No user interaction is required - MyFilms automatically checks for subtitles files in movie folder/ subtitles subfolder or extended path with same name as movie file.
The same should apply to Singe Movie Update on View Movies tab.
When Updating data in GUI (Get Internet Info)
No user interaction is required - MF already displays Subtitles field for field updates.
Related

This page has no comments.