Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Testing Required] update to PVR addon API 5.7.0 #52

Merged
merged 1 commit into from
Oct 28, 2017

Conversation

fuzzard
Copy link
Contributor

@fuzzard fuzzard commented Oct 28, 2017

This brings the addon upto API 5.7.0 compatibility
Removed deprecated methods and stubbed out new ones
Bumped jsoncpp to 0.10.6 and changed to non deprecated getFormattedErrorMessages(). No functional change for this, as the deprecation was done purely because of the type in the function name.

Please note, ive not been able to test functionality at all. If anyone can let me know if the changes work, or need further tweaking. This was a quick attempt to get up and running, so feedback is very appreciated.

Copy link
Member

@ksooo ksooo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this one. Already looking good. Some changes would be welcome, though.

src/PctvData.cpp Outdated
PVR_ERROR Pctv::GetChannelStreamProperties(const PVR_CHANNEL* channel, PVR_NAMED_VALUE* properties, unsigned int* iPropertiesCount)
{
std:string strUrl = "";
for (unsigned int i = 0; i<m_channels.size(); i++)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please insert blank around the <?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You also might want to look at my comments re. string initialization and 'better' for loop syntax in your other (pvr.filmon) PR. ;-)

@ksooo
Copy link
Member

ksooo commented Oct 28, 2017

Fine now, imo. Could you please squash non-jsoncpp stuff to a single commit and we're ready to merge (forget to request that for your other PR, btw ;-)

remove deprecated functions, implement basic requirements for GetRecordingStreamProperties()
and GetChannelStreamProperties()
getFormatedErrorMessages() was deprecated in jsoncpp for its replacement
getFormattedErrorMessages(). Deprecation was done purely for the typo. No functional change
@fuzzard
Copy link
Contributor Author

fuzzard commented Oct 28, 2017

squashed

@fuzzard fuzzard closed this Oct 28, 2017
@fuzzard fuzzard reopened this Oct 28, 2017
@ksooo
Copy link
Member

ksooo commented Oct 28, 2017

Why did you close this?

@ksooo
Copy link
Member

ksooo commented Oct 28, 2017

Man, you're even to fast for me...

@fuzzard
Copy link
Contributor Author

fuzzard commented Oct 28, 2017

Fat fingered the comment. Haha

@ksooo
Copy link
Member

ksooo commented Oct 28, 2017

Ready to merge, imo. Shall I hit the button?

@ksooo ksooo merged commit c6d10cb into kodi-pvr:master Oct 28, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants