Jump to content


Photo

xmltvimport plugin update on Github


  • Please log in to reply
71 replies to this topic

Re: xmltvimport plugin update on Github #61 Dimitrij

  • PLi® Core member
  • 9,969 posts

+335
Excellent

Posted 8 November 2015 - 19:22

very, very stange

https://github.com/O...f8=✓&q=endswith

	def afterDownload(self, result, filename, deleteFile=False):
		print>>log, "[EPGImport] afterDownload", filename
		try:
			if not os.path.getsize(filename):
				raise Exception, "File is empty"
		except Exception, e:
			self.downloadFail(e)
			return
		if self.source.parser == 'epg.dat':
			if twisted.python.runtime.platform.supportsThreads():
				print>>log, "[EPGImport] Using twisted thread for DAT file"
				threads.deferToThread(self.readEpgDatFile, filename, deleteFile).addCallback(lambda ignore: self.nextImport())
			else:
				self.readEpgDatFile(filename, deleteFile)
				return
		if filename.endswith('.gz'):
			self.fd = gzip.open(filename, 'rb')
		else:
			self.fd = open(filename, 'rb')
		if deleteFile:


		if filename.endswith('.gz'):

problem this

filename is None

 

before --> filename is not None

if not os.path.getsize(filename):

Edited by Dimitrij, 8 November 2015 - 19:29.

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: xmltvimport plugin update on Github #62 WanWizard

  • PLi® Core member
  • 68,309 posts

+1,719
Excellent

Posted 8 November 2015 - 19:35

I noticed the same, can't get my head around it.

 

Did you see the other report? It says in the log that /etc/enigma2/epgimport.conf could not be found, but according to the user it does exist. And it should, otherwise it wouldn't know which EPG to download. So something very weird is going on.

 

Did you double check the file for tabs/spaces and other weird indentation issues? Perhaps the code is using another flow than we think it does?


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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: xmltvimport plugin update on Github #63 WanWizard

  • PLi® Core member
  • 68,309 posts

+1,719
Excellent

Posted 8 November 2015 - 20:02

Looking again at the error, it seem to be not that one, but the endswith on line 330 in do_download.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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: xmltvimport plugin update on Github #64 Dimitrij

  • PLi® Core member
  • 9,969 posts

+335
Excellent

Posted 8 November 2015 - 20:36

 

 

Did you see the other report? It says in the log that /etc/enigma2/epgimport.conf could not be found, but according to the user it does exist. And it should, otherwise it wouldn't know which EPG to download. So something very weird is going on.

 

 

This is a normal response.
That there is no custom filters.

# User selection stored here, so it goes into a user settings backup
SETTINGS_FILE = '/etc/enigma2/epgimport.conf'
....
def loadUserSettings(filename = SETTINGS_FILE):
	try:
		return pickle.load(open(filename, 'rb'))
	except Exception, e:
		print>>log, "[EPGImport] No settings", e
		return {"sources": []}

GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: xmltvimport plugin update on Github #65 Dimitrij

  • PLi® Core member
  • 9,969 posts

+335
Excellent

Posted 8 November 2015 - 21:10

Hi after flashing the vu+ , the epgimport no longer work. I get an error when manually starting the import.

Already tried everything what has been said in this post.

Here is the log of the epgimport

 

[EPGImport] autostart (0) occured at 1446988044.71
[EPGImport] No settings [Errno 2] No such file or directory: '/etc/enigma2/epgimport.conf'
[EPGImport] Selected sources: ['Rytec Spain XMLTV']
sourcesDone():  True ['Rytec Spain XMLTV']
[EPGImport] nextImport, source= Rytec Spain XMLTV
[EPGImport] Error at start: 'NoneType' object has no attribute 'endswith'

Twice performed the same imports


GigaBlue UHD Quad 4K /Lunix3-4K/Solo 4K


Re: xmltvimport plugin update on Github #66 WanWizard

  • PLi® Core member
  • 68,309 posts

+1,719
Excellent

Posted 8 November 2015 - 21:39

This is a normal response.
That there is no custom filters.

 

# User selection stored here, so it goes into a user settings backup
SETTINGS_FILE = '/etc/enigma2/epgimport.conf'
....
def loadUserSettings(filename = SETTINGS_FILE):
	try:
		return pickle.load(open(filename, 'rb'))
	except Exception, e:
		print>>log, "[EPGImport] No settings", e
		return {"sources": []}

 

So it's the pickle.load() that throws the exception, not the open()? Then I suggest the message could be more clear, since the file does exist, and therefore "no settings" is not true...


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (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: xmltvimport plugin update on Github #67 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 9 November 2015 - 14:34

Hi after flashing the vu+ , the epgimport no longer work. I get an error when manually starting the import.

Already tried everything what has been said in this post.

Here is the log of the epgimport

 

[EPGImport] autostart (0) occured at 1446988044.71
[EPGImport] No settings [Errno 2] No such file or directory: '/etc/enigma2/epgimport.conf'
[EPGImport] Selected sources: ['Rytec Spain XMLTV']
sourcesDone():  True ['Rytec Spain XMLTV']
[EPGImport] nextImport, source= Rytec Spain XMLTV
[EPGImport] Error at start: 'NoneType' object has no attribute 'endswith'

I gave up trying to fix this and simply went back to the older plugin version from before these updates started,and I have then simply locked it down using the chattr command,so it cannot be updated during an online image update..

Until this issue is resolved thats how things are going to remain because the old version works perfectly,but the newer version offering the extra options in the setup menu simply does not work at all giving me the exact same error that you have.

 

I suggest that you do the same as I have for the time being.

 

Ian.


Edited by ian1095, 9 November 2015 - 14:36.


Re: xmltvimport plugin update on Github #68 antonionaranjo

  • Member
  • 8 posts

0
Neutral

Posted 9 November 2015 - 18:58

Hi Ian,

 

Where can I find the older plugin that works .

 

Thanks in advance



Re: xmltvimport plugin update on Github #69 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 9 November 2015 - 19:49

Here you go.

 

Ian.

Attached Files



Re: xmltvimport plugin update on Github #70 antonionaranjo

  • Member
  • 8 posts

0
Neutral

Posted 9 November 2015 - 20:51

Hi Ian,

 

I have unzip it and copied the files to usr/lib/enigma/python/plugins/extensions/epgimport.

After that rebooted the box , but still got the same error.

Do I need to do something special ? 



Re: xmltvimport plugin update on Github #71 antonionaranjo

  • Member
  • 8 posts

0
Neutral

Posted 9 November 2015 - 21:28

Ian ,

 

Seems to work it's downloading the epg

 

Thanks for your help



Re: xmltvimport plugin update on Github #72 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 9 November 2015 - 21:45

Yes it does work.

 

But dont forget you need to lock it down otherwise when you update your image it will be overwritten by the new version again.

 

Ian.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users