AMC : rtorrent/plex update (plex home)

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
discinabq
Posts: 3
Joined: 16 Dec 2014, 00:44

AMC : rtorrent/plex update (plex home)

Post by discinabq »

Ever since plex introduced plex home. My update call from AMC has not been working. it seems that plex requires a token now to update the server. Is their a way to work this into the script?

as of right now I am running the "touch" call to a new file with:
wget -qO- http://IP ADD:32400/library/sections/all/refresh?X-Plex-Token=uniquetoken > /dev/null

to update plex. it works but it seems a bit slow to get through the cmd and actually process the udpate
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC : rtorrent/plex update (plex home)

Post by rednoah »

I have yet to find proper documentation on the HTTP API calls.

If I have some sort of official reference, then I could implement support for that.

Does the issue affect all latest versions of Plex? Or only the ones with the "Home" feature?
:idea: Please read the FAQ and How to Request Help.
discinabq
Posts: 3
Joined: 16 Dec 2014, 00:44

Re: AMC : rtorrent/plex update (plex home)

Post by discinabq »

As of now it only affects plex users who are using "Home". I read something on Plex documentation that made it sound like they are going to move all management of shared libraries and users to plex home at some point. At that point my assumption is that this would affect all users.

If it were possible to add a variable to the update script for our token and append it to the end of the URL, this may work?
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC : rtorrent/plex update (plex home)

Post by rednoah »

Found some docs here:
https://support.plex.tv/hc/en-us/articl ... L-Commands

You can test the latest script by calling -script dev:amc and this is how you pass in plex host/token now:

Code: Select all

--def plex=localhost:token
:idea: Please read the FAQ and How to Request Help.
discinabq
Posts: 3
Joined: 16 Dec 2014, 00:44

Re: AMC : rtorrent/plex update (plex home)

Post by discinabq »

works great!
User avatar
pax0707
Posts: 63
Joined: 25 Jun 2014, 09:44

Re: AMC : rtorrent/plex update (plex home)

Post by pax0707 »

How do I see Plex authentication token?
elgallo
Posts: 40
Joined: 29 Apr 2014, 10:33

Re: AMC : rtorrent/plex update (plex home)

Post by elgallo »

either of you have the --def for plea to update only a section?

i have
plex=localhost:uniqueToken
1=TV but I can't figure out how to parse it so it updates TV instead of all
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: AMC : rtorrent/plex update (plex home)

Post by rednoah »

It'll always update everything. Only updating a section doesn't make that much more sense. Although Plex has major performance issues when doing a full refresh, this is a Plex problem that should be fixed on their side.

@see https://github.com/filebot/scripts/pull ... t-64526351
:idea: Please read the FAQ and How to Request Help.
Post Reply