Plex Movie Requests

Are they showing up under the Manage tab in CP? That's how CP knows it's been downloaded. You may have to do a manual library refresh if you don't have it doing that automatically as it doesn't know new stuff has been added as it came from a different source.

Once that's done it should update in the app

Yeah i'm pretty sure this is how it was working with the first release i had. But atm i have all 3 Mad Max movies in the CP lib, and they still show up as waiting to download in request list. Tried manual scan, quick & full. Also restarted meteor. Any logs i can check?

Yeah i'm pretty sure this is how it was working with the first release i had. But atm i have all 3 Mad Max movies in the CP lib, and they still show up as waiting to download in request list. Tried manual scan, quick & full. Also restarted meteor. Any logs i can check?

Wouldn't help as it's probably getting good values back just the wrong ones. Do a manual check in a browser using the IMDB id for movies (tt___) and what's the first status variable that you get back?

http://cpip:port/api/abcdf1233//media.get/?id=tt012334

On the Plex sign in page or the main page to make requests?

The main page the loads for the Request site. It asks for a username. I've tried mine and others using upper and lower case. I have also tried it from a WAN address, LAN address and "localhost" address to see if that made a difference, but none did.

Wouldn't help as it's probably getting good values back just the wrong ones. Do a manual check in a browser using the IMDB id for movies (tt___) and what's the first status variable that you get back?

http://cpip:port/api/abcdf1233//media.get/?id=tt012334

Looks like something has broken, this error has returned in console: 

I20150411-22:03:40.396(2)? Exception while invoking method 'updateCP' TypeError:
 Cannot read property 'title' of null
I20150411-22:03:40.396(2)?     at [object Object].Meteor.methods.searchCP (app\s
erver\server.js:55:42)
I20150411-22:03:40.396(2)?     at maybeAuditArgumentChecks (packages/ddp/livedat
a_server.js:1617:1)
I20150411-22:03:40.396(2)?     at packages/ddp/livedata_server.js:1530:1
I20150411-22:03:40.396(2)?     at [object Object]._.extend.withValue (packages/m
eteor/dynamics_nodejs.js:56:1)
I20150411-22:03:40.396(2)?     at [object Object]._.extend.apply (packages/ddp/l
ivedata_server.js:1529:1)
I20150411-22:03:40.396(2)?     at [object Object]._.extend.call (packages/ddp/li
vedata_server.js:1472:1)
I20150411-22:03:40.396(2)?     at app\server\server.js:106:24
I20150411-22:03:40.396(2)?     at [object Object]._.extend.forEach (packages/mon
go/mongo_driver.js:965:1)
I20150411-22:03:40.396(2)?     at [object Object].Cursor.(anonymous function) [a
s forEach] (packages/mongo/mongo_driver.js:812:1)
I20150411-22:03:40.396(2)?     at [object Object].Meteor.methods.updateCP (app\s
erver\server.js:105:23)

Upgraded to 1.1.0.1 and the error vanished, will see if it helped on the sync.

The main page the loads for the Request site. It asks for a username. I've tried mine and others using upper and lower case. I have also tried it from a WAN address, LAN address and "localhost" address to see if that made a difference, but none did.

Can you go to /Plex and make sure it's all green?

Quick questions.

You said you used this...

http://cpip:port/api/abcdf1233//media.get/?id=tt012334

Did you change the rest of it to reflect your personal settings? 

1) The IP address of CP for "CPIP"

2 The port of CP for "port"

3) The API of CP for "abcd1233"

You have done that and just didnt want us to see it, but just checking.

Upgraded to 1.1.0.1 and the error vanished, will see if it helped on the sync.

Let me know, and what did the manual check in a web browser return?

Let me know, and what did the manual check in a web browser return?

The manual check responded as expected, alof ot data about the movie and where its located.

Request page is still not getting updated, it it supposed to update everytime i refresh the page vs the CP api? i can always turn on API logging in CP to see whats happening.

The manual check responded as expected, alof ot data about the movie and where its located.

Request page is still not getting updated, it it supposed to update everytime i refresh the page vs the CP api? i can always turn on API logging in CP to see whats happening.

In the manual check one of the first things will be status, was it active or done? If it's done it'll get tagged as downloaded, if active (or anything else) it wont get tagged

