Skip to content

Commit

Permalink
Merge pull request kodi-pvr#442 from phunkyfish/pvr-prop-epgplaybacka…
Browse files Browse the repository at this point in the history
…slive

PVR prop for epgplaybackaslive
  • Loading branch information
phunkyfish authored Oct 27, 2020
2 parents 5a1a51a + 9228081 commit 21e0e49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ plugin://plugin.video.my-vod-addon/play/catalog/channels/d8659669-b964-414c-aa9c
- For `Channel G` this is an example of a flussonic style entry which auto generates the catchup-source.
- For `Channel H` this is an example of a xtream codes style entry which auto generates the catchup-source for `ts` streams.
- For `Channel I` this is an example of a xtream codes style entry which auto generates the catchup-source for `m3u8` streams.
- For `Channel J` this is an example of an VOD style entry which will only populated and play the `catchup-source` using a value of 3 `catchup-days`.
- For `Channel K` this is an example of an VOD style entry which use a default `catchup-source` of `{catchup-id}` and will allow playback of any EPG entry with a `catchup-id` past, present or future via a Kodi plugin URL.
- For `Channel J` this is an example of a VOD style entry which will only populated and play the `catchup-source` using a value of 3 `catchup-days`.
- For `Channel K` this is an example of a VOD style entry which uses a default `catchup-source` of `{catchup-id}` and will allow playback of any EPG entry with a `catchup-id` past, present or future via a Kodi plugin URL.

*Channel k Plugin example:*

Expand Down
2 changes: 1 addition & 1 deletion src/iptvsimple/CatchupController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ void CatchupController::ProcessEPGTagForVideoPlayback(const kodi::addon::PVREPGT

void CatchupController::SetCatchupInputStreamProperties(bool playbackAsLive, const Channel& channel, std::map<std::string, std::string>& catchupProperties, const StreamType& streamType)
{
catchupProperties.insert({"epgplaybackaslive", playbackAsLive ? "true" : "false"});
catchupProperties.insert({PVR_STREAM_PROPERTY_EPGPLAYBACKASLIVE, playbackAsLive ? "true" : "false"});

catchupProperties.insert({"inputstream.ffmpegdirect.is_realtime_stream",
StringUtils::EqualsNoCase(channel.GetProperty(PVR_STREAM_PROPERTY_ISREALTIMESTREAM), "true") ? "true" : "false"});
Expand Down

0 comments on commit 21e0e49

Please sign in to comment.