Skip to content

Commit

Permalink
Merge pull request #193 from dcesari/duration
Browse files Browse the repository at this point in the history
Duration specifier support matching iptvsimple
  • Loading branch information
phunkyfish authored Jul 22, 2022
2 parents c10a478 + 8ffd4b7 commit 9e29c33
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion inputstream.ffmpegdirect/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="inputstream.ffmpegdirect"
version="20.2.3"
version="20.3.0"
name="Inputstream FFmpeg Direct"
provider-name="Ross Nicholson">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
3 changes: 3 additions & 0 deletions inputstream.ffmpegdirect/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
v20.3.0
- Support ${duration} format specifier

v20.2.3
- Revert: Update source URL to kodi mirror

Expand Down
1 change: 1 addition & 0 deletions src/stream/FFmpegCatchupStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ std::string FormatDateTime(time_t timeStart, time_t duration, const std::string
FormatUtc("{lutc}", timeNow, formattedUrl);
FormatUtc("${now}", timeNow, formattedUrl);
FormatUtc("${timestamp}", timeNow, formattedUrl);
FormatUtc("${duration}", duration, formattedUrl);
FormatUtc("{duration}", duration, formattedUrl);
FormatUnits("duration", duration, formattedUrl);
FormatUtc("${offset}", timeNow - timeStart, formattedUrl);
Expand Down

0 comments on commit 9e29c33

Please sign in to comment.