Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,12 @@ msgctxt "#30046"
msgid "For catchup streams report stream is not realtime"
msgstr ""

#empty strings from id 30047 to 30599
#. help: Advanced - disableStrictHLSfileExtensionCheck
msgctxt "#30047"
msgid "Disable strict HLS file extension check"
msgstr ""

# empty strings from id 30048 to 30599
#. ############
#. help info #
#. ############
Expand Down Expand Up @@ -233,3 +237,8 @@ msgstr ""
msgctxt "#30645"
msgid "For certain catchup streams such as HLS reporting that a live stream is not live can improve stream open times. If testing this option works for a catchup stream/provider, then add a [I]\"#KODIPROP=inputstream.ffmpegdirect.is_realtime_stream=false\"[/I] to the M3U entry in question. This setting should not be left enabled for all streams."
msgstr ""

#. help: Advanced - disableStrictHLSfileExtensionCheck
msgctxt "#30646"
msgid "Allows playing HLS streams without file extension or with unsuported file extension. This lowers the security requirements in ffmpeg."
msgstr ""
5 changes: 5 additions & 0 deletions inputstream.ffmpegdirect/resources/settings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@
<default>false</default>
<control type="toggle" />
</setting>
<setting id="disableStrictHLSfileExtensionCheck" type="boolean" label="30047" help="30646">
<level>2</level>
<default>false</default>
<control type="toggle" />
</setting>
</group>
</category>
</section>
Expand Down
4 changes: 4 additions & 0 deletions src/stream/FFmpegStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2287,6 +2287,10 @@ AVDictionary* FFmpegStream::GetFFMpegOptionsFromInput()
if (url.GetProtocol().empty() || url.IsProtocol("file"))
av_dict_set(&options, "protocol_whitelist", "file,http,https,tcp,tls,crypto", 0);

// Disable strict HLS file extension check
if (kodi::addon::GetSettingBoolean("disableStrictHLSfileExtensionCheck"))
av_dict_set(&options, "extension_picky", "0", 0);

if (url.IsProtocol("http") || url.IsProtocol("https"))
{
std::map<std::string, std::string> protocolOptions;
Expand Down
Loading