Jump to content


Photo

Virgen EPG patch for OpenPLi


  • Please log in to reply
35 replies to this topic

#1 Huevos

  • PLi® Contributor
  • 4,661 posts

+163
Excellent

Posted 2 June 2014 - 23:07

Modifications by Lraizer to allow for EPG data to be gathered on UK cable

 

--- a/data/setup.xml	2014-05-20 23:37:48.000000000 +0100
+++ b/data/setup.xml	2014-05-29 20:05:34.638320494 +0100
@@ -67,6 +67,7 @@
 		<item level="2" text="Enable freesat EPG" description="Use FreeSat EPG information when it is available.">config.epg.freesat</item>
 		<item level="2" text="Enable ViaSat EPG" description="Use ViaSat EPG information when it is available.">config.epg.viasat</item>
 		<item level="2" text="Enable Netmed EPG" description="Use Netmed EPG information when it is available.">config.epg.netmed</item>
+		<item level="2" text="Enable Virgin EPG" description="Use Virgin EPG information when it is available.">config.epg.virgin</item>
 		<item level="2" text="Maintain old EPG data for" description="Configure for how many minutes finished events should remain visible in the EPG. Useful when you need information about an event which has just finished, or has been delayed.">config.epg.histminutes</item>
 	</setup>
 	<setup key="subtitlesetup" title="Subtitle settings">
--- a/lib/dvb/epgcache.cpp	2014-05-20 23:37:48.000000000 +0100
+++ b/lib/dvb/epgcache.cpp	2014-05-22 14:38:18.000000000 +0100
@@ -466,7 +466,21 @@
 					eDebug("[eEPGCache] couldnt initialize schedule other reader!!");
 					return;
 				}
+#ifdef ENABLE_VIRGIN
+				res = demux->createSectionReader( this, data.m_VirginNowNextReader );
+				if ( res )
+				{
+					eDebug("[eEPGCache] couldnt initialize virgin nownext reader!!");
+					return;
+				}
 
+				res = demux->createSectionReader( this, data.m_VirginScheduleReader );
+				if ( res )
+				{
+					eDebug("[eEPGCache] couldnt initialize virgin schedule reader!!");
+					return;
+				}
+#endif
 #ifdef ENABLE_NETMED
 				res = demux->createSectionReader( this, data.m_NetmedScheduleReader );
 				if ( res )
@@ -1553,7 +1567,26 @@
 		m_ScheduleOtherReader->start(mask);
 		isRunning |= SCHEDULE_OTHER;
 	}
-
+#ifdef ENABLE_VIRGIN
+	if (eEPGCache::getInstance()->getEpgSources() & eEPGCache::VIRGIN_NOWNEXT)
+	{
+		mask.pid = 0x2bc;
+		mask.data[0] = 0x4E;
+		mask.mask[0] = 0xFE;
+		m_VirginNowNextReader->connectRead(bind(slot(*this, &eEPGCache::channel_data::readData), (int)eEPGCache::VIRGIN_NOWNEXT), m_VirginNowNextConn);
+		m_VirginNowNextReader->start(mask);
+		isRunning |= VIRGIN_NOWNEXT;
+	}
+	if (eEPGCache::getInstance()->getEpgSources() & eEPGCache::VIRGIN_SCHEDULE)
+	{
+		mask.pid = 0x2bc;
+		mask.data[0] = 0x50;
+		mask.mask[0] = 0xFE;
+		m_VirginScheduleReader->connectRead(bind(slot(*this, &eEPGCache::channel_data::readData), (int)eEPGCache::VIRGIN_SCHEDULE), m_VirginScheduleConn);
+		m_VirginScheduleReader->start(mask);
+		isRunning |= VIRGIN_SCHEDULE;
+	}
+#endif
 #ifdef ENABLE_NETMED
 	if (eEPGCache::getInstance()->getEpgSources() & eEPGCache::NETMED_SCHEDULE)
 	{
@@ -1614,6 +1647,22 @@
 			m_ScheduleOtherReader->stop();
 			m_ScheduleOtherConn=0;
 		}
