YouTube
Taapat 26 jul 2015
YouTube
Small plugin to manage your account, search and wach videos from youtube.
Source on github: https://github.com/T...-plugin-youtube
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
Bijgevoegde Bestanden
adri 26 jul 2015
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.
Taapat 26 jul 2015
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.
adri 27 jul 2015
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.
luis67 27 jul 2015
Taapat 27 jul 2015
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.
Taapat 27 jul 2015
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.
Bijgevoegde Bestanden
Veranderd door Taapat, 27 juli 2015 - 20:04
mfaraj57 27 jul 2015
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
mfaraj57 27 jul 2015
@Tappat
did you see any way to get ratings and view count of specific video in google api 3?
Veranderd door mfaraj57, 27 juli 2015 - 22:37
Taapat 28 jul 2015
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
mfaraj57 28 jul 2015
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" } } ] }
adri 28 jul 2015
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.
Taapat 28 jul 2015
@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
luis67 28 jul 2015
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
Taapat 28 jul 2015
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.
mfaraj57 28 jul 2015
@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
mfaraj57 28 jul 2015
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=CAwQAADoes 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
Veranderd door mfaraj57, 28 juli 2015 - 10:31
athoik 28 jul 2015
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?)