The (sorry) state of the Youtube plugin

Added by Andreas Smas about 7 years ago

Hi all,

I've decided to pick up the work on the youtube plugin as Leonid (the current maintainer) have a lot of other things to worry about in his life.

Since it's one of the oldest plugins around I've taken the bold decision to rewrite it more or less from scratch.

The reasons for this are:

  • It uses old plugin APIs
  • In my opinion it comes with too many features. It's just too heavy. Loads slowly on low-end systems.
  • I would like to have a reference for how to write somewhat more advanced plugins (split into multiple modules, etc). So I will also try to document the code during the process.

I will also use code from the ytdl javascript project for extracting video links: https://github.com/fent/node-ytdl-core

Now, as I will remove some of its features I'd really like to know what people use and don't use in the current plugin.

Please let me know (write here), or be forever silent :-)


Replies (22)

RE: The (sorry) state of the Youtube plugin - Added by Иван Иванов about 7 years ago

At the moment, the video does not play but the authorization is successful Screenshot_2016-04-19-11-37-45.png

provide standard basic features on YouTube
- Complete the authorization to your YouTube account as
- View the new video subscriptions
- Videos from Subscriptions show is not the last 50, need to be able to watch the last 100-200
- Viewing delayed video opportunity dobavt in sediments
- Support for 1080p output and 4k
- Search

I put a photo of Adona Youtube kodi

RE: The (sorry) state of the Youtube plugin - Added by Dmitry Petrov about 7 years ago

As for me is vital the next things:
1. My Watch later/Add to watch later
2. My History.
3. My playlists/Add to my playlist
4. My videos.
5. My subscriptions/Subscribe to a channel
6. Search/Rate the video
7. Jump to a channel of current video owner.
8. Play entire playlist/entire watch later/new videos from subscribe
Nothing more!
Start with "My channel" and "Search"
"Jump to a channel" should be like one method with "My channel" but different allowed options of course.

The very vital and the thing I was trying to push google to implement!
IS!: in the list of videos show: number of shown times WITH % of the rating!
(to avoid starting to watch the shit with big numbers and low rating = SPAM!)

RE: The (sorry) state of the Youtube plugin - Added by Andreas Smas about 7 years ago

Just some status updates.

I've added the following things to the my plugin (which is still in development and far from usable)

  • Video playback (yay!)
  • Authentication - The plugin now automatically asks when the user open a page which requires authentication. It also automatically closes the popup once the code has been entered in the browser. (Ie, you no longer need to go to settings to login)
  • Browse of channels, etc is now more integrated with Movians default browse views:

See screenshots:

http://imgur.com/R8NlSOR

and

http://imgur.com/z9aWYXP

RE: The (sorry) state of the Youtube plugin - Added by ludwig esteve about 7 years ago

Well done! I looking forward to try usable version :)

RE: The (sorry) state of the Youtube plugin - Added by Dmitry Petrov about 7 years ago

Where to get this testing plugin?

RE: The (sorry) state of the Youtube plugin - Added by - SBP - about 7 years ago

Looking very nice, keep up the great work! Your coding examples will most definatly help other plugin devs work with additional movian addons/plugins. Cheers

RE: The (sorry) state of the Youtube plugin - Added by Dmitry Petrov about 7 years ago

Can you add a heart icon with percentage of likes before "like" "dislike" please?

RE: The (sorry) state of the Youtube plugin - Added by Иван Иванов about 7 years ago

very good , we are waiting for the first test

RE: The (sorry) state of the Youtube plugin - Added by Andreas Smas about 7 years ago

More updates (mostly screenshots)

The new youtube landing page is done:

http://imgur.com/OnwJBbD

