# Plexmusic Skill - Test and Feedback

**URL:** <https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973>\
**Category:** Feedback / Support\
**Created:** [July 23, 2019, 9:49am UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973 "2019-07-23T09:49:01Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![colla69](https://community.openconversational.ai/user_avatar/community.openconversational.ai/colla69/32/1769_2.png) [@colla69](https://community.openconversational.ai/u/colla69)\
**Post date:** [July 23, 2019, 9:49am UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/1 "2019-07-23T09:49:01Z")

</div>

Mycroft is learning how to read Plex media Servers. ([Plex Homepage](https://www.plex.tv))  
I would really appreciate any help to get the skill into the marketplace, feel free to give any kind of feedback to the [Sourcecode on GitHub](https://github.com/colla69/plexmusic-skill)  
Nobody should ever be missing features 😉

Install via msm by typing

> `msm install https://github.com/colla69/plexmusic-skill.git`

I am interested in testing the installation and the synchronization with the PlexMediaServer, as well as the requirements scripts. I work on KDE and have no means to test the functionalities on different devices.

After the installation the skill will try to download metadata from the server. That will only be possible by adding configuration. After you configured the skill you can refresh your library using an intent.

> Hey Mycroft, refresh|reload libray

Feel free to reply in the comments or to contact me privately on [a.colarietitosti@googlemail.com](mailto:a.colarietitosti@googlemail.com) if you need any help.

**Please take a look at the [README](https://github.com/colla69/plexmusic-skill/blob/master/README.md) on github as it contains further information about the configuration and usage of the skill.**

I plan to extend functionalities, once i am happy with the VLC-backend. I would like to have it play radio channels as well as being able to add the song i am currently listening to i like to a playlist.

I wish you all happy testing 🙂

**colla**

---

<div class="post-metadata">

**Author:** ![gez-mycroft](https://community.openconversational.ai/user_avatar/community.openconversational.ai/gez-mycroft/32/1937_2.png) [@gez-mycroft](https://community.openconversational.ai/u/gez-mycroft)\
**Post date:** [July 24, 2019, 4:55am UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/2 "2019-07-24T04:55:42Z")

</div>

Very exciting, thanks colla!

Will try to find some time to give it a test run over the weekend 🙂

---

<div class="post-metadata">

**Author:** ![colla69](https://community.openconversational.ai/user_avatar/community.openconversational.ai/colla69/32/1769_2.png) [@colla69](https://community.openconversational.ai/u/colla69)\
**Post date:** [July 26, 2019, 1:50pm UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/3 "2019-07-26T13:50:27Z")

</div>

Thanks gez 🙂  
I read about your AFK time…  
congrats 🙂

---

<div class="post-metadata">

**Author:** ![malevolent](https://community.openconversational.ai/user_avatar/community.openconversational.ai/malevolent/32/135_2.png) [@malevolent](https://community.openconversational.ai/u/malevolent)\
**Post date:** [July 29, 2019, 9:48am UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/4 "2019-07-29T09:48:27Z")

</div>

Super excited about this skill as I don’t have/want to use spotify or any other commercial music service and I have all my music on my plex instance!

I’ll test it this very evening!

---

<div class="post-metadata">

**Author:** ![malevolent](https://community.openconversational.ai/user_avatar/community.openconversational.ai/malevolent/32/135_2.png) [@malevolent](https://community.openconversational.ai/u/malevolent)\
**Post date:** [July 29, 2019, 6:37pm UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/5 "2019-07-29T18:37:22Z")

</div>

It doesn’t work on my settings.

```Establishing
Connected to Messagebus!
17:59:24.769 - Playback Control Skill - INFO - Resolving Player for: Helevorn
17:59:25.121 - Playback Control Skill - INFO - No matches
  ^--- NEWEST ---^ 

```

I configured the skill through the [Account](https://account.mycroft.ai/skills) site, like this

 ![image](https://community.openconversational.ai/uploads/default/original/2X/7/7f193d36360a990a7e770714889278a807409b2b.png)  
As you can see, I used the internal IP address with the port, instead of the published IP, as I connect plex through [https://app.plex.tv](https://app.plex.tv)

---

<div class="post-metadata">

**Author:** ![malevolent](https://community.openconversational.ai/user_avatar/community.openconversational.ai/malevolent/32/135_2.png) [@malevolent](https://community.openconversational.ai/u/malevolent)\
**Post date:** [July 29, 2019, 6:56pm UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/6 "2019-07-29T18:56:32Z")

</div>

I’ve also tried to edit mycroft.conf and adding the settings, it doesn’t work either.

Is like the skill isn’t properly installed, when I try to refresh library, skill.log says:

```auto
18:57:08.969 - QuestionsAnswersSkill - INFO - Searching for refresh library
18:57:10.166 - QuestionsAnswersSkill - INFO - Timeout occured check responses

```

---

<div class="post-metadata">

**Author:** ![colla69](https://community.openconversational.ai/user_avatar/community.openconversational.ai/colla69/32/1769_2.png) [@colla69](https://community.openconversational.ai/u/colla69)\
**Post date:** [July 29, 2019, 8:37pm UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/7 "2019-07-29T20:37:35Z")

</div>

Hey malevolent 🙂 thanks for testing.

try configuring it with the IP ( [http://192.168.1.100](http://192.168.1.100) ).  
It should load your library on startup, it will say something as it is done loading, after that the search should work.  
The “refresh library” Intent should also work then, in case it doesn’t try changing the skill priorities in your mycroft.conf .

And let me know if you get it running 😉

---

<div class="post-metadata">

**Author:** ![malevolent](https://community.openconversational.ai/user_avatar/community.openconversational.ai/malevolent/32/135_2.png) [@malevolent](https://community.openconversational.ai/u/malevolent)\
**Post date:** [July 29, 2019, 11:15pm UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/8 "2019-07-29T23:15:53Z")

</div>

Sorry, I forgot to tell I also tried the URL without the port. No luck.

I don’t know how to change priorities. And that means to set higher priority for plexmusic over Pandora or spotify skills?

---

<div class="post-metadata">

**Author:** ![colla69](https://community.openconversational.ai/user_avatar/community.openconversational.ai/colla69/32/1769_2.png) [@colla69](https://community.openconversational.ai/u/colla69)\
**Post date:** [July 30, 2019, 5:32pm UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/9 "2019-07-30T17:32:56Z")

</div>

hey 🙂

forget the priorities … we’ll fix that problem when and if it arises at all 🙂 /  
My best guess at the moment is, the skill throws an exception on init and doesn’t load at all 😕  
Would you please try it this way:

-msm uninstall plexmusic-skill \> wait for it to uninstall correctly.  
-stop mycroft through “stop-mycroft.sh”  
-clear the content of /var/log/mycroft/skills.log  
-write the configuration in your mycroft.conf

“plexmusic-skill”: {  
“musicsource”: “[http://192.168](http://192.168),1,100”,  
“plextoken”: “----8s6uP----abc4sRYe”,  
“plexlib”: “music”,  
“ducking”: true  
}

-start mycroft through command “mycroft-start.sh debug”  
-let the boot process finish \> send to me the content of /var/log/mycroft/skills.log

Hopefully I can find out how the problem arises.  
Thank you for your help 🙂

---

<div class="post-metadata">

**Author:** ![malevolent](https://community.openconversational.ai/user_avatar/community.openconversational.ai/malevolent/32/135_2.png) [@malevolent](https://community.openconversational.ai/u/malevolent)\
**Post date:** [July 31, 2019, 12:38pm UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/10 "2019-07-31T12:38:27Z")

</div>

Sorry for the late response… I think we’re are on a opposite timezone 😔

I had to do it a bit different as you suggested, as I have a Mark I, but I think it will be valid for you:

```auto
msm remove plexmusic-skill
systemctl stop mycroft-skills.service
truncate --size=0 /var/log/mycroft/skills.log

```

Edited mycroft.conf and added the plexmusic-skill section, then:

```auto
systemctl start mycroft-skills.service

```

Here you have the skill.log after everything is up.  
[https://privatebin.net/?069749a8b24d0554#DPcNVYUvuEWyoz2xmUdRDRrsXHLyAjKrfeB9st1m4YGj](https://privatebin.net/?069749a8b24d0554#DPcNVYUvuEWyoz2xmUdRDRrsXHLyAjKrfeB9st1m4YGj)

What I didn’t undestood is why you didn’t made me install back plexmusic-skill, so, to save 24h, I repeated the steps but now adding the skill, just in case 😉

```auto
systemctl stop mycroft-skills.service
truncate --size=0 /var/log/mycroft/skills.log
msm install https://github.com/colla69/plexmusic-skill.git

```

The skill isn’t shown on home.mycroft.ai/skills

```auto
systemctl start mycroft-skills.service

```

And the skills.log:  
[https://privatebin.net/?4560a23ff2baa59b#DBWkqWTNmv6Sappx12DGgEnZbhoSWUKY2yro1s5n7SCw](https://privatebin.net/?4560a23ff2baa59b#DBWkqWTNmv6Sappx12DGgEnZbhoSWUKY2yro1s5n7SCw)

Here we can clearly view there is a problem loading the skill

```auto
12:34:42.328 - mycroft.skills.core:load_skill:122 - INFO - ATTEMPTING TO LOAD SKILL: plexmusic-skill.colla69 with ID plexmusic-skill.colla69
12:34:43.553 - mycroft.skills.core:load_skill:169 - ERROR - Failed to load skill: plexmusic-skill.colla69
Traceback (most recent call last):
  File "/opt/venvs/mycroft-core/lib/python3.4/site-packages/mycroft/skills/core.py", line 135, in load_skill
    skill = skill_module.create_skill()
  File "/opt/mycroft/skills/plexmusic-skill.colla69/ __init__.py", line 370, in create_skill
    return PlexMusicSkill()
  File "/opt/mycroft/skills/plexmusic-skill.colla69/ __init__.py", line 168, in __init__
    self.vlc_player.get_media_player().audio_set_volume(100)
  File "/opt/venvs/mycroft-core/lib/python3.4/site-packages/vlc.py", line 2654, in get_media_player
    return libvlc_media_list_player_get_media_player(self)
  File "/opt/venvs/mycroft-core/lib/python3.4/site-packages/vlc.py", line 4926, in libvlc_media_list_player_get_media_player
    ctypes.c_void_p, MediaListPlayer)
  File "/opt/venvs/mycroft-core/lib/python3.4/site-packages/vlc.py", line 246, in _Cfunction
    raise NameError('no function %r' % (name,))
NameError: no function 'libvlc_media_list_player_get_media_player'

```

By the way, vlc is installed.

```auto
pi@mark_1:~ $ dpkg -l| grep vlc
ii libvlc5 2.2.7-1~deb8u1 armhf multimedia player and streamer library
ii libvlccore8 2.2.7-1~deb8u1 armhf base library for VLC and its modules
ii vlc 2.2.7-1~deb8u1 armhf multimedia player and streamer
ii vlc-data 2.2.7-1~deb8u1 all Common data for VLC
ii vlc-nox 2.2.7-1~deb8u1 armhf multimedia player and streamer (without X support)
ii vlc-plugin-notify 2.2.7-1~deb8u1 armhf LibNotify plugin for VLC
ii vlc-plugin-samba 2.2.7-1~deb8u1 armhf Samba plugin for VLC

```

---

<div class="post-metadata">

**Author:** ![colla69](https://community.openconversational.ai/user_avatar/community.openconversational.ai/colla69/32/1769_2.png) [@colla69](https://community.openconversational.ai/u/colla69)\
**Post date:** [July 31, 2019, 7:14pm UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/11 "2019-07-31T19:14:44Z")

</div>

I think you need to upload your vlc. I am currently running 3.0.7.1

```
╭─cola@cola-Desktop ‹system› 
╰─$ dpkg -l| grep vlc

ii libvlc-bin:amd64 3.0.7.1-0ubuntu18.04.1 amd64 tools for VLC's base library
ii libvlc5:amd64 3.0.7.1-0ubuntu18.04.1 amd64 multimedia player and streamer library
ii libvlccore9:amd64 3.0.7.1-0ubuntu18.04.1 amd64 base library for VLC and its modules
ii phonon4qt5-backend-vlc:amd64 0.10.1-2 amd64 Phonon4Qt5 VLC backend
ii vlc 3.0.7.1-0ubuntu18.04.1 amd64 multimedia player and streamer
ii vlc-bin 3.0.7.1-0ubuntu18.04.1 amd64 binaries from VLC
ii vlc-data 3.0.7.1-0ubuntu18.04.1 all common data for VLC
ii vlc-l10n 3.0.7.1-0ubuntu18.04.1 all translations for VLC
ii vlc-plugin-base:amd64 3.0.7.1-0ubuntu18.04.1 amd64 multimedia player and streamer (base plugins)
ii vlc-plugin-notify:amd64 3.0.7.1-0ubuntu18.04.1 amd64 LibNotify plugin for VLC
ii vlc-plugin-qt:amd64 3.0.7.1-0ubuntu18.04.1 amd64 multimedia player and streamer (Qt plugin)
ii vlc-plugin-samba:amd64 3.0.7.1-0ubuntu18.04.1 amd64 Samba plugin for VLC
ii vlc-plugin-skins2:amd64 3.0.7.1-0ubuntu18.04.1 amd64 multimedia player and streamer (Skins2 plugin)
ii vlc-plugin-video-output:amd64 3.0.7.1-0ubuntu18.04.1 amd64 multimedia player and streamer (video output plugins)
ii vlc-plugin-video-splitter:amd64 3.0.7.1-0ubuntu18.04.1 amd64 multimedia player and streamer (video splitter plugins)
ii vlc-plugin-visualization:amd64 3.0.7.1-0ubuntu18.04.1 amd64 multimedia player and streamer (visualization plugins)

```

I hope this fixes the problem 🙂 good luck

---

<div class="post-metadata">

**Author:** ![gez-mycroft](https://community.openconversational.ai/user_avatar/community.openconversational.ai/gez-mycroft/32/1937_2.png) [@gez-mycroft](https://community.openconversational.ai/u/gez-mycroft)\
**Post date:** [July 31, 2019, 10:12pm UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/12 "2019-07-31T22:12:04Z")

</div>

The I Heart Radio Skill was facing a similar issue with VLC, details are here:

> [@I Heart Radio Internet Radio Streaming Skill - testing and feedback](https://community.openconversational.ai/t/i-heart-radio-internet-radio-streaming-skill-testing-and-feedback/6089):
>
> This is a follow-up to my previous skill which uses TuneIn to find internet radio streams. I Heart Radio has a slightly different set of stations and is skewed towards the US market and commercial radio stations. The combination of TuneIn and IHeartRadio should get 95% of worldwide radio stations. Important notes: Most of the IHeartRadio streams are AAC or MP4 streams so the skill uses vlc for streaming instead of mpg123. This currently is problematic as VLC doesn’t seem to install nicely usi…

TLDR:  
`from mycroft.audio.services.vlc import VlcService`  
[https://github.com/johnbartkiw/mycroft-skill-iheartradio/blob/master/ **init**.py](https://github.com/johnbartkiw/mycroft-skill-iheartradio/blob/master/ __init__.py)

---

<div class="post-metadata">

**Author:** ![colla69](https://community.openconversational.ai/user_avatar/community.openconversational.ai/colla69/32/1769_2.png) [@colla69](https://community.openconversational.ai/u/colla69)\
**Post date:** [August 1, 2019, 8:26am UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/13 "2019-08-01T08:26:25Z")

</div>

That’s exactly what i was thinking about when i wrote:  
“I plan to extend functionalities, once i am happy with the VLC-backend…” 🙂  
I read the VlcService code and it has all the functionalities I originally had in mind 🎇🎉

Thank you, a lot 🙂

---

<div class="post-metadata">

**Author:** ![colla69](https://community.openconversational.ai/user_avatar/community.openconversational.ai/colla69/32/1769_2.png) [@colla69](https://community.openconversational.ai/u/colla69)\
**Post date:** [August 1, 2019, 9:24am UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/14 "2019-08-01T09:24:06Z")

</div>

Hey @malevolent , i just swapped my VLC service with the one suggested by @gez-mycroft.

Could please reinstall the skill, and let me know if it solves your problem?  
( Just to be sure…  
you should be using commit a9dc40ff77ef7125e8e81046c15e05e8dca2a99c or later 😉 )

Thank you both, 🙂  
colla

---

<div class="post-metadata">

**Author:** ![malevolent](https://community.openconversational.ai/user_avatar/community.openconversational.ai/malevolent/32/135_2.png) [@malevolent](https://community.openconversational.ai/u/malevolent)\
**Post date:** [August 1, 2019, 9:27am UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/15 "2019-08-01T09:27:29Z")

</div>

Unfortunately, Mark I is still on Debian 8. And its VLC its frozen at version 2.2.  
So no luck until Mark I will be upgraded to Debian 10 (hopefully some day)…

I can try the skill on arch linux, but it would have been great to listen music directly on the Mark I.

---

<div class="post-metadata">

**Author:** ![jrwarwick](https://community.openconversational.ai/user_avatar/community.openconversational.ai/jrwarwick/32/849_2.png) [@jrwarwick](https://community.openconversational.ai/u/jrwarwick)\
**Post date:** [May 1, 2020, 10:09pm UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/16 "2020-05-01T22:09:32Z")

</div>

Thanks for the note, Malevolent. I too am a Mark I user, and also very interesting in Plex capability. That would be really fun functionality to add to Mycroft, and one of those features that could be a real differentiator (with respect to the other “big” names in digital assistant/voice automaton/etc).

---

<div class="post-metadata">

**Author:** ![malevolent](https://community.openconversational.ai/user_avatar/community.openconversational.ai/malevolent/32/135_2.png) [@malevolent](https://community.openconversational.ai/u/malevolent)\
**Post date:** [May 20, 2020, 5:39pm UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/17 "2020-05-20T17:39:04Z")

</div>

I tried this skill on an arch linux desktop. It doesn’t install via mycroft-msm, and git cloning the repo and pip installing the requirements, either work

```auto
Traceback (most recent call last):
  File "/home/malevolent/development/mycroft-core/mycroft/skills/skill_loader.py", line 204, in _load_skill_source
    skill_module = imp.load_module(
  File "/usr/lib/python3.8/imp.py", line 234, in load_module
    return load_source(name, filename, file)
  File "/usr/lib/python3.8/imp.py", line 171, in load_source
    module = _load(spec)
  File "<frozen importlib._bootstrap>", line 702, in _load
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 779, in exec_module
  File "<frozen importlib._bootstrap_external>", line 916, in get_code
  File "<frozen importlib._bootstrap_external>", line 846, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/opt/mycroft/skills/plexmusic-skill/ __init__.py", line 22
    <<<<<<< Updated upstream
    ^
SyntaxError: invalid syntax
 19:31:24.538 | ERROR | 217249 | mycroft.skills.skill_loader:_communicate_load_status:287 | Skill plexmusic-skill failed to load
```

---

<div class="post-metadata">

**Author:** ![j1nx](https://community.openconversational.ai/user_avatar/community.openconversational.ai/j1nx/32/1260_2.png) [@j1nx](https://community.openconversational.ai/u/j1nx)\
**Post date:** [May 20, 2020, 8:19pm UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/18 "2020-05-20T20:19:02Z")

</div>

Looks like an unresolved git merge conflict.

---

<div class="post-metadata">

**Author:** ![colla69](https://community.openconversational.ai/user_avatar/community.openconversational.ai/colla69/32/1769_2.png) [@colla69](https://community.openconversational.ai/u/colla69)\
**Post date:** [June 6, 2020, 10:29am UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/19 "2020-06-06T10:29:17Z")

</div>

@malevolent @j1nx  
Hey guys … sorry for taking so long…

I corrected the errors … that is kind of embarassing i should have foreseen that happening.  
I also had to install a new Mycroft device and set it up from scratch, it had some problems loading the configuration.  
It eventually loaded the values after a couple restarts.  
You can see that the configuration hasn’t loaded right when it logs:

```
 connecting to:

```

Without any content.

If you still have the motivation to do so you should be able to test it now.

I broke it as i was implementing a set of new features that are still missing documentation, they should be working now.

- **by search** -\> “Hey Mycroft, play {Title} by {Author}”  
If you had the skill running before you should reload the config to get the new search keys built. Call “Hey Mycroft, reload library” and wait for it to confirm completition.
- **random music** -\> “Hey Mycroft, play [some] random music”  
it will shuffle all the titles from your library
- **add to playlist** -\> “Hey Mycroft, add to playlist {playlistName}”  
will add the title you are listening to to the named playlist. The playlist needs to exist and be loaded in your local config. so if you add a playlist after downloading your track list. you should “Hey Mycroft, reload library” before you can add anything to it.

Let me know how it goes 🙂 I am happy to get any kind of contribuition.  
Have a Nice Weekend and Happy Testing!

EDIT: added explanation for reloading config to init by search on an existing installation

---

<div class="post-metadata">

**Author:** ![malevolent](https://community.openconversational.ai/user_avatar/community.openconversational.ai/malevolent/32/135_2.png) [@malevolent](https://community.openconversational.ai/u/malevolent)\
**Post date:** [June 6, 2020, 12:10pm UTC](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973/20 "2020-06-06T12:10:39Z")

</div>

Humm, I cannot see Plexmusic skill on home.mycroft.ai to configure it now.  
and mycroft says `configuration is missing, configure plexskill`

I’ve rm -rf the skill and msm installed again, but it still doesn’t appears on home.mycroft.ai… can I be able to configure it via configuration file?

[Next page](https://community.openconversational.ai/t/plexmusic-skill-test-and-feedback/6973.md?page=2)
