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

[videodb] don't set the playcount on scan if missing episode/season numbers #4775

Merged
merged 1 commit into from May 25, 2014

Conversation

jmarshallnz
Copy link
Contributor

When adding new episodes on scan we lookup to see if we have a previously matching episode/season for this show with an existing playcount in order (I'm guessing?) to preserve the playcount for duplicates.

This causes issues if the episode/season numbers are not specified, as any previous episode matches.

I'm guessing that we pretty much don't support very well the latter case (i.e. where aired date is specified but season/episode aren't). Also, I don't really see the point of this codeblock - it only matches existing episodes that match season/episode number but are duplicates. Seems to me that we should just be detecting the dupes instead?

Fixes #15234.

@vdrfan, @Montellese please take a look.

…n when adding new episodes if the new episode doesn't have a defined episode and season number. fixes xbmc#15234
@MartijnKaijser MartijnKaijser added this to the Pending for inclusion milestone May 24, 2014
@Montellese
Copy link
Member

Looks ok.

@jmarshallnz
Copy link
Contributor Author

jenkins build this please

jmarshallnz added a commit that referenced this pull request May 25, 2014
[videodb] don't set the playcount on scan if missing episode/season numbers
@jmarshallnz jmarshallnz merged commit 4115565 into xbmc:master May 25, 2014
@jmarshallnz jmarshallnz deleted the empty_episode_playcount branch May 25, 2014 00:41
@jmarshallnz
Copy link
Contributor Author

As I suspected, it's exactly there to deal with duplicates:

#2457

@t-nelson t-nelson removed the Gotham label Jun 7, 2014
@MartijnKaijser MartijnKaijser modified the milestones: Helix 14.0-alpha1, Pending for inclusion Jun 7, 2014
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

4 participants