{"media": {"status": "done",

You have to manually press the button "Update status requests!" when viewing the requested list, this is going to change so it does it on an interval  itself.

Can you go to /Plex and make sure it's all green?

I'm unable to log in there as well. I get the following in the CLI window (and more).

I20150411-16:11:54.981(-4)? { [Error: failed [401] <?xml version="1.0" encoding=
"UTF-8"?>   Invalid authentication token. ] st
ack: [Getter] }

I'm unable to log in there as well. I get the following in the CLI window (and more).

I20150411-16:11:54.981(-4)? { [Error: failed [401] <?xml version="1.0" encoding=
"UTF-8"?>   Invalid authentication token. ] st
ack: [Getter] }

401 is an authentication error I believe, the server can access Plex.tv correct?

Try manually entering your token information?

In the manual check one of the first things will be status, was it active or done? If it's done it'll get tagged as downloaded, if active (or anything else) it wont get tagged

{"media": {"status": "done",

You have to manually press the button "Update status requests!" when viewing the requested list, this is going to change so it does it on an interval  itself.

OK here is what i've done:

1. Downloaded the latest dev version to get the /plex page

2. Deleted everything exept the .meteor with the db

3. installed everything, setup /couchpotato and /plex all is working

4. Running meteor 1.1.0.2

5. No error msg in console, but still no update. I now have like 20-30 movies that i know is located in the CP lib. (full rescan done). Dunno if it matters but now i have 250 requested movies (half is downloaded)

edit: Media status = done when running API manually on random imdb links that isnt beeing updated

edit2: Ok this is back after a refresh, and i press the update button

I20150411-22:46:47.254(2)? Exception while invoking method 'updateCP' TypeError:
 Cannot read property 'title' of null
I20150411-22:46:47.254(2)?     at [object Object].Meteor.methods.searchCP (app\s
erver\server.js:73:42)
I20150411-22:46:47.254(2)?     at maybeAuditArgumentChecks (packages/ddp/livedat
a_server.js:1617:1)
I20150411-22:46:47.254(2)?     at packages/ddp/livedata_server.js:1530:1
I20150411-22:46:47.254(2)?     at [object Object]._.extend.withValue (packages/m
eteor/dynamics_nodejs.js:56:1)
I20150411-22:46:47.254(2)?     at [object Object]._.extend.apply (packages/ddp/l
ivedata_server.js:1529:1)
I20150411-22:46:47.254(2)?     at [object Object]._.extend.call (packages/ddp/li
vedata_server.js:1472:1)
I20150411-22:46:47.254(2)?     at app\server\server.js:127:24
I20150411-22:46:47.254(2)?     at [object Object]._.extend.forEach (packages/mon
go/mongo_driver.js:965:1)
I20150411-22:46:47.254(2)?     at [object Object].Cursor.(anonymous function) [a
s forEach] (packages/mongo/mongo_driver.js:812:1)
I20150411-22:46:47.254(2)?     at [object Object].Meteor.methods.updateCP (app\s
erver\server.js:126:23)

401 is an authentication error I believe, the server can access Plex.tv correct?

Try manually entering your token information?

This is what I start out with:

Capture2_zps95dje2r8.png

Then I go to this:

Capture4_zpsh7obd9kl.png

I then try to log in:

Capture3_zpse8ilj9a6.png

After I get this I go back to the Plex page and try and log in again and get this:

Capture_zpskltjdlh1.png

@foebik

Maybe check your localStorage to make sure the sessions are getting saved?

![post-14868-0-32547600-1428788319.png|690x84](upload://vUILD3lF4x53s7Cg9uR4ng8e9tA.png)

I was wondering if it was a character case issue, but my username has caps in it and I tried with and without caps and both worked.

Excellent project!

I'm looking at a error though connecting to CP:

I20150403-21:35:21.912(2)? Exception while invoking method 'searchCP' TypeError:
 Cannot read property 'media' of null
I20150403-21:35:21.912(2)?     at [object Object].Meteor.methods.searchCP (app\s
erver\server.js:58:27)
I20150403-21:35:21.912(2)?     at maybeAuditArgumentChecks (packages/ddp/livedat
a_server.js:1617:1)
I20150403-21:35:21.912(2)?     at packages/ddp/livedata_server.js:648:1
I20150403-21:35:21.912(2)?     at [object Object]._.extend.withValue (packages/m
eteor/dynamics_nodejs.js:56:1)
I20150403-21:35:21.912(2)?     at packages/ddp/livedata_server.js:647:1
I20150403-21:35:21.912(2)?     at [object Object]._.extend.withValue (packages/m
eteor/dynamics_nodejs.js:56:1)
I20150403-21:35:21.912(2)?     at [object Object]._.extend.protocol_handlers.met
hod (packages/ddp/livedata_server.js:646:1)
I20150403-21:35:21.912(2)?     at packages/ddp/livedata_server.js:546:1
 

The api is working fine, i can list the media lib from CP

The new error i have is almost identical, instead of media its now title. Some error in the database?

So i spent some more time on this, i replaced the database with my 250 requests with a emtpy one, and started requesting as before, worked like a charm. Seems like something is wrong the database then, do you want to have a look at it Loken?

This is what I start out with:

Capture2_zps95dje2r8.png

Then I go to this:

Capture4_zpsh7obd9kl.png

I then try to log in:

Capture3_zpse8ilj9a6.png

After I get this I go back to the Plex page and try and log in again and get this:

Capture_zpskltjdlh1.png

Can you try a manual token check for me? Don't post results but you should get an XML output that lists your various friends. Replace plextoken with your own token

https://plex.tv/pms/friends/all?X-Plex-Token=plextoken

So i spent some more time on this, i replaced the database with my 250 requests with a emtpy one, and started requesting as before, worked like a charm. Seems like something is wrong the database then, do you want to have a look at it Loken?

Yeah I'm just trying to think what parts going wrong...

I'll PM you after I've eaten

Can you try a manual token check for me? Don't post results but you should get an XML output that lists your various friends. Replace plextoken with your own token

https://plex.tv/pms/friends/all?X-Plex-Token=plextoken

Yes, I get back the same information you would see if you use this https://plex.tv/api/users. The only difference is that link will also show some filter information.