Testing and Feedback for Kodi Skill

I think I know what happened here. I merged my dev branch and I did quite a bit of refactoring on files to clean things up, I think the mycroft did not update the skill files very well.
I would try two things.

  1. Try rebooting your mycroft unit and see if that corrects the problem.
  2. If that doesn’t work you will need to uninstall then re-install the skill.

This should not be a regular occurrence when upgrading but it is due to the substantial number of updates in my dev branch that I merged.

Will do when I get back home. Can you point me to how to uninstall a skill?

If you can ssh into your mycroft you will need to drop out of the cli-client with ^c
Then you will issue the following commands
To Remove
msm remove cpkodi-skill
To Install
msm install https://github.com/pcwii/cpkodi-skill.git
This should clean things up for you, and get you back up.
After installing you will need to re-configure the websettings in the mycroft.ai home page.

Hey, tried everything- rebooting, uninstalling, rebooting, installing and so on still doesn’t work.

18:07:32.685 | INFO | 3295 | main:handle_wakeword:67 | Wakeword Detected: hey mycroft
Playing WAVE ‘/home/pi/mycroft-core/mycroft/res/snd/start_listening.wav’ : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
18:07:33.147 | INFO | 3295 | main:handle_record_begin:37 | Begin Recording…
18:07:35.133 | INFO | 3295 | main:handle_record_end:45 | End Recording…
18:07:36.217 | INFO | 3295 | main:handle_utterance:72 | Utterance: [‘play movie iron man’]
18:07:36.490 | INFO | 1999 | Playback Control Skill | Resolving Player for: movie iron man
18:07:39.513 | INFO | 1999 | cpkodi-skill_pcwii:dLOG:95 | CPKodiSkill received the following phrase: movie iron man
18:07:39.516 | INFO | 1999 | cpkodi-skill_pcwii:dLOG:95 | Using Regex: cast.type
Removing event mycroft-playback-control.mycroftai:PlayQueryTimeout
Removing event mycroft-playback-control.mycroftai:PlayQueryTimeout

Traceback (most recent call last):
  File "/home/pi/mycroft-core/mycroft/skills/mycroft_skill/event_container.py", line 66, in wrapper
    handler(message)
  File "/home/pi/mycroft-core/mycroft/skills/common_play_skill.py", line 96, in __handle_play_query
    result = self.CPS_match_query_phrase(search_phrase)
  File "/opt/mycroft/skills/cpkodi-skill.pcwii/__init__.py", line 369, in CPS_match_query_phrase
    request_data = self.get_request_info(phrase)  # Parse the utterance (phrase)
  File "/opt/mycroft/skills/cpkodi-skill.pcwii/__init__.py", line 217, in get_request_info
    cast_type = re.match(self.translate_regex('cast.type'), phrase)
  File "/opt/mycroft/skills/cpkodi-skill.pcwii/__init__.py", line 154, in translate_regex
    with open(path) as f:
FileNotFoundError: [Errno 2] No such file or directory: '/opt/mycroft/skills/cpkodi-skill.pcwii/./json_objects/cast.type.rx'
Checking ['wash the dishes', '20210302-210000-+0200']
Removing event mycroft-playback-control.mycroftai:PlayQueryTimeout
 18:07:44.095 | INFO     |  1999 | Playback Control Skill |    No matches

Ok, Thanks for the effort, I will have to dig into it later this evening after work.
Think I know what the issues is.

Will be waiting for the update :slight_smile:

I think I solved this one (at least for now, there is a language issue I will need to address at some point). I expect there will be other issues that crop up as I continue to debug and test. Let me know if you run into other issues. Definitely appreciate another set of eyes running this skill through it’s paces.
Changes should get pulled automatically but if you need you can ssh and run msm update and that will manually pull the changes.
Enjoy!

1 Like

Great. Seems to be working so far. I will get back to you if I run into some issues. I have also another feature suggestion - would it be possible to have it play the next unwatched episode instead of listing of season and episode number? with something like “play friends next episode”. I would be nice, since usually I don’t remember what was the number of the last episode I watched… :slight_smile:

Now to figure out what is wrong with youtube plugin. It works on one kodi, but not on another :smiley:

2 Likes

You can find instructions to installing the youtube plugin from links in my readme file.

Yes, I have followed that. successfully signed in and search works, but it wont play videos. says “check log for details”. I have yet to find the location of said log file… :smiley:
I have a feeling it might be some sort of port conflict or something since it is the kodi that runs on the same device as picroft. My other kodi instance that runs on another Rpi (libeelec) plays youtube without problems.

Hi,

I keep having issues with youtube playback. I plays songs, but doesn’t play more vaguely formulated searches that should bring any number of results in youtube search.
Log:

Thanks for the detail logs. There is an issue in how an error from api is being handled. I should be able to correct and a change should get pushed to your device shortly.

Hello,
as of today youtube has stopped working. Here is the output:

It works if I cast it from Yatse, so I assume its a Mycroft issue. Can you have a look?

Thanks for the logs. I am getting a different error but an error none the less. I will investigate and let you know what I find.

@enstain
I pushed some changes to the repo so they should get pulled down to your device soon. I was not able to re-create your exact issue but I did encounter an issue when attempting to ‘play sunday morning jazz from youtube’. Let me know if this works for you now.
Cheers!

Hello,

still not working…

Tried some other music - the same result:

Thanks for the logs. I do have some plans to clean up the youtube integration it is a bit of a mess right now. I am still unable to reproduce this issue so the logs are definitely helpful. Give me a few days to work through the new youtube integration. Thanks for testing this skill.

no problem. since I don’t know coding, I am glad to help in anyway :slight_smile:

I managed to get some time to refactor the youtube stuff and hopefully won’t break as often Looks like it is working for me. try an msm update to pull the latest updates. I integrated the youtube_searcher that @JarbasAl created it is much cleaner than the mess I was attempting.

Yes, it works so far. :slight_smile: did you have any time to look at the tv shows to play the last unwatched episode?