Jump to content


Photo

YouTube


  • Please log in to reply
70 replies to this topic

Re: YouTube #21 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 28 July 2015 - 15:27

@athoik Thank you.

I compile plugin on own build system for SH4, so I do not know anything much about OE.

But the correct plugin directory is in /usr/lib/enigma2/python/Plugins.

 

When I using setuptools I set --install-purelib=$(PKDIR)/usr/lib/enigma2/python/Plugins to change the installation directory: https://bitbucket.or...ugin-youtube.mk
Maybe I'm wrong, but looking in your bb file, it seems to me that in that also need to do something similar.

 

If necessary I can also change the file setup.py to adapt it to the OE.


Edited by Taapat, 28 July 2015 - 15:28.


Re: YouTube #22 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 28 July 2015 - 15:38

@athoik Thank you.
I compile plugin on own build system, so I do not know anything much about OE.
But the correct plugin directory is in /usr/lib/enigma2/python/Plugins.
 
When I using setuptools I set --install-purelib=$(PKDIR)/usr/lib/enigma2/python/Plugins to change the installation directory: https://bitbucket.or...ugin-youtube.mk
Maybe I'm wrong, but looking in your bb file, it seems to me that in that also need to do something similar.
 
If necessary I can also change the file setup.py to adapt it to the OE.


Hi @Taapat,

I am inheriting the well known distutils-openplugins.bbclass that does the job for us.
 
# cat distutils-openplugins.bbclass 
inherit distutils

# Scripts want to install "/etc", so we need "--root" instead of setting install-data stuff
# to remain compatible with previous versions.

DISTUTILS_INSTALL_ARGS = "\
    --root=${D} \
    --install-data=${datadir} \
    --install-lib=${libdir}/enigma2/python/Plugins \
    "

