Skip to content

Commit

Permalink
Populate EpisodePart
Browse files Browse the repository at this point in the history
PVR 9 allows populating EpisodePart on recordings.  Update package for release
  • Loading branch information
emveepee committed Aug 17, 2024
1 parent fd0e894 commit 3542b86
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pvr.nextpvr/addon.xml.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon
id="pvr.nextpvr"
version="22.1.0"
version="22.2.0"
name="NextPVR PVR Client"
provider-name="Graeme Blackley">
<requires>@ADDON_DEPENDS@
<import addon="inputstream.ffmpegdirect" minversion="22.0.0"/>
<import addon="inputstream.ffmpegdirect" minversion="1.15.0" optional="true"/>
</requires>
<extension
point="kodi.pvrclient"
Expand Down
10 changes: 10 additions & 0 deletions pvr.nextpvr/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@

v22.2.0
- Port PR 266 from Omega
- Start timeshift in realtime for radio playback (266)
- Add support for episode and episode part parsing (266)
- Clean up duplicated S/E information sent from NextPVR in the subtitle when no subtitle is present. (266)
- Cache channel list updates, compress with zlib
- Upgrade tinyxml2
- Add EpisodePart to recordings

v22.1.0
- PVR Add-on API v9.0.0

Expand Down
3 changes: 3 additions & 0 deletions src/Recordings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ bool Recordings::UpdatePvrRecording(const tinyxml2::XMLNode* pRecordingNode, kod

tag.SetSeriesNumber(PVR_RECORDING_INVALID_SERIES_EPISODE);
tag.SetEpisodeNumber(PVR_RECORDING_INVALID_SERIES_EPISODE);
tag.SetEpisodePartNumber(PVR_RECORDING_INVALID_SERIES_EPISODE);
if (ParseNextPVRSubtitle(pRecordingNode, tag))
{
if (m_settings->m_separateSeasons && multipleSeasons && tag.GetSeriesNumber() != PVR_RECORDING_INVALID_SERIES_EPISODE)
Expand Down Expand Up @@ -482,6 +483,8 @@ bool Recordings::ParseNextPVRSubtitle(const tinyxml2::XMLNode *pRecordingNode, k
if (season != 0)
{
tag.SetSeriesNumber(season);
if (base_match[2].matched)
tag.SetEpisodePartNumber(std::atoi(base_match[2].str().c_str()));
hasSeasonEpisode = true;
}
base_sub_match = base_match[2];
Expand Down

0 comments on commit 3542b86

Please sign in to comment.