Giter Club home page Giter Club logo

Comments (5)

deafmute1 avatar deafmute1 commented on June 30, 2024

Also getting this error. Not an issue for me as Plex is my main/only music server right now, and I just use this script to export the playlists for backup/future use as I care about having my playlists available in a service agnostic format. I'll try and investigate the API, but the lack of any documentation from plex makes it hard.

from ppp.

leninsaccountant avatar leninsaccountant commented on June 30, 2024

@XDGFX Hi Callum, do you have a solution for this? Thanks

from ppp.

XDGFX avatar XDGFX commented on June 30, 2024

Hey, sorry for the lack of response. Yep it's an error from Plex, and as deafmute1 says there isn't really any documentation on the api to help.

Are you able to run and debug the code? If so I would try breaking on line 673 (just before it sends the POST request), copying the querystring parameters and trying to POST with another program like Postman or Curl.

I imagine one of the parameters might be wrong, so either the section ID, Plex token, or maybe most likely the Plex path. Have a look at _plex_path after line 668 (add print(_plex_path) on the next line if you can't debug) and see if the path looks correct, and make sure it's accessible from wherever your Plex instance is running.

from ppp.

derritter88 avatar derritter88 commented on June 30, 2024

Just as an information: I run the script and Plex console threw following error:
[Req#4a562] PlaylistImporter: invalid section 11

from ppp.

derritter88 avatar derritter88 commented on June 30, 2024

I think I found the solution for this:

You need to adopt the value selection_id with the current music id - e.g.:

curl -k -XGET https://plex.server.fqdn:32400/library/sections/?X-Plex-Token=*********

This will give you an XML response and you need to identify which directory does include the music and take the Location id=x from that.

After that the PPP.py scripts works again.

from ppp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.