Jump to content


Photo

YouTube


  • Please log in to reply
70 replies to this topic

#1 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 26 July 2015 - 12:57

YouTube

 

Small plugin to manage your account, search and wach videos from youtube.

 

Source on github: https://github.com/T...-plugin-youtube

 

d65e212c-3188-11e5-9d49-8bd584f9a01b.jpg

 

e11bd280-3188-11e5-8496-36fd6f455e88.jpg

 

e5d5bf70-3188-11e5-80e6-0be037fae1a8.jpg

 

37848eae-33a6-11e5-97ba-4135e53d7662.jpg

 

dc063628-3188-11e5-991c-8965ca2d7277.jpg

 

 

The latest version can always download here: http://taapat.ho.ua/...plugin-youtube/

 

If you want to compile the plugin, here is bitbake file from rossi2000, thank him for it: https://github.com/o...ions-youtube.bb

Attached Files



Re: YouTube #2 adri

  • Senior Member
  • 373 posts

+5
Neutral

Posted 26 July 2015 - 21:11

Hi Taapat,

 

The seems to copy most of the old MyTube plugin functionality, using the new YouTube API v3.  :)

I assume all the seach order options are working, unlike the new MyTube version from DMM.

In the search screen, did you also implement the menu key to search for other vids from the same author, like the original.

I used to use that option alot.

 

Adri.



Re: YouTube #3 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 26 July 2015 - 22:09

Hi,

 

Nailed looking youtube api search list not provide search according to the author.
I'll think about this, maybe this can be realized somehow.

In video list, in the menu, has an option to search similar, but it certainly will not give such results what you want.



Re: YouTube #4 adri

  • Senior Member
  • 373 posts

+5
Neutral

Posted 27 July 2015 - 08:18

Hi,

 

I think 'search  by author' is now 'search by channel'.

I think, you can get the channelnumber of the author as part of the search info.

Search similar is certainly not going to give the same results.



Re: YouTube #5 luis67

  • Senior Member
  • 76 posts

0
Neutral

Posted 27 July 2015 - 17:00

Thanks,works amazing!When i am reaching the last feed entry how can i select the next feed entries?

Re: YouTube #6 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 27 July 2015 - 18:31

In config you can specify 'Search results:' to 50. Unfortunately, this is the maximum allowed by the youyube api.

I don't know, I need to look, maybe there is any hack to get around it.



Re: YouTube #7 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 27 July 2015 - 20:04

I added an option in the video list 'Videos from this video channel' to search video from the same author as adri wanted.
Add option 'Subscribe this video channel', to subscribe the channel of the selected video.

Attached Files


Edited by Taapat, 27 July 2015 - 20:04.


Re: YouTube #8 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 27 July 2015 - 20:58

you can use nextPageToken to access the next 50 feeds for search

