(2021-08-27, 23:29)SupaGeeza Wrote: youtube comments (context menu) have also stopped working.
using the latest 6.8.17_alpha1 on Leia 18.9 (ubuntu 20.04 LTS)
No issues if the video has no comments
otherwise this is the error.
@
SupaGeeza the fix for looking at text comments is in the master branch now, but you'll have to wait until it's pushed into a release if you want it in a convenient zip package to install.
But if you're in a hurry, you can update it manually yourself. You'd need to grab this file:
https://github.com/anxdpanic/plugin.vide...methods.py
Then replace it in one of two ways:
A) You replace this file in the installed add-on files in your Kodi installation, then start Kodi. This is more easily done if you use a desktop device (PC, notebook etc) so you can navigate where the files are.
B) Another way is to download the
latest add-on zip, unpack it somewhere, replace the file in the unpacked files, repack it, then transfer this modified zip to your device to install from within Kodi. This works better when you use a mobile device (Android TV box, Fire TV stick etc), as you can transfer it to your device via some file hosting site that you uploaded it temporarily, or use a USB flash drive holding the zip and such.
By the way, talking about
comments, if you really like reading comments from this add-on, you can do as I did which is to modify the code responsible for building the context-menu of video items, so that the "Comments" menu is the first item shown. This saves a lot of clicks in the long term (no need to go to More > Comments).
The relevant file to be modified is this:
https://github.com/anxdpanic/plugin.vide...r/utils.py
You need to modify this line specifically:
https://github.com/anxdpanic/plugin.vide...ls.py#L133
That line should be replaced with this:
python:
# Ignore this line, just copy below. Notice the spaces before each line, they're important for indentation.
context_menu = [
(context.localize(provider.LOCAL_MAP['youtube.video.comments']),
'Container.Update(%s)' % context.create_uri(['special', 'parent_comments'],{'video_id': video_id}))
]
What this does is make the context menu start not as an empy list ("context_menu = []"), but to start with one item already: the menu item that leads to the video comments. The rest of the code will naturally append other items to that list, but they'll come after our hardcoded first item.
Once modified, you can replace the file in either of those two ways I described above. The only problem is that since this is a modification done on our end, any time you update the add-on you'll have to redo all this as it'll be overwritten with the official updated files. But since I can do this fast, it's definitely worth it.