Jump to content


Photo

BBCiplayer


  • Please log in to reply
25 replies to this topic

#1 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 10 July 2018 - 08:46

Please find attached a new enigma2 plugin BBCiplayer.

 

Regards, pcd.

Attached Files



Re: BBCiplayer #2 Robinson

  • Senior Member
  • 2,614 posts

+30
Good

Posted 10 July 2018 - 11:36

Is this for radio or TV services? Or both?

By the way, is it geo-blocked?


ET9000, OpenPLi 4.0, 13E, 19E

HD51, OpenPLi 6.2, 75E - 30W


Re: BBCiplayer #3 Rick Hunter

  • PLi® Core member
  • 9,048 posts

+56
Good

Posted 10 July 2018 - 11:52

I just installed the plugin. 

When using a DNS service lice unlocator it will work.. otherwise I got a error.

I've tested it with Live TV and VOD.


Plinux member We have a.. (ehmm.. morgage) house.

Re: BBCiplayer #4 Abu Baniaz

  • PLi® Contributor
  • 2,414 posts

+61
Good

Posted 10 July 2018 - 13:22

Is this a standard alone plugin or for use with Kodidirect?

 

I used as standalone on a mutant HD51

 

error.log

Here in default-py sys.argv = ['/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugins/plugin.video.iplayerwww/default.py', '1', '']
Here in default-py sys.argv B= ['plugin://plugin.video.iplayerwww/', '1', '']
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugins/plugin.video.iplayerwww/default.py", line 42, in <module>
    import ipwww_common as Common
  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugins/plugin.video.iplayerwww/resources/lib/ipwww_common.py", line 6, in <module>
    import requests
  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/scripts/script.module.requests/lib/requests/__init__.py", line 43, in <module>
    import urllib3
ImportError: No module named urllib3

 

e.log was blank

 

porncenter.txt

plugin.video.iplayerwww

 

 

test.txt

in action=


Re: BBCiplayer #5 Rick Hunter

  • PLi® Core member
  • 9,048 posts

+56
Good

Posted 10 July 2018 - 13:56

It is working with a Mutant HD51 with a develop image. 

 

With the logfile: No module named urllib3

 

Is the module: python-urllib3 installed?


Plinux member We have a.. (ehmm.. morgage) house.

Re: BBCiplayer #6 Abu Baniaz

  • PLi® Contributor
  • 2,414 posts

+61
Good

Posted 14 July 2018 - 23:50

 

Is the module: python-urllib3 installed?

 

 

No it wasn't. Hopefully it can be added to the dependencies for next version.

 

However, next stumbling block is below. I am afraid I don't know which package to install for "chardet"

Here in default-py sys.argv = ['/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugins/plugin.video.iplayerwww/default.py', '1', '']

Here in default-py sys.argv B= ['plugin://plugin.video.iplayerwww/', '1', '']

Traceback (most recent call last):

  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugins/plugin.video.iplayerwww/default.py", line 42, in <module>

    import ipwww_common as Common

  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugins/plugin.video.iplayerwww/resources/lib/ipwww_common.py", line 6, in <module>

    import requests

  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/scripts/script.module.requests/lib/requests/__init__.py", line 44, in <module>

    import chardet

ImportError: No module named chardet

Reason I asked whether plugin was standalone or not is because of the text in the on the plugin page as shown in the attached screenshot.

Attached Files



Re: BBCiplayer #7 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 15 July 2018 - 11:13

Please unzip the attached and ftp the script.module.chardet to the plugin folder /ITV/scripts. Regards.

Attached Files



Re: BBCiplayer #8 Rick Hunter

  • PLi® Core member
  • 9,048 posts

+56
Good

Posted 15 July 2018 - 22:37

I've placed the files.. but got a GSOD

 

Traceback (most recent call last):

  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 69, in action

  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 49, in action

  File "/usr/lib/enigma2/python/Plugins/Extensions/ITV/plugin.py", line 3015, in okClicked

    self.okClicked2()

  File "/usr/lib/enigma2/python/Plugins/Extensions/ITV/plugin.py", line 3040, in okClicked2

    self.stream() 

  File "/usr/lib/enigma2/python/Plugins/Extensions/ITV/plugin.py", line 3218, in stream

    self.p = os.popen(cmd)

OSError: [Errno 12] Cannot allocate memory

 

But I think this must be moved into the ITV plugin postings.. 


Edited by Rick Hunter, 15 July 2018 - 22:38.

Plinux member We have a.. (ehmm.. morgage) house.

Re: BBCiplayer #9 Rick Hunter

  • PLi® Core member
  • 9,048 posts

+56
Good

Posted 15 July 2018 - 22:41

But funny to mention is that the Same error appears with the BBC iPlayer plugin. 

 

Traceback (most recent call last):

  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 69, in action

  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 49, in action

  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugin.py", line 3015, in okClicked

    self.okClicked2()

  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugin.py", line 3040, in okClicked2

    self.stream() 

  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugin.py", line 3218, in stream

    self.p = os.popen(cmd)

OSError: [Errno 12] Cannot allocate memory

 

Seen with a Develop image at the Mutant HD51.

 

With debug I see this:

 

idx = 1

In StartPlugin_mainmenu okClicked B self.name = plugin.video.iplayerwww

In StartPlugin_mainmenu SELECT[0] = plugin.video.iplayerwww

DEBUG = 1

StartPlugin_mainmenu self.arg = '/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugins/plugin.video.iplayerwww/default.py' '1' ''

going in default-py Now = 2018-07-15 23:43:37.178527

