Jump to content


Photo

Cancel a single job in Jobmanager (Task.py)


  • Please log in to reply
31 replies to this topic

Re: Cancel a single job in Jobmanager (Task.py) #21 mrdude

  • Senior Member
  • 90 posts

0
Neutral

Posted 17 July 2017 - 14:38

Yep it was a pain, I was looking at my code for a couple of days wondering why it wouldn't work - when there was nothing wrong with it. What else I notice is that sometimes when you write some code that 'should' work, you get an error such as a screen modal error or something else, sometimes I need to put in a few milliseconds delay before the code gets executed, and then it works fine - god only knows why???

 

Anyway it's all sorted now - thanks for your help.

 

Now I am on to learning about sqlite3 so I can add some favourites in a database as this is probably the best way to store data for a multi-content page. Ahh the joys of leaning a new language, and enigma2 (without hardly any decent documentation).



Re: Cancel a single job in Jobmanager (Task.py) #22 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 17 July 2017 - 15:35

Yes,till now when use  yellow button to add item to favourites.xml in TSmedia,the item added twice,this happened only with openvix and openatv ,i reviewed the code more than hundreds times without explanation,then to solve the problem i added block to add the same item twice.

unfortunately no good documentation and examples for enigma part programming while there is extensive references for python part

never used sqlite3 to store data and never seen it in any plugin apart from kodi plugins and i think will not easy and will be slow for enigma receivers ,expect xml methods are faster and easier  but I am sure about this comparison


Edited by mfaraj57, 17 July 2017 - 15:39.


Re: Cancel a single job in Jobmanager (Task.py) #23 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 17 July 2017 - 15:42

May to look for kodi plugins for using sqlite3 ,kodi plugins written purely with python.



Re: Cancel a single job in Jobmanager (Task.py) #24 mrdude

  • Senior Member
  • 90 posts

0
Neutral

Posted 17 July 2017 - 15:54

If you look the the internet radio plugin this uses sqlite, it's better and faster to store lots of data in a database, also it can be read from an online website or local quite easily - plus it's easy to search through and sort the data. That's probably when nearly all websites use them. Enigma2 can handle sqlite3 quite easily.

 

Example and guide here: https://pythonschool.../databases.html

 

I just tried it on enigma2 and it was pretty easy to make the database and tables, really all I need to do is read some info which I already know how to do, then save that info to a database, then populate another page with that info.

 

I plan an getting links from various iptv servers - then store them in the database so I can view them/removeand add them easily.



Re: Cancel a single job in Jobmanager (Task.py) #25 mrdude

  • Senior Member
  • 90 posts

0
Neutral

Posted 30 July 2017 - 23:05

Well I used sqlite3 in the end and it's very fast, also it's easy to use mod or use the database in other programs/plugins.

 

2d0gyna.jpg



Re: Cancel a single job in Jobmanager (Task.py) #26 WanWizard

  • PLi® Core member
  • 68,551 posts

+1,737
Excellent

Posted 31 July 2017 - 13:36

We used Sqlite in the old Enigma1 days for EPG data, on "crap" hardware like the DM7000, with success. So todays hardware shouldn't have a problem with it at all.


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: Cancel a single job in Jobmanager (Task.py) #27 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 31 July 2017 - 14:24

good,may use it to store favorites links in TSmedia instead storing to xml file.



Re: Cancel a single job in Jobmanager (Task.py) #28 WanWizard

  • PLi® Core member
  • 68,551 posts

+1,737
Excellent

Posted 31 July 2017 - 14:40

If it was up to me, all info goes into a database, from configuration to epg data to satellites.xml. It is the only way to get proper data consistency.


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: Cancel a single job in Jobmanager (Task.py) #29 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 31 July 2017 - 16:48

may be except satellites.xml because it is universal and easy to edit for user



Re: Cancel a single job in Jobmanager (Task.py) #30 WanWizard

  • PLi® Core member
  • 68,551 posts

+1,737
Excellent

Posted 31 July 2017 - 17:13

Which is exactly what I want to avoid. ;)


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: Cancel a single job in Jobmanager (Task.py) #31 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 31 July 2017 - 18:00

We used Sqlite in the old Enigma1 days for EPG data, on "crap" hardware like the DM7000, with success. So todays hardware shouldn't have a problem with it at all.


Today's settop boxes are way more powerful than the room-filling database servers I used to work with... You don't have to stick to sqlite, fullblown transactional databases will run fine.
The real issue is the software... We've talked about that before.
Real musicians never die - they just decompose

Re: Cancel a single job in Jobmanager (Task.py) #32 WanWizard

  • PLi® Core member
  • 68,551 posts

+1,737
Excellent

Posted 31 July 2017 - 18:31

I remember those. ;)

 

For our purposes I prefer not to go with Sqlite, as you would want to be able to create something multiuser/distributed.

 

In the end it's always software. And someone with the desire and motivation to dive in and deal with all the spaghetti. ;)


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.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users