As you can see, searching can be done directly from the landing page (very similar to Movian's home page). This is very easy to add for plugins too so I hope more plugins will utilize the same feature.

"My Channel" looks like this: http://imgur.com/zGTRiF7

Channel guides implmented too: http://imgur.com/dY6dbK3

RE: The (sorry) state of the Youtube plugin - Added by Andreas Smas about 7 years ago

Ok, the new Youtube version (5.0) is now live.

Movian needs to be upgraded to at least 5.0.156 for it to upgrade.

Please let me know what you think.

RE: The (sorry) state of the Youtube plugin - Added by Иван Иванов about 7 years ago

Android 4.4.2
Youtube version (5.0)
Movian 5.0.156

Screenshot_2016-05-01-23-16-24.png - any video does not start (511 KB)

Screenshot_2016-05-01-23-16-43.png - I want to watch the new video from tape subscriptions (951 KB)

34324234.jpg (997 KB)

RE: The (sorry) state of the Youtube plugin - Added by Иван Иванов about 7 years ago

3.1.10 Activities, on
5.0.1 Activities, off

return Activities

Screenshot_2016-05-01-23-48-19.png - 3.1.10 Activities, on (1.23 MB)

Screenshot_2016-05-01-23-16-49.png - 5.0.1 Activities, off (543 KB)

RE: The (sorry) state of the Youtube plugin - Added by orange lemon about 7 years ago

Thank you for making the youtube plugin better.

I noticed that with the latest version, there's no more option to view the "most watched videos" of the day. There was an option for that in the previous version, and I always thought it was nice. Also, I don't know if it is related to the plugin update or not but the bookmarks I had are no longer working. I am using movian on my PS3.

RE: The (sorry) state of the Youtube plugin - Added by nikolay fedorov about 7 years ago

why in the settings from the list of missing plugins YouTube? I wanted to change the video quality, but did not find this option, please do the settings as in the previous version of the plug!

RE: The (sorry) state of the Youtube plugin - Added by Aben Escalante about 7 years ago

I would like to say that the new plugin is way better than the previous one, it feels faster and smother, event the looks feels better, I only wonder if is possible to give like or dislike a video.

RE: The (sorry) state of the Youtube plugin - Added by Christopher Skerra over 6 years ago

In Movian 4 the old Youtube plugin had an entry in the settings for minimum video quality etc. Where are those settings now? Theres is no way to configure the plugin (at least I could not find one on the ps3 besides copy and pasting the json file into the settings folder myself).

Another thing: Channels are just a mess to look at. In the old plugin you had a clear overview on videos playlists activity etc. ordered by upload date. right now it seems to be just the search by uploader results in the youtube search engine order.
I know the youtube api is really annoying when it comes to such things so heres a snippet for the necessary requests:

http://stackoverflow.com/questions/18953499/youtube-api-to-fetch-all-videos-on-a-channel

tl;dr:
get channel playlists: GET https://www.googleapis.com/youtube/v3/channels?part=contentDetails&id={CHANNEL_ID}&key={YOUR_API_KEY}
get playlis entries: GET https://www.googleapis.com/youtube/v3/playlistItems?part=snippet%2C+contentDetails&maxResults=30&playlistId={PLAYLIST_ID}&key={YOUR_API_KEY}

One more Bugreport:
If you have a Channel bookmarked and then use the search filters for duration the search will fail saying "invalid search filter criteria". The biggest problem here: You cannot revert this action. If you click on the bookmark again you will still see the error and may not access the search filter criteria menu again. Even after deleting and re-bookmarking the channel, the setting sstay the same.

RE: The (sorry) state of the Youtube plugin - Added by edward l over 6 years ago

It seems the Youtube plugin dosn't work anymore, you can search for stuff but nothing plays you just get a 403 error unable to open resource. Same with Liveleak. Tried on both Android and the PS3. :(

RE: The (sorry) state of the Youtube plugin - Added by Andreas Smas over 6 years ago

Fixed in Youtube Plugin version 5.0.7 (Requires Movian 4.0.462)

RE: The (sorry) state of the Youtube plugin - Added by Christopher Skerra over 6 years ago

Andreas meant that Movian 5.0.462 (bleeding edge currently) is needed.

(1-22/22)