Jump to content


Photo

Autotimer stopped adding new timers since a few days


  • Please log in to reply
50 replies to this topic

Re: Autotimer stopped adding new timers since a few days #41 littlesat

  • PLi® Core member
  • 57,184 posts

+699
Excellent

Posted 21 November 2024 - 19:48

From an EPG source (xml source or provider?)

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


Re: Autotimer stopped adding new timers since a few days #42 WanWizard

  • PLi® Core member
  • 70,546 posts

+1,813
Excellent

Posted 21 November 2024 - 21:06

That was the question, yes. EPG readers should convert to UTF-8, if not, we might have to fix something. If XMLTV, then that provider needs to fix something.

 

Which is why I asked:

 

Autotimers are created either manually (you type  in the title and search criteria), or you create it from an EPG entry.

 

Assuming you did the last, I was wondering where the EPG data came from.

 

Did you receive it OTA from the channel provider ( in which case I would like to know provider and channel as we might have an EPG reader issue ) or from EPG Import ( in which case the data in the xmltv import was incorrect ).


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: Autotimer stopped adding new timers since a few days #43 klorinczi

  • Senior Member
  • 36 posts

0
Neutral

Posted 24 November 2024 - 11:30

And the question still remains: where did the ISO8859-15 text in the autotimer come from?


Did you see my screenshots?
I showed how it is possible to set ISO8859-15 encoding in Autotimer.

Re: Autotimer stopped adding new timers since a few days #44 littlesat

  • PLi® Core member
  • 57,184 posts

+699
Excellent

Posted 24 November 2024 - 11:47

What is the source from the epg and as far I understood it should always be utf-8

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


Re: Autotimer stopped adding new timers since a few days #45 klorinczi

  • Senior Member
  • 36 posts

0
Neutral

Posted 24 November 2024 - 11:51

EPG is likely UTF-8, coming from EIT.

I changed encoding in Autotimer plugin to ISO8859-15 accidentally.

Edited by klorinczi, 24 November 2024 - 11:52.


Re: Autotimer stopped adding new timers since a few days #46 WanWizard

  • PLi® Core member
  • 70,546 posts

+1,813
Excellent

Posted 24 November 2024 - 20:14

The point is:

 

You only need to change that if the timer you created was in ISO8859-15, and the EPG you want to match against is ISO8859-15. In all other cases, changing that setting is pointless.

 

Given the fact you had a crash when it was set to UTF-8, it suggests that something wasn't UTF-8, but ISO8859-15.

 

The question asked several times was "what exactly was not in UTF-8"? So we need to know if your provider is to blame, or we need to fix something.


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: Autotimer stopped adding new timers since a few days #47 Dimitrij

  • PLi® Core member
  • 10,330 posts

+350
Excellent

Posted 25 November 2024 - 06:20

 

Given the fact you had a crash when it was set to UTF-8, it suggests that something wasn't UTF-8, but ISO8859-15.

No, and again no!

 

 

 

1)See screenshot 1 and 2  https://forums.openp...dpost&p=1652751

 

I changed encoding in Autotimer plugin to ISO8859-15 accidentally.

2)run autotimer and see result in python3

File "/usr/lib/enigma2/python/Plugins/Extensions/AutoTimer/AutoTimer.py", line 322, in parseTimer

builtins.AttributeError: 'str' object has no attribute 'decode' 

'str' object has no attribute 'decode'  --> match.decode('UTF-8')

 

 

old code

		if timer.encoding != 'UTF-8':
			try:
				match = match.decode('UTF-8').encode(timer.encoding)
			except UnicodeDecodeError:
				pass

timer.encoding = "EPG encoding"(        default = timer.encoding
        selection = ['UTF-8', 'ISO8859-15']
        if default not in selection:
            selection.append(default)
        self.encoding = NoSave(ConfigSelection(choices=selection, default=default))


Edited by Dimitrij, 25 November 2024 - 06:25.

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


Re: Autotimer stopped adding new timers since a few days #48 littlesat

  • PLi® Core member
  • 57,184 posts

+699
Excellent

Posted 25 November 2024 - 08:16

A real solution should do all encodings and not just 2… or even ensure. But how does that source get iso8859-15 in the first place…

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


Re: Autotimer stopped adding new timers since a few days #49 klorinczi

  • Senior Member
  • 36 posts

0
Neutral

Posted 25 November 2024 - 11:20

Given the fact you had a crash when it was set to UTF-8, it suggests that something wasn't UTF-8, but ISO8859-15.

 

You wrote wrongly.

 

The inverse is true:

I had a crash when it was set to ISO8859-15. It suggests that something wasn't ISO8859-15, but UTF-8.

This caused crash in Autotimer plugin.

 

Autotimer should handle if wrong encoding is set, like ISO8859-15 is set in Autotimer, while UTF-8 is the EIT EPG encoding.



Re: Autotimer stopped adding new timers since a few days #50 littlesat

  • PLi® Core member
  • 57,184 posts

+699
Excellent

Posted 25 November 2024 - 18:00

The inverse is true

nd what if you ensure it is always UTF-8 when you compare?

Again.... what was the source/reason/story behind you got ISO8859-15 in the first place?


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


Re: Autotimer stopped adding new timers since a few days #51 WanWizard

  • PLi® Core member
  • 70,546 posts

+1,813
Excellent

Posted 25 November 2024 - 22:02

 

Given the fact you had a crash when it was set to UTF-8, it suggests that something wasn't UTF-8, but ISO8859-15.

 

You wrote wrongly.

 

Ok, now I get it. Thanks.
 


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.



5 user(s) are reading this topic

0 members, 5 guests, 0 anonymous users