+#ifdef ENABLE_VIRGIN
+		if ( !(haveData&VIRGIN_NOWNEXT) && (isRunning&VIRGIN_NOWNEXT) )
+		{
+			eDebug("[EPGC] abort non avail virgin nownext reading");
+			isRunning &= ~VIRGIN_NOWNEXT;
+			m_VirginNowNextReader->stop();
+			m_VirginNowNextConn=0;
+		}
+		if ( !(haveData&VIRGIN_SCHEDULE) && (isRunning&VIRGIN_SCHEDULE) )
+		{
+			eDebug("[EPGC] abort non avail virgin schedule reading");
+			isRunning &= ~VIRGIN_SCHEDULE;
+			m_VirginScheduleReader->stop();
+			m_VirginScheduleConn=0;
+		}
+#endif
 #ifdef ENABLE_NETMED
 		if ( !(haveData&NETMED_SCHEDULE) && (isRunning&NETMED_SCHEDULE) )
 		{
@@ -1736,6 +1785,21 @@
 			m_ScheduleOtherReader->stop();
 			m_ScheduleOtherConn=0;
 		}
+#ifdef ENABLE_VIRGIN
+		if (isRunning & VIRGIN_NOWNEXT)
+		{
+			isRunning &= ~VIRGIN_NOWNEXT;
+			m_VirginNowNextReader->stop();
+			m_VirginNowNextConn=0;
+		}
+		if (isRunning & VIRGIN_SCHEDULE)
+		{
+			isRunning &= ~VIRGIN_SCHEDULE;
+			m_VirginScheduleReader->stop();
+			m_VirginScheduleConn=0;
+		}
+
+#endif
 #ifdef ENABLE_NETMED
 		if (isRunning & NETMED_SCHEDULE)
 		{
@@ -1818,6 +1882,16 @@
 			map = 2;
 			break;
 #endif
+#ifdef ENABLE_VIRGIN
+		case VIRGIN_NOWNEXT:
+			reader = m_VirginNowNextReader;
+			map = 0;
+			break;
+		case VIRGIN_SCHEDULE:
+			reader = m_VirginScheduleReader;
+			map = 1;
+			break;
+#endif
 		default:
 			eDebug("[EPGC] unknown source");
 			return;
@@ -1855,6 +1929,16 @@
 				eDebugNoNewLine("netmed schedule other");
 				break;
 #endif
+#ifdef ENABLE_VIRGIN
+			case VIRGIN_NOWNEXT:
+				m_VirginNowNextConn=0;
+				eDebugNoNewLine("virgin nownext");
+				break;
+			case VIRGIN_SCHEDULE:
+				m_VirginScheduleConn=0;
+				eDebugNoNewLine("virgin schedule");
+				break;
+#endif
 			default: eDebugNoNewLine("unknown");break;
 		}
 		eDebug(" finished(%ld)", ::time(0));
--- a/lib/dvb/epgcache.h	2014-05-20 23:37:48.000000000 +0100
+++ b/lib/dvb/epgcache.h	2014-05-22 14:11:10.000000000 +0100
@@ -5,6 +5,7 @@
 #define ENABLE_MHW_EPG 1
 #define ENABLE_FREESAT 1
 #define ENABLE_NETMED 1
+#define ENABLE_VIRGIN 1
 
 #ifndef SWIG
 
@@ -200,6 +201,10 @@
 		ePtr<eConnection> m_stateChangedConn, m_NowNextConn, m_ScheduleConn, m_ScheduleOtherConn, m_ViasatConn;
 		ePtr<iDVBSectionReader> m_NowNextReader, m_ScheduleReader, m_ScheduleOtherReader, m_ViasatReader;
 		tidMap seenSections[4], calcedSections[4];
+#ifdef ENABLE_VIRGIN
+		ePtr<eConnection> m_VirginNowNextConn, m_VirginScheduleConn;
+		ePtr<iDVBSectionReader> m_VirginNowNextReader, m_VirginScheduleReader;
+#endif
 #ifdef ENABLE_NETMED
 		ePtr<eConnection> m_NetmedScheduleConn, m_NetmedScheduleOtherConn;
 		ePtr<iDVBSectionReader> m_NetmedScheduleReader, m_NetmedScheduleOtherReader;
@@ -419,6 +424,10 @@
 	,NETMED_SCHEDULE=512
 	,NETMED_SCHEDULE_OTHER=1024
 #endif
+#ifdef ENABLE_VIRGIN
+	,VIRGIN_NOWNEXT=2048
+	,VIRGIN_SCHEDULE=4096
+#endif
 	,EPG_IMPORT=0x80000000
 	};
 	void setEpgHistorySeconds(time_t seconds);
--- a/lib/python/Components/UsageConfig.py	2014-05-20 23:37:48.000000000 +0100
+++ b/lib/python/Components/UsageConfig.py	2014-05-29 20:10:19.246321389 +0100
@@ -259,6 +259,7 @@
 	config.epg.freesat = ConfigYesNo(default = True)
 	config.epg.viasat = ConfigYesNo(default = True)
 	config.epg.netmed = ConfigYesNo(default = True)
