rickyphewitt / emby-skill

This skill allows audio playback from an emby server
11 stars 19 forks source link

Feature Request - Shuffle Mode #66

Open ghostbuster84 opened 2 years ago

ghostbuster84 commented 2 years ago

Hello, the jellyfin-skill port has shuffle mode. I ported this skill to implement it and once I have it working I would like to merge it with the main skill. I'm happy to help with anything else. I did manage to get a Jellyfin skill working since @tuxfoo's stopped working. https://github.com/ghostbuster84/jellyfin-skill https://github.com/ghostbuster84/emby-skill

rickyphewitt commented 2 years ago

Hey @ghostbuster84! Having a shuffle mode would be great! Feel free to open a PR with the changes and I'll take a look.

How different is jellyfin from Emby? I'm not opposed to supporting both servers in this skill if the changes are minimal. We could include an option in the config that would enable 'jellyfin support' or something like that.

What do you think?

ghostbuster84 commented 2 years ago

I'm still working on getting the shuffle part working. It works fine in jellyfin, but I can't get it working in enby. (Not sure where i went wrong trying to merge the skills) I think adding jellyfin support would be nice. I don't think much is different as jellyfin is forked from emby. I will try to see if I can get the emby skill to just access jellyfin without any changes to the code. Then the process would be easier as we would just have to change the calls and verbal responses.

ghostbuster84 commented 2 years ago

I am still working on getting it to work. My family is remodeling our kitchen so its been busy.

rickyphewitt commented 2 years ago

No problem! Do you want to link a branch that you are working on? I can also look into a shuffle mode in Emby and see what the differences may be. I've been thinking about the best way to support both services (and potentially more flavors as Emby is open source). Here are a few things that might make sense to implement/consider.

I don't think we need to implement all of the above before we add jellyfin support. But as we are adding jellyfin support we should consider these scenarios and move toward a common goal/architecture.

Enjoy the kitchen remodel :smile:

ghostbuster84 commented 2 years ago

On my fork of the emby skill, i only have the main branch. I've just commited changes as i go. I know the shuffling works in jellyfin in my jellyfin repo (forked from tuxfoo which is a fork from your emby skill). I am trying to merge the shuffle intents from there, but it's taking some time. As for the intents (play ___ from emby/jellyfin) All of that is set up in the jellyfin skill and i will try to merge to the emby skill. Feel free to check it over. Once i get shuffling working I will create a pull request. I also invited you to be a creator in my fork of the emby skill so you don't have to worry about breaking the main repo.

Also I have both a jellyfin and emby server set up at home so i can test both. Any test i do i either run on my PC running Zorin OS 16 or on my 5 picrofts using the google AIY voicekits for speaker/mic.