Skip to content

Commit

Permalink
Update recordings
Browse files Browse the repository at this point in the history
Add EpisodePart to recordings for API 9
  • Loading branch information
emveepee committed Aug 20, 2024
1 parent 0f9f4bb commit 5bba00b
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 1 deletion.
19 changes: 19 additions & 0 deletions pvr.demo/PVRDemoAddonSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,25 @@
<duration>7500</duration>
<radio>0</radio>
</recording>
<recording>
<title>Demo TV Recording entry 11</title>
<episodetitle>Demo TV Recording 3 Episode Part Name </episodetitle>
<url>https://mirrors.kodi.tv/demo-files/BBB/bbb_sunflower_1080p_30fps_normal.mp4</url>
<directory>/Directory1/TV Shows/</directory>
<channelname>Demo TV Channel 2</channelname>
<plotoutline>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</plotoutline>
<plot>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam cursus consectetur ipsum, eu tincidunt dui aliquam ac. Sed scelerisque, augue eu lacinia ultrices, libero ante ullamcorper augue, vel malesuada justo risus ac nulla. Quisque ac libero libero. Sed tincidunt, orci eu condimentum laoreet, felis odio mattis est, et lacinia metus enim in leo. Fusce faucibus tristique risus in varius. Etiam sagittis venenatis ligula nec rutrum. Etiam gravida dictum hendrerit. Sed sodales felis in sapien rutrum non malesuada nisi lobortis. Mauris iaculis ante odio. Nunc gravida erat convallis purus dignissim et ultricies orci dapibus. Aliquam erat volutpat. Vestibulum mi felis, malesuada ac tincidunt sit amet, pulvinar nec dolor. Pellentesque vehicula est vulputate mi adipiscing euismod. Donec ac mauris nulla. Nullam suscipit felis eu quam sodales ac bibendum nisi interdum. Curabitur non lectus a ante venenatis semper eget id justo. Ut facilisis, ligula pretium dictum congue, lacus dolor commodo nibh, sit amet sodales sed.</plot>
<genretype>10</genretype>
<genresubtype>0</genresubtype>
<time>14:00</time>
<duration>7500</duration>
<radio>0</radio>
<episode>2</episode>
<episodepart>4</episodepart>
<channel>2</channel>
<provider>2</provider> <!-- Demo Provider 2 -->
</recording>

<!-- Radio Recordings -->
<recording>
<title>Demo Radio Recording entry 1</title>
Expand Down
2 changes: 1 addition & 1 deletion pvr.demo/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="pvr.demo"
version="22.1.0"
version="22.2.0"
name="Demo PVR Client"
provider-name="Pulse-Eight Ltd., Team Kodi">
<requires>@ADDON_DEPENDS@</requires>
Expand Down
5 changes: 5 additions & 0 deletions pvr.demo/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v22.2.0
- add SetEpisodePartNumber() to EPG and Recordings
- add SetYear() to Recordings and EPG
- add some year and episode testing

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

Expand Down
4 changes: 4 additions & 0 deletions src/PVRDemo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -841,6 +841,10 @@ bool CPVRDemo::ScanXMLRecordingData(const XMLNode* pRecordingNode,
if (!XMLGetInt(pRecordingNode, "episode", recording.iEpisodeNumber))
recording.iEpisodeNumber = PVR_RECORDING_INVALID_SERIES_EPISODE;

/* Episode Part */
if (!XMLGetInt(pRecordingNode, "episodepart", recording.iEpisodePartNumber))
recording.iEpisodePartNumber = PVR_RECORDING_INVALID_SERIES_EPISODE;

/* genre type */
XMLGetInt(pRecordingNode, "genretype", recording.iGenreType);

Expand Down
1 change: 1 addition & 0 deletions src/PVRDemo.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ struct PVRDemoRecording
int iGenreSubType;
int iSeriesNumber;
int iEpisodeNumber;
int iEpisodePartNumber;
std::string strChannelName;
std::string strPlotOutline;
std::string strPlot;
Expand Down

0 comments on commit 5bba00b

Please sign in to comment.