+	config.epg.virgin = ConfigYesNo(default = False)
 	config.misc.showradiopic = ConfigYesNo(default = True)
 	def EpgSettingsChanged(configElement):
 		from enigma import eEPGCache
@@ -273,12 +274,15 @@
 			mask &= ~eEPGCache.VIASAT
 		if not config.epg.netmed.value:
 			mask &= ~(eEPGCache.NETMED_SCHEDULE | eEPGCache.NETMED_SCHEDULE_OTHER)
+		if not config.epg.virgin.value:
+			mask &= ~(eEPGCache.VIRGIN_NOWNEXT | eEPGCache.VIRGIN_SCHEDULE)
 		eEPGCache.getInstance().setEpgSources(mask)
 	config.epg.eit.addNotifier(EpgSettingsChanged)
 	config.epg.mhw.addNotifier(EpgSettingsChanged)
 	config.epg.freesat.addNotifier(EpgSettingsChanged)
 	config.epg.viasat.addNotifier(EpgSettingsChanged)
 	config.epg.netmed.addNotifier(EpgSettingsChanged)
+	config.epg.virgin.addNotifier(EpgSettingsChanged)
 
 	config.epg.histminutes = ConfigSelectionNumber(min = 0, max = 120, stepwidth = 15, default = 0, wraparound = True)
 	def EpgHistorySecondsChanged(configElement):

 

Attached Files



Re: Virgen EPG patch for OpenPLi #2 littlesat

  • PLi® Core member
  • 57,166 posts

+698
Excellent

Posted 3 June 2014 - 06:56

We cannot test this as we do not live in the UK... Is the above tested on OpenPLi?

WIth diff we cannot do nothing... than it is still manual work... we need a good patch we can merge with "git am".... against our sources.

I hope you can help me with that...

Or are the files in the second file against our sources? Is it yours code?


Edited by littlesat, 3 June 2014 - 07:04.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Virgen EPG patch for OpenPLi #3 WanWizard

  • PLi® Core member
  • 70,523 posts

+1,810
Excellent

Posted 3 June 2014 - 07:23

An OpenTV reader would be handy for the UK too...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Virgen EPG patch for OpenPLi #4 Huevos

  • PLi® Contributor
  • 4,661 posts

+163
Excellent

Posted 3 June 2014 - 15:52

I'm not in the UK either. Patch has been tested by Abu Baniaz. He's in London. He's aware of this thread so can comment if necessary.

 

OpenTV for 28E is in the OpenViX version of CrossEPG. I've been using this for a few years and the lastest version is flawless. And on a multi tuner receiver it downloads from the inactive tuner. Brilliant.



Re: Virgen EPG patch for OpenPLi #5 Abu Baniaz

  • PLi® Contributor
  • 2,499 posts

+64
Good

Posted 3 June 2014 - 16:31

Hello,

The files are off the OpenPLi git on Sourceforge with the additional amendements required for DVB-C EPG in the UK. These were modified by Lraizer and have been tested.



Re: Virgen EPG patch for OpenPLi #6 LraiZer

  • Senior Member
  • 101 posts

+19
Neutral

Posted 3 June 2014 - 17:10

We cannot test this as we do not live in the UK... Is the above tested on OpenPLi?

WIth diff we cannot do nothing... than it is still manual work... we need a good patch we can merge with "git am".... against our sources.

I hope you can help me with that...

Or are the files in the second file against our sources? Is it yours code?

it tested as working ok on OpenPLi for me over past few weeks. the second file set were requested from me last night and were against your souces. this patch is against your sources today.

Attached Files



Re: Virgen EPG patch for OpenPLi #7 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 3 June 2014 - 17:24

OpenTV for 28E is in the OpenViX version of CrossEPG.

It is in all versions of Cross.



Re: Virgen EPG patch for OpenPLi #8 Robinson

  • Senior Member
  • 2,621 posts

+30
Good

Posted 3 June 2014 - 18:18

By the way, is there any chance to integrate Sky UK OpenTV into OpenPLi system -> EPG settings?

 

Attached Files


ET9000, OpenPLi 4.0, 13E, 19E

HD51, OpenPLi 6.2, 75E - 30W


Re: Virgen EPG patch for OpenPLi #9 Abu Baniaz

  • PLi® Contributor
  • 2,499 posts

+64
Good

Posted 3 June 2014 - 20:09

The thread is about DVB-C EPG in the UK.

 

Can we leave OpenTV EPG for another topic? Yes it is a good idea not having to depend on Cross EPG downloader.

 

Thanks.


Edited by Abu Baniaz, 3 June 2014 - 20:10.