python /usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugins/plugin.video.iplayerwww/default.py 1 ''

In StartPlugin_mainmenu timenow 0.0

In StartPlugin_mainmenu cmd = python /usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugins/plugin.video.iplayerwww/default.py 1 ''

cmd =  python /usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugins/plugin.video.iplayerwww/default.py 1 ''

Traceback (most recent call last):

  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 69, in action

  File "/usr/lib/enigma2/python/Components/ActionMap.py", line 49, in action

  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugin.py", line 3015, in okClicked

    self.okClicked2()

  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugin.py", line 3040, in okClicked2

    self.stream() 

  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugin.py", line 3218, in stream

    self.p = os.popen(cmd)

OSError: [Errno 12] Cannot allocate memory

[ePyObject] (CallObject(<bound method NumberActionMap.action of <Components.ActionMap.NumberActionMap instance at 0xb0288850>>,('OkCancelActions', 'ok')) failed)

[gRC] main thread is non-idle! display spinner!

Killed


Edited by Rick Hunter, 15 July 2018 - 22:44.

Plinux member We have a.. (ehmm.. morgage) house.

Re: BBCiplayer #10 WanWizard

  • PLi® Core member
  • 68,312 posts

+1,719
Excellent

Posted 15 July 2018 - 22:55

What box?


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: BBCiplayer #11 Rick Hunter

  • PLi® Core member
  • 9,048 posts

+56
Good

Posted 15 July 2018 - 22:56

 

 

Seen with a Develop image at the Mutant HD51.

 

 


Plinux member We have a.. (ehmm.. morgage) house.

Re: BBCiplayer #12 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 15 July 2018 - 23:30

Hello,
 
os.popen - is your problem, it should NOT be used by plugins.
Same like os.system and others functions from this family.
 
They use fork instead of vfor which could cause problems like this.
In the enigma2 environment eConsoleAppContainer component should be used to execute commands.
 
To have good working plugin you need to know what you are doing and optimize it for the Enigma2.
 
Making port of plugin from KODI it is really not good choose. The more that some of them are really badly written.
 
Regards,
SSS

Edited by samsamsam, 15 July 2018 - 23:32.


Re: BBCiplayer #13 WanWizard

  • PLi® Core member
  • 68,312 posts

+1,719
Excellent

Posted 15 July 2018 - 23:36

thumbs-up-sign_1f44d.png


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: BBCiplayer #14 Abu Baniaz

  • PLi® Contributor
  • 2,414 posts

+61
Good

Posted 16 July 2018 - 02:37

Not got the crash, just this error

Here in default-py sys.argv = ['/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugins/plugin.video.iplayerwww/default.py', '1', '']
Here in default-py sys.argv B= ['plugin://plugin.video.iplayerwww/', '1', '']
Traceback (most recent call last):
  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugins/plugin.video.iplayerwww/default.py", line 42, in <module>
    import ipwww_common as Common
  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/plugins/plugin.video.iplayerwww/resources/lib/ipwww_common.py", line 6, in <module>
    import requests
  File "/usr/lib/enigma2/python/Plugins/Extensions/BBCiplayer/scripts/script.module.requests/lib/requests/__init__.py", line 90, in <module>
    from urllib3.exceptions import DependencyWarning
ImportError: cannot import name DependencyWarning

 

I definitely have urllib3 installed

 

root@mutant51:~# opkg install python-urllib3
Package python-urllib3 (1.2-r0) installed in root is up to date.
root@mutant51:~#


Re: BBCiplayer #15 Abu Baniaz

  • PLi® Contributor
  • 2,414 posts

+61
Good

Posted 16 July 2018 - 02:50

Oops, last test was on ViX, fine on PLI.

 

Sorry!


Edited by Abu Baniaz, 16 July 2018 - 02:50.


Re: BBCiplayer #16 Abu Baniaz

  • PLi® Contributor
  • 2,414 posts

+61
Good

Posted 16 July 2018 - 08:11

Which file/s should be changed so that the plugin is not identified as Porncentre? This is the name that remains on the front display.

Sent from my Moto G (5S) using Forum Fiend v1.3.3.

Re: BBCiplayer #17 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 16 July 2018 - 09:02

I have tested with latest openpli 6. They are all working. I will try to find out what your problems may be. Perhaps restart enigma may solve.

 

@samsamsam

There is a reason for using os.popen. It returns all outputs from the python runs. Writing outputs to files slows the process.

It has been working well for KodiLite. These smaller plugins each actually include a mini kodi which can run big (and slow in enigma2) kodi addons without changing. Your IPTVplayer and Tsmedia copy methods from kodi addons but you have to recode them.

 

Regards, pcd..



Re: BBCiplayer #18 Rick Hunter

  • PLi® Core member
  • 9,048 posts

+56
Good

Posted 16 July 2018 - 09:31

Is kodilite somehow a depndency? I have kodilite currently not installed... I’ll test it later today.

Edited by Rick Hunter, 16 July 2018 - 09:32.

Plinux member We have a.. (ehmm.. morgage) house.

Re: BBCiplayer #19 pcd

  • Senior Member
  • 759 posts

+88
Good

Posted 16 July 2018 - 13:25

No - you do not need KodiLite. This plugin is self-standing.



Re: BBCiplayer #20 Abu Baniaz

  • PLi® Contributor
  • 2,414 posts

+61
Good

Posted 16 July 2018 - 14:10

No - you do not need KodiLite. This plugin is self-standing.

On next version, can you please amend/remove the text that says "...this add-on provides an interface to access the BBC iPlayer website from Kodi"




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users