Bug 272463 - Program Guide shows multiple entries
Summary: Program Guide shows multiple entries
Status: RESOLVED FIXED
Alias: None
Product: kaffeine
Classification: Applications
Component: general (other bugs)
Version First Reported In: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Mauro Carvalho Chehab
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-04 18:36 UTC by hugh1
Modified: 2016-06-22 22:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
EPG Fehler (81.29 KB, image/png)
2011-05-04 18:36 UTC, hugh1
Details
EPG example1 (92.93 KB, image/jpeg)
2016-06-21 22:12 UTC, hugh1
Details
EPG example 2 (155.23 KB, image/jpeg)
2016-06-21 22:13 UTC, hugh1
Details
Don't accept duplicated EPG events (2.71 KB, patch)
2016-06-22 03:05 UTC, Mauro Carvalho Chehab
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hugh1 2011-05-04 18:36:54 UTC
Created attachment 59621 [details]
EPG Fehler

Version:           unspecified (using KDE 4.6.2) 
OS:                Linux

Some entries appear more than once.

Reproducible: Sometimes




using Kaffeine 1.2.2
Comment 1 kabud 2012-02-15 22:11:59 UTC
me too. kaffeine 1.2.2, kde 4.7.4
Comment 2 marian.trenkwalder 2012-04-14 14:59:23 UTC
me too
the start time of the double entries are different.
eg:
Start;Duration;Title
14.04.2012 20:14; 00:50;Lie to me
14.04.2012 20:15; 00;50;Lie to me

both entries explain the same.
Comment 3 Mauro Carvalho Chehab 2016-06-06 00:19:13 UTC
This bug is too old, for a version < 1.3. Closing it, as the latest version is 2.0.1, and lots of things changed since version 1.2.x, including the usage of VLC as video display backend, support for DVB-T2 and ISDB-T via libVLC, etc.

You may check on the upstream version and see if the bug was solved. The README file contains instructions about how to compile it. You can find it at our git repository: 

https://quickgit.kde.org/?p=kaffeine.git 

If you find similar issues with version 2.0.1, please re-open.
Comment 4 hugh1 2016-06-18 18:16:28 UTC
Still the same problem with kaffeine 2.0.3
Comment 5 Mauro Carvalho Chehab 2016-06-21 21:57:27 UTC

(In reply to marian.trenkwalder from comment #2)
> me too
> the start time of the double entries are different.
> eg:
> Start;Duration;Title
> 14.04.2012 20:14; 00:50;Lie to me
> 14.04.2012 20:15; 00;50;Lie to me
> 
> both entries explain the same.

What I suspect is that this event has his time schedule shifted. So, Kaffeine got the event's first timestamp. Some time after, the new timestamp event arrived. As there's no field that uniquely identifies the event, a new entry was added with the second timestamp.

It is not too easy to fix this.  One way would be to check if a new event would conflict with another event on the same channel, but the hardest part would be to test if the logic is working, because we either need to be able to produce a test MPEG-TS or have a record of a TS where such change happened.
Comment 6 hugh1 2016-06-21 22:11:18 UTC
There are also double entries with same times but different descriptions, as you can see on the screenshots. 
TVs can handle it somehow.
Comment 7 hugh1 2016-06-21 22:12:27 UTC
Created attachment 99653 [details]
EPG example1
Comment 8 hugh1 2016-06-21 22:13:21 UTC
Created attachment 99654 [details]
EPG example 2
Comment 9 Mauro Carvalho Chehab 2016-06-22 03:05:13 UTC
Created attachment 99656 [details]
Don't accept duplicated EPG events

Please test the attached patch. It adds a logic that should avoid adding two conflicted events on the same channel. Try to run it on debug mode and see if it will fix the issue.

PS.: this patch is a little bit lazy when comparing two channels... it is just using "==" instead of verifying each fields. Maybe such logic may require changes and compare field by field (e. g. compare the chanel name, network ID and/or channel number).

The patch is against the latest Kaffeine version on git.
Comment 10 Mauro Carvalho Chehab 2016-06-22 22:42:39 UTC
I changed several things at the EPG logic, and included the above patch, that should be auto-cleaning the EPG table at the git version.

Your issue should have fixed. If not, please re-open with additional data. In such case, please use the --debug option, to gather the EIT update info.