# Remove "egg-info" files. If datadir or site-packages dir is empty, remove it.
distutils_do_install_append() {
	rm -f ${D}${libdir}/enigma2/python/Plugins/*.egg-info
	rmdir -p --ignore-fail-on-non-empty ${D}${datadir} ${D}/${PYTHON_SITEPACKAGES_DIR} || true
}
I am also attaching the ipk produced with the bitbake I provided at previous post, let me know if you see something wrong.


Edit1. FILES_${PN}-src need some changes, I will fix bitbake and will upload again.

Attached Files


Edited by athoik, 28 July 2015 - 15:43.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: YouTube #23 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 28 July 2015 - 16:01

Here is the newer bitbake for youtube plugin with correct FILES_${PN}-src.
 
SUMMARY = "Enigma2 plugin to manage your youtube account and wach videos"
DESCRIPTION = "Small plugin to manage your account, search and wach videos \
from youtube"
HOMEPAGE = "https://github.com/Taapat/enigma2-plugin-youtube"
SECTION = "multimedia"
LICENSE = "PD"
LIC_FILES_CHKSUM = "file://src/plugin.py;md5=de25dd3340919096231430c367640d9e"
SRC_URI = "git://github.com/Taapat/enigma2-plugin-youtube.git"
S = "${WORKDIR}/git"

inherit gitpkgv
SRCREV = "${AUTOREV}"
PV = "git${SRCPV}"
PKGV = "git${GITPKGV}"

inherit allarch distutils-openplugins

RDEPENDS_${PN} = " \
	python-core \
	python-codecs \
	python-json \
	python-netclient \
	python-zlib \
	python-twisted-web \
	"

PACKAGES =+ " ${PN}-src"
RDEPENDS_{PN}-src = "${PN}"
FILES_${PN}-src = " \
	${libdir}/enigma2/python/Plugins/*/*.py \
	${libdir}/enigma2/python/Plugins/*/*/*.py \
	${libdir}/enigma2/python/Plugins/*/*/*/*.py \
	${libdir}/enigma2/python/Plugins/*/*/*/*/*.py \
	${libdir}/enigma2/python/Plugins/*-py2.7.egg-info/* \
	"
Attached find produced ipk and bitbake.

Attached Files


Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: YouTube #24 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 28 July 2015 - 16:39

Thank you very much!



Re: YouTube #25 blzr

  • PLi® Core member
  • 2,269 posts

+118
Excellent

Posted 28 July 2015 - 16:56

@athoik

 

as far as I'm concerned, in OpenPLi all plugins are installed with sources included, so I'm not sure all this '-src' part in bitbake is really necessary...

 

(and btw there's a small typo in the original plugin description 'wach'  instead of 'watch', copy pasted into the recipe ;))

 

I hope plugin will be added to the OpenPLi feed soon (but imho it belongs to recipes-openpli/enigma2-plugins not to recipes-multimedia as suggested)


True sarcasm doesn't need green font...

Re: YouTube #26 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 28 July 2015 - 17:48

@athoik
 
as far as I'm concerned, in OpenPLi all plugins are installed with sources included, so I'm not sure all this '-src' part in bitbake is really necessary...


The correct way is to have separate "-src" package with the sources. We already doing this for enigma2 (enigma2-src).

Also taking sources out of plugins will reduce the size of image.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: YouTube #27 blzr

  • PLi® Core member
  • 2,269 posts

+118
Excellent

Posted 28 July 2015 - 18:34

personally, I pretty much agree with this approach...

but I just remember there was quite (surprisingly) heated discussion about that idea some time ago, and in the end it was decided to keep installing plugins' sources...

so, this plugin would be pretty much the lone exception (but all in all, why would it bother? ;))
 


True sarcasm doesn't need green font...

Re: YouTube #28 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 28 July 2015 - 22:45

Add published date and time in infoscreen.

Add possibility choose nex and previous entries, to see more than 50.

Attached Files



Re: YouTube #29 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 28 July 2015 - 23:31

Fix some errors.

Attached Files



Re: YouTube #30 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 31 July 2015 - 20:46

Add search live broadcasts.

Attached Files



Re: YouTube #31 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 31 July 2015 - 21:16

Is There also a source somewhere posted?

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


Re: YouTube #32 Ralleygolfg60

  • Member
  • 1 posts

0
Neutral

Posted 31 July 2015 - 21:46

Thanks man works perfect on a Dreambox 8000 so far not tested everything yet

 

Really needed this after google killed the app on my Panasonic tv about the new api etc.


Edited by Ralleygolfg60, 31 July 2015 - 21:50.


Re: YouTube #33 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 31 July 2015 - 22:02

Is There also a source somewhere posted?


Yes, it's on Github see #1. Also on #23 there is ready bitbake, send a pull for openly-oe-core inclusion (under recipes-openpli/enigma2-plugins)?
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: YouTube #34 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 2 August 2015 - 17:59

Load next and previous entrys automatically when entry list ends (also when playing videos).

Attached Files



Re: YouTube #35 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 2 August 2015 - 20:28

Do you update the translation also something? Since I do not yet ready for publication, but I will add it soon.

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: YouTube #36 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 2 August 2015 - 20:58

Yes, of course.
In git I update translations when I'm getting them (via the pull request or otherwise): https://github.com/T...mmits/master/po
In the package I include translations as are available in git at that moment, when I create the package.

For example, I created a new option, created a package with it, but translation I get later.
Last package contains all translations that are available, including Estonian from rimas.


Edited by Taapat, 2 August 2015 - 20:59.


Re: YouTube #37 zeros

  • PLi® Contributor
  • 1,635 posts

+61
Good

Posted 2 August 2015 - 21:30

Great that Estonian translation is already there!

DM920UHD DVB-S2X TRIPLE tuner + Triple M.S tuner DVB-S2X, DVB-T2/T, QboxHD, QboxHD Mini, Icecrypt T2300HD,
Qviart Lunix3 4K, Raspberry Pi 4 Model B 4GB & 8GB

Vertex 4K60 4:4:4 600MHz


Re: YouTube #38 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 4 August 2015 - 18:23

Add info about current position in the list and total results, thx Alexvrs.

Attached Files



Re: YouTube #39 littlesat

  • PLi® Core member
  • 56,274 posts

+691
Excellent

Posted 5 August 2015 - 18:45

As far I can see this plugin is already in our feeds... Why posting ipk's here???


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


Re: YouTube #40 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 5 August 2015 - 18:55

Thanks Milo!
He just now added a bb file.
I no longer need to posting ipk's here.

Until now in openpli-oe-core git was only unaccepted pull request from athoik. Thanks also to him.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users