https://www.googleapis.com/youtube/v3/search?part=snippet&q=titanic&type=channel&maxResults=50&relevanceLanguage=en&key=xxxx
{
 "kind": "youtube#searchListResponse",
 "etag": "\"iDqJ1j7zKs4x3o3ZsFlBOwgWAHU/sT7--G5FErrzyYXwRzWdoM1cKVs\"",
 "nextPageToken": "CAwQAA",
 "pageInfo": {
  "totalResults": 1000000,
  "resultsPerPage": 12
 },

for next page feeds

https://www.googleapis.com/youtube/v3/search?part=snippet&q=&type=channel&maxResults=12&relevanceLanguage=en&key=xxxxx&nextPageToken=CAwQAA


Re: YouTube #9 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 27 July 2015 - 21:14

@mfaraj57, ok, thanks.



Re: YouTube #10 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 27 July 2015 - 22:36

@Tappat

did you see any way to get ratings and view count of specific video in google api 3?


Edited by mfaraj57, 27 July 2015 - 22:37.


Re: YouTube #11 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 27 July 2015 - 23:09

I'm sorry, I did not understand, or some of it not working as it should?



Re: YouTube #12 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 28 July 2015 - 06:47

If your question is how to get the rating and view count of specific video, then I use the Videos: list.
I take videoid from a search result, put them in comma-separated list in the videos and get all me necessary information: https://github.com/T...TubeApi.py#L102



Re: YouTube #13 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 28 July 2015 - 07:49

Yes,that,s what i meant

Your suggestion is good and working by using part=statistics and gives important info like viewcount,likes,dislikes.. but failed to get video ratings(number from 1-5 with maximum 5 given to the video by the users)

 

same problem discussed here

http://stackoverflow...tings-for-video

	def videos_list(self, v_id):
		url = 'videos?part=id%2Csnippet%2Cstatistics%2CcontentDetails&id=' + \
			 v_id.replace(',', '%2C') + self.key
		return self.get_response(url, True)
https://www.googleapis.com/youtube/v3/videos?part=statistics&id=xtdbj2GVH_s&key=xxxxxxx

result

{
 "kind": "youtube#videoListResponse",
 "etag": "\"iDqJ1j7zKs4x3o3ZsFlBOwgWAHU/xc8ShF2dVz5Lvk8olv3ctBnKxbo\"",
 "pageInfo": {
  "totalResults": 1,
  "resultsPerPage": 1
 },
 "items": [
  {
   "kind": "youtube#video",
   "etag": "\"iDqJ1j7zKs4x3o3ZsFlBOwgWAHU/2K5XDmVNc_N1BeWK28eYtlaYo0k\"",
   "id": "xtdbj2GVH_s",
   "statistics": {
    "viewCount": "556081",
    "likeCount": "3140",
    "dislikeCount": "209",
    "favoriteCount": "0",
    "commentCount": "157"
   }
  }
 ]
}


Re: YouTube #14 adri

  • Senior Member
  • 373 posts

+5
Neutral

Posted 28 July 2015 - 08:37

I added an option in the video list 'Videos from this video channel' to search video from the same author as adri wanted.
Add option 'Subscribe this video channel', to subscribe the channel of the selected video.

Thanks.



Re: YouTube #15 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 28 July 2015 - 09:23

@mfaraj57

 

I'm not an active youtube user, so I can be wrong, but if I understand correctly, then in Youtube no more 5 star rating system: https://productforum...ube/gckF1zx-vy0



Re: YouTube #16 luis67

  • Senior Member
  • 76 posts

0
Neutral

Posted 28 July 2015 - 09:39

 

you can use nextPageToken to access the next 50 feeds for search

https://www.googleapis.com/youtube/v3/search?part=snippet&q=titanic&type=channel&maxResults=50&relevanceLanguage=en&key=xxxx
{
 "kind": "youtube#searchListResponse",
 "etag": "\"iDqJ1j7zKs4x3o3ZsFlBOwgWAHU/sT7--G5FErrzyYXwRzWdoM1cKVs\"",
 "nextPageToken": "CAwQAA",
 "pageInfo": {
  "totalResults": 1000000,
  "resultsPerPage": 12
 },

for next page feeds

https://www.googleapis.com/youtube/v3/search?part=snippet&q=&type=channel&maxResults=12&relevanceLanguage=en&key=xxxxx&nextPageToken=CAwQAA

Does it need to compiles this?I press some buttons on remote control and doesnt work



Re: YouTube #17 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 28 July 2015 - 10:04

I am not yet implement in the plugin using of nextPageToken and prevPageToken.
Please wait a little, I will do so when I have time for it.



Re: YouTube #18 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 28 July 2015 - 10:29

@mfaraj57

 

I'm not an active youtube user, so I can be wrong, but if I understand correctly, then in Youtube no more 5 star rating system: https://productforum...ube/gckF1zx-vy0

may be you are right because i do not see more 5 stars rating on videos on youtube.com



Re: YouTube #19 mfaraj57

  • Senior Member
  • 1,605 posts

+286
Excellent

Posted 28 July 2015 - 10:31

 

 

you can use nextPageToken to access the next 50 feeds for search

https://www.googleapis.com/youtube/v3/search?part=snippet&q=titanic&type=channel&maxResults=50&relevanceLanguage=en&key=xxxx
{
 "kind": "youtube#searchListResponse",
 "etag": "\"iDqJ1j7zKs4x3o3ZsFlBOwgWAHU/sT7--G5FErrzyYXwRzWdoM1cKVs\"",
 "nextPageToken": "CAwQAA",
 "pageInfo": {
  "totalResults": 1000000,
  "resultsPerPage": 12
 },

for next page feeds

https://www.googleapis.com/youtube/v3/search?part=snippet&q=&type=channel&maxResults=12&relevanceLanguage=en&key=xxxxx&nextPageToken=CAwQAA

Does it need to compiles this?I press some buttons on remote control and doesnt work

 

No required action from user,@Taapat will implement  this in code as he said above


Edited by mfaraj57, 28 July 2015 - 10:31.


Re: YouTube #20 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 28 July 2015 - 15:06

@Taapat, here is bitbake for OpenPLi 4.
 
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}/${PYTHON_DIR}/site-packages/*/*.py \
	${libdir}/${PYTHON_DIR}/site-packages/*/*/*.py \
	${libdir}/${PYTHON_DIR}/site-packages/*/*/*/*.py \
	${libdir}/${PYTHON_DIR}/site-packages/*/*/*/*/*.py \
	${libdir}/${PYTHON_DIR}/site-packages/*-py2.7.egg-info/* \
	"
@OpenPLi, would you like to add plugin in openpli oe-core ? (recipes-multimedia?)

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


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users