Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plex: allow music section name other than 'Music' #610

Closed
MPE2016 opened this issue Jul 17, 2019 · 7 comments
Closed

Plex: allow music section name other than 'Music' #610

MPE2016 opened this issue Jul 17, 2019 · 7 comments
Assignees
Labels
Milestone

Comments

@MPE2016
Copy link

@MPE2016 MPE2016 commented Jul 17, 2019

Description

Hi there,

I really like what you are doing. I have been looking for a command line plex client for ages, so I think your project is awesome! That said, I do have a couple of questions, rather than issues or feature requests:

  1. Is it only possible to use plex locally (e.g. with the local ip-adress in the config file) on Tizonia? I'm asking because the feature that I like the most about plex is that I can play my music anywhere.
  2. Can I use a different description for my music library? Right now I can only get it to work when using the name 'music', which is not what I am normally using (because I'm Dutch and trying to stick to that).

Steps to Reproduce

  • I copied the config file (tizonia.conf) from /etc/xdg/tizonia to .config/tizonia, and used that to configure Plex.
  • I found the token by looking at the xml file (as instructed) and used the local ip-adress of my plex server in the configuration file like so:
plex.base_url = http://localip:32400
plex.auth_token = token

Then as a test I tried several Tizonia plex commands to get it to play some of the music:

tizonia --plex-audio-artist "Nirvana"
tizonia --plex-audio-album "In Utero"
tizonia --plex-audio-tracks "All apologies" 

  • When I am outside of my network, it's not playing (which I guess is normal behaviour in the currecnt setup)
  • When I have the music library named 'Muziek' it's not playing anything, and I get this errormessage:
[Plex] [Connecting] : 'http://192.168.178.201:32400'.
[Plex] (NotFound) : Invalid library section: Music

tizonia exiting (OMX_ErrorInsufficientResources).

 [OMX.Aratelia.audio_source.http:port:0]
 [OMX_ErrorInsufficientResources]

Which, I guess, is correct, because I am actually using a different (Dutch) name for my music library (Muziek). As soon as I change the name to 'Music' it works like a charm.

Versions

0.18.

Installation Method Used

I have, by my knowledge, correctly installed tizonia, by following the instructions (ubuntu) on the website.

@Zamlet

This comment has been minimized.

Copy link

@Zamlet Zamlet commented Oct 29, 2019

I have the same problem described by MPE2016. I am trying to use Tizonia with a Plex server on my local network, but I do not have a library named "Music". I get the exact same error as the OP:

tizonia 0.18.0. Copyright (C) 2019 Juan A. Rubio
This software is part of the Tizonia project <http://tizonia.org>

[Plex] [Connecting] : 'http://192.168.1.20:32400'.
[Plex] (NotFound) : Invalid library section: Music

tizonia exiting (OMX_ErrorInsufficientResources).

 [OMX.Aratelia.audio_source.http:port:0]
 [OMX_ErrorInsufficientResources]

This error is 100% reproducible.

I am trying to use Tizonia 0.18.0 on a computer running Linux Mint 19.2 (based on Ubuntu Bionic).

If I create a library named "Music", Tizonia works and plays fine, but only sees that one library and ignores all my other libraries. If there is no such library, Tizonia fails every time with the above error.

I really, really do not want to have to use a library named "Music". I have a very extensive collection that I have spent days configuring exactly the way I like, with multiple libraries that are not named "Music", and to have to rearrange everything to put it all in a single library named "Music" would be a hassle that I doubt would be worth the trouble just for this.

Please either detect the actual library names as provided by the server (I assume this is possible), or at least let us specify them directly in ~/.config/tizonia/tizonia.conf. Thank you.

@tizonia tizonia changed the title Plex only playing locally, and music name cannot be anything other than 'Music' Plex: allow music section name other than 'Music' Nov 29, 2019
@tizonia

This comment has been minimized.

Copy link
Owner

@tizonia tizonia commented Nov 29, 2019

@MPE2016 @Zamlet

Thanks to both of you for your suggestions.

The name of the music library will be configurable via ~/.config/tizonia/tizonia.conf. This work will be ready soon in the 'develop' branch (to be released in 0.19.0)

I've created a separate issue for the other suggestion (remote plex playback):
#610

@Zamlet

This comment has been minimized.

Copy link

@Zamlet Zamlet commented Dec 1, 2019

@tizonia

This comment has been minimized.

Copy link
Owner

@tizonia tizonia commented Dec 12, 2019

@Zamlet

I see what you mean. At the moment, there is support for selecting a specific library, either statically in the conf file or via command-line flag. So switching from one library to another would be quite easy.

Selecting multiple libraries at the same time requires some more work, so that's not included here. But please, feel free to open another issue for that feature.

@tizonia

This comment has been minimized.

Copy link
Owner

@tizonia tizonia commented Dec 12, 2019

Added #642

@juanrubio juanrubio closed this in 19f8f84 Dec 13, 2019
@Zamlet

This comment has been minimized.

Copy link

@Zamlet Zamlet commented Dec 17, 2019

Thanks for the response, and for opening #642!

For now, if there were some method for selecting one library on the fly via the interface rather than editing the .conf file, that'd be a good workaround, and a valuable feature long-term.

Ultimately, I'd like to be able to shuffle or select music from some or all of my libraries at once, so I hope the development team will continue to look into that possibility.

@tizonia

This comment has been minimized.

Copy link
Owner

@tizonia tizonia commented Dec 17, 2019

selecting one library on the fly via the interface

Yes, this is possible now in 0.19.0 using the --plex-music-section command-line option:

$ tizonia --help plex  
tizonia 0.19.0. Copyright (C) 2019 Juan A. Rubio
This software is part of the Tizonia project <http://tizonia.org>

GNU Lesser GPL version 3 <http://gnu.org/licenses/lgpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Plex options:
  --plex-server-base-url arg Plex server base URL (e.g. 
                             'http://plexserver:32400'. Not required if 
                             provided via config file).
  --plex-auth-token arg      Plex account authentication token (not required if
                             provided via config file).
  --plex-music-section arg   Name of the Plex music section (needed if 
                             different from 'Music'; may be provided via config
                             file).
  --plex-audio-tracks arg    Search and play audio tracks from a Plex server.
  --plex-audio-artist arg    Search and play an artist's audio tracks from a 
                             Plex server.
  --plex-audio-album arg     Search and play a music album from a Plex server.
  --plex-audio-playlist arg  Search and play playlists from a Plex server.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.