Re: Virgen EPG patch for OpenPLi #10 Abu Baniaz

  • PLi® Contributor
  • 2,499 posts

+64
Good

Posted 4 June 2014 - 10:32

Many thanks @Littlesat

http://sourceforge.n...ed9ae249faede0/



Re: Virgen EPG patch for OpenPLi #11 LraiZer

  • Senior Member
  • 101 posts

+19
Neutral

Posted 5 June 2014 - 15:36

thanks for patch commit Littlesat, uk cable epg is working good now using OpenPLi.

 

FYI: up to  6am next day epg now populates while zapped to normal services. "PVR_EPG" service has a dedicated faster epg cycle for populating 7 day epg. Zapping to "PVR_EPG" for 2-3 minutes each day is required to poplulate a full week epg for all services.

Attached Files



Re: Virgen EPG patch for OpenPLi #12 littlesat

  • PLi® Core member
  • 57,166 posts

+698
Excellent

Posted 5 June 2014 - 17:39

The credits should not go to me... but to those who did offer the correct .patch... :D


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Virgen EPG patch for OpenPLi #13 pauldb

  • Member
  • 7 posts

0
Neutral

Posted 15 June 2014 - 09:54

can this be put in a  image i use now, or does the image have to be made up from scratch and the patches applied



Re: Virgen EPG patch for OpenPLi #14 littlesat

  • PLi® Core member
  • 57,166 posts

+698
Excellent

Posted 15 June 2014 - 10:11

What image are you using now?

Edited by littlesat, 15 June 2014 - 10:11.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Virgen EPG patch for OpenPLi #15 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 16 June 2014 - 09:49

Tried OpenATV 4.1? I believe I saw it there... ;)


<span style='font-family: comic sans ms,cursive'>"Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!</span><br /> <br /><span style='font-family: comic sans ms,cursive'>Laziness and cowardice are the reasons why such a large proportion of men, even when nature has long emancipated them from alien guidance..." I. Kant, "Political writings" (1784)</span><br /> <br /><span style='font-family: comic sans ms,cursive'><a class='bbc_url' href='<a class='bbc_url' href='http://eserver.org/p...lightenment.txt'>http://eserver.org/p...ent.txt</a>'><a class='bbc_url' href='http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a>'>http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a></a> - the jolly text on Enlightenment, at the basis of Modernity...</span>

Re: Virgen EPG patch for OpenPLi #16 Oadbylad

  • Member
  • 16 posts

-1
Neutral

Posted 17 June 2014 - 15:00

Just how to install on OpenPli4

Cant get me head round the manual install 


Dreambox C 800se HD Openpli 4v


Re: Virgen EPG patch for OpenPLi #17 steveharlow

  • Member
  • 1 posts

0
Neutral

Posted 28 July 2014 - 01:17

hi

 

quick question where do we place these file /etc?



Re: Virgen EPG patch for OpenPLi #18 Rob van der Does

  • Senior Member
  • 7,766 posts

+184
Excellent

Posted 28 July 2014 - 05:10

An OpenTV reader would be handy for the UK too...

That has been asked over and over again. The reader is available in Cross, which is Open Source.

As it is now we have to rely on a 3rd-party plugin to read the Open-TV data, which is IMHO a pity. Especially as PLi already supports quite a number of EPG data-formats.



Re: Virgen EPG patch for OpenPLi #19 WanWizard

  • PLi® Core member
  • 70,523 posts

+1,810
Excellent

Posted 28 July 2014 - 06:24

Until now no developer has picked this up, with the argument that the internal EPG code is a complete mess, and needs to be sorted first. But that doesn't seem to happen either...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Virgen EPG patch for OpenPLi #20 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 28 July 2014 - 06:36

WW, I'll pay for the post and packaging, for DM7025+... :D

 

Errrmmm, seriously speaking, though: isn't this your (OpenPLi) code? I mean, who wrote it and so any plans to sort it out? Maybe divide the tasks?

 

Lately, I have problems even with EPG Importer to work...

 

Thanx a bunch! :)


<span style='font-family: comic sans ms,cursive'>"Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!</span><br /> <br /><span style='font-family: comic sans ms,cursive'>Laziness and cowardice are the reasons why such a large proportion of men, even when nature has long emancipated them from alien guidance..." I. Kant, "Political writings" (1784)</span><br /> <br /><span style='font-family: comic sans ms,cursive'><a class='bbc_url' href='<a class='bbc_url' href='http://eserver.org/p...lightenment.txt'>http://eserver.org/p...ent.txt</a>'><a class='bbc_url' href='http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a>'>http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a></a> - the jolly text on Enlightenment, at the basis of Modernity...</span>


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users