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

add 'CVideoDatabase::GetPreviousEpisodeNotWatched' function #1780

Closed
wants to merge 1 commit into from
Closed

add 'CVideoDatabase::GetPreviousEpisodeNotWatched' function #1780

wants to merge 1 commit into from

Conversation

ikkemaniac
Copy link

add check for unwatched episodes hooked in the 'OnPlayMedia' function
to inform the user of unwatched episodes from earlier this or previous
seasons.

wrote this for myself, maybe you find it usefull.

Regards,

add check for unwatched episodes hooked in the 'OnPlayMedia' function
to inform the user of unwatched episodes from earlier this or previous
seasons.
@jmarshallnz
Copy link
Contributor

I'm not sure whether we'll take the feature, but in general, please follow XBMC code guidelines ( braces on separate lines, make sure indenting is spaces using 2 spaces). Also, make sure you don't have extraneous comments or extraneous log statements in your patch.

Lastly, please feel free to use multi-line select statements instead of insanely long lines.

Your implementation seems reasonable, though I'd copy the item rather than just the path when you transform, and also eliminate the CFileItemPtr typedef in VideoDatabase.h by just passing a const CFileItem &.

This will be discussed post Frodo, so no need to make any changes should you not have the time etc.

@ikkemaniac
Copy link
Author

Ok, let me know if there's intrest, I will fix all suggestions then.

@MartijnKaijser
Copy link
Member

@jmarshallnz
is this something we will take?

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.

None yet

3 participants