View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 18 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Mar 02, 2006 12:15 pm 
Offline
Joined: Sun Mar 21, 2004 10:01 am
Posts: 77
Has anyone gotten this to work properly? After entering in all my RSS feeds and setting up the table in the DB I am able to browse my Que, browse all titles I am intrested in , etc.. BUT the only thing that dosn't work is moving movies in my que to the top and delete movies from my que.

I have already ran the "/usr/share/mythtv/mythflix/scripts/netflix.pl -L <NetflixUserid> <NetflixPassword>" command a few times (read me states to run it twice) but all I recieve is a "Status Code: 501" that comes up after running it. I don't know if it is entering it properly and if this is what is causing the problem with moving movies and deleting them from the que.

I have also tried running the commands manually with "/usr/share/mythtv/mythflix/scripts/netflix.pl -1 <movieid> to move it to the top of the que and "/usr/share/mythtv/mythflix/scripts/netflix.pl -R <movieid>" to delete a movie from the que, both returned a "Status Code: 200" but when I went to log into Netflix, neither movie was removed nor moved to the top of the Que.


Thanks.


Last edited by dmcman73 on Wed Apr 05, 2006 8:10 am, edited 1 time in total.


Top
 Profile  
 
PostPosted: Mon Mar 20, 2006 10:09 pm 
Offline
Joined: Thu Feb 23, 2006 2:41 pm
Posts: 68
http://btek.blogspot.com/

Key relevant excerpts from the blog...
Quote:
1) MythFlix Configuration
View the read me as:

gzip -cd /usr/share/doc/mythflix-0.19/README.gz | less


Run and setup your RSS feeds within the mythfrontend.

Now exectute the following command !!twice!!!

/usr/share/mythtv/mythflix/scripts/netflix.pl -L


Now you must manually insert the RSS feeds into the database. I am going to use phpmyadmin to do this.

To get the feed values log into your netflix account and click on RSS at the bottom of the page. You will see your personallized feeds within this page.

Now insert into the database as
name [ Queue ]
Category [NetFlix]
Url [ The feed Value ]
Ico [http://cdn.nflximg.com/us/icons/nficon.ico]
updated [ NULL]
is_queue [1]

name [ History ]
Category [NetFlix]
Url [ The feed Value ]
Ico [http://cdn.nflximg.com/us/icons/nficon.ico]
updated [ NULL]
is_queue [2]

In the Queue screen, pressing "ENTER" will bring up a menu of options to perform on the current selection including "Move to top of queue" and "Remove from queue". Also, pressing "1 will move an item to the top of the queue while "D" will remove it from the queue.

You can also use the mysql command line as
insert into netflix values ("Queue","NetFlix", '[YOUR QUEUE RSS URL]','http://cdn.nflximg.com/us/icons/nficon.ico', null, 1);

insert into netflix values ("History","NetFlix", '[YOUR HISTORY RSS URL]','http://cdn.nflximg.com/us/icons/nficon.ico', null, 2);



I found the last lines of this excerpt of the blog the most useful in getting the mythflix up and running as I had zero experience with SQL. Now I just have to figure out how to add movies to the que!

arriflex


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 21, 2006 8:12 am 
Offline
Joined: Wed Nov 10, 2004 12:28 am
Posts: 91
Location: NJ
I don't have a solution yet, but I am also getting the status code 200 when trying to move a movie to the top of the queue.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 21, 2006 5:54 pm 
Offline
Joined: Sat Feb 21, 2004 11:54 am
Posts: 48
I am getting this same '501' error when I am trying to do the

mythflix/scripts/netflix.pl -L <userid> <passwd>

command. I am logging in with my e-mail address as my user id (not entirely sure what my user id would be other than that). Could that be the problem?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 22, 2006 7:17 am 
Offline
Joined: Tue Oct 25, 2005 1:22 pm
Posts: 108
Location: USA, New Hampshire
this is what worked for me.
Start over and remove all sql entries for MythFlix

Goto setup and configure the rss feeds. Then use the user/pass command twice!!
Thank insert your rss data from NetFlix. If you follow his guide to the T then it will work. The 501 error is nothing to pay attention to. Mine had the same messege but for some reason it doesnt matter.
Go here for more directions:

http://petrocik.net/mythtv/mythflix.html

_________________
Once you go HDTV, you'll never come back!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 22, 2006 9:24 am 
Offline
Joined: Wed Nov 10, 2004 12:28 am
Posts: 91
Location: NJ
Wanttoknow,

Are you able to move movies to the top of your queue?

Rich

wanttoknow wrote:
this is what worked for me.
Start over and remove all sql entries for MythFlix

Goto setup and configure the rss feeds. Then use the user/pass command twice!!
Thank insert your rss data from NetFlix. If you follow his guide to the T then it will work. The 501 error is nothing to pay attention to. Mine had the same messege but for some reason it doesnt matter.
Go here for more directions:

http://petrocik.net/mythtv/mythflix.html


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 22, 2006 3:34 pm 
Offline
Joined: Tue Oct 25, 2005 1:22 pm
Posts: 108
Location: USA, New Hampshire
yep. everything works as it should.

_________________
Once you go HDTV, you'll never come back!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 24, 2006 6:11 pm 
Offline
Joined: Sat Feb 21, 2004 11:54 am
Posts: 48
wanttoknow, is your Knoppmyth install an auto upgrade or fresh install? Mine was an auto upgrade and I had some permissions problems on /home/mythtv/.myth/MythFlix (root owned it). I fixed the ownership, empties the 'netflix' table and followed the instructions exactly, but still cannot move an item to the top of my queue. I can see that 'netflix.cookies' is being correctly created. If I run the command to move a move to the top of my queue (netflix.pl -1 NUMBER NUMBER) a 'Status Code: 200' is returned. If I edit netflix.pl and uncomment line 3, here is the outut I get:

LWP::UserAgent::new: ()
HTTP::Cookies::Netscape::load: Okay, /home/mythtv/.mythtv/MythFlix/netflix.cookies is a netscape cookies file. Parsing.
HTTP::Cookies::Netscape::load: -Reading NS cookie: <.netflix.com> <TRUE> </> <FALSE> <1145669407> <NetflixCookies> <persistent>
HTTP::Cookies::Netscape::load: -Reading NS cookie: <.netflix.com> <TRUE> </> <FALSE> <1174781109> <NetflixShopperId> <EDITED OUT>
HTTP::Cookies::Netscape::load: -Reading NS cookie: <.netflix.com> <TRUE> </> <FALSE> <1174781110> <country> <1>
HTTP::Cookies::Netscape::load: -Reading NS cookie: <.netflix.com> <TRUE> </> <FALSE> <1174780806> <custTrans> <Y>
HTTP::Cookies::Netscape::load: -Reading NS cookie: <.netflix.com> <TRUE> </> <FALSE> <1174613407> <dma> <510>
HTTP::Cookies::Netscape::load: -Reading NS cookie: <.netflix.com> <TRUE> </> <FALSE> <1143273599> <fvinc> <Y>
HTTP::Cookies::Netscape::load: -Reading NS cookie: <.netflix.com> <TRUE> </> <FALSE> <1174781110> <vstCnt> <EDITED OUT>
LWP::UserAgent::request: ()
HTTP::Cookies::add_cookie_header: Checking www.netflix.com for cookies
HTTP::Cookies::add_cookie_header: Checking .netflix.com for cookies
HTTP::Cookies::add_cookie_header: - checking cookie path=/
HTTP::Cookies::add_cookie_header: - checking cookie fvinc=Y
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie dma=510
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie country=1
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie NetflixShopperId=EDITED OUT
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie custTrans=Y
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie vstCnt=EDITED OUT
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie NetflixCookies=persistent
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: Checking netflix.com for cookies
HTTP::Cookies::add_cookie_header: Checking .com for cookies
LWP::UserAgent::send_request: GET http://www.netflix.com/MoveToTop?moviei ... fromq=true
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
HTTP::Cookies::extract_cookies: Set cookie ARPT => EDITED OUT
HTTP::Cookies::extract_cookies: Set cookie lastHitTime => 1143245181764
HTTP::Cookies::extract_cookies: Set cookie country => 1
HTTP::Cookies::extract_cookies: Set cookie nflxsid => 101
HTTP::Cookies::extract_cookies: Set cookie NetflixSession => EDITED OUT
HTTP::Cookies::extract_cookies: Set cookie NetflixShopperId => EDITED OUT
HTTP::Cookies::extract_cookies: Set cookie promo =>
LWP::UserAgent::request: Simple response: Found
LWP::UserAgent::request: ()
HTTP::Cookies::add_cookie_header: Checking www.netflix.com for cookies
HTTP::Cookies::add_cookie_header: - checking cookie path=/
HTTP::Cookies::add_cookie_header: - checking cookie ARPT=EDITED OUT
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: Checking .netflix.com for cookies
HTTP::Cookies::add_cookie_header: - checking cookie path=/
HTTP::Cookies::add_cookie_header: - checking cookie nflxsid=101
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie country=1
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie NetflixSession=EDITED OUT
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie lastHitTime=1143245181764
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie vstCnt=EDITED OUT
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie NetflixCookies=persistent
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie dma=510
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie fvinc=Y
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie NetflixShopperId=EDITED OUT
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: - checking cookie custTrans=Y
HTTP::Cookies::add_cookie_header: it's a match
HTTP::Cookies::add_cookie_header: Checking netflix.com for cookies
HTTP::Cookies::add_cookie_header: Checking .com for cookies
LWP::UserAgent::send_request: GET http://www.netflix.com/Signin?nextpage= ... omq%3Dtrue
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::Protocol::collect: read 452 bytes
LWP::Protocol::collect: read 1896 bytes
LWP::Protocol::collect: read 2920 bytes
LWP::Protocol::collect: read 1460 bytes
LWP::Protocol::collect: read 1460 bytes
LWP::Protocol::collect: read 1460 bytes
LWP::Protocol::collect: read 1460 bytes
LWP::Protocol::collect: read 1460 bytes
LWP::Protocol::collect: read 1460 bytes
LWP::Protocol::collect: read 1460 bytes
LWP::Protocol::collect: read 357 bytes
HTTP::Cookies::extract_cookies: Set cookie country => 1
HTTP::Cookies::extract_cookies: Set cookie nflxsid => 101
HTTP::Cookies::extract_cookies: Set cookie vstCnt => EDITED OUT
LWP::UserAgent::request: Simple response: OK


Top
 Profile  
 
 Post subject: Mythflix
PostPosted: Mon Mar 27, 2006 10:07 am 
Offline
Joined: Tue Jun 21, 2005 6:09 pm
Posts: 57
Background
Did an upgrade to my system running5 Alpha 30
Found some small issues but nothing upworkable
Decided to go ahead and do a clean install.
Clean install without any errors
Tested most of the features that I normally use with no real problems
Problem
After seeing the new feature wanted to use the netflix mod
Netflix seems to not be configured
Procedures
Went to setup page for netflix and checked the top one hundred
Went to netflix page and could see different movies in the top one hundred
ssh to the server and ran mythflix/scripts/netflix.pl -L userid passwd twice as recommended
recieved the 501 error code
tested the page again just seeing blank screen with theme background of course
logged into mysql as root and realized there would be no way for me to make changes (no real experience with mysql at all)
went to the webmin page and opened mysql and navigated down to the netflix component, looked great as far as the fields showing up where I thought they shoud be
Everything looked correct
Questions
Should i remove the values and then add them back in
("Queue","NetFlix", '[YOUR QUEUE RSS URL]','http://cdn.nflximg.com/us/icons/nficon.ico', null, 1);
("History","NetFlix", '[YOUR HISTORY RSS URL]','http://cdn.nflximg.com/us/icons/nficon.ico', null, 2);
If so could someone give me a little more info on how to do this correctly
I know there are some how to's on this piece but it seemed to be above my head as far as the procedure to follow.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 30, 2006 6:34 am 
Offline
Joined: Sun Mar 21, 2004 10:01 am
Posts: 77
Ok, I've tried (what I believe to be) everything. I dropped the netflix table, rebuilt the plugin, re-installed it, followed the README file to the "T", ran the script for user ID and password twice and it still does not work :evil: .

Does anyone know where the user id and password is stored? Is it in a table in the database or a flat file?

What I do have working is the History and my Queue but I can not delete or move movies in my Queue.

**EDIT**

I uncommented out line 3 in the netflix.pl script like a previous poster did, ran the netflix.pl -L <userid> <userpassword> script and this is what it output:

LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
HTTP::Cookies::add_cookie_header: Checking www.netflix.com for cookies
HTTP::Cookies::add_cookie_header: Checking .netflix.com for cookies
HTTP::Cookies::add_cookie_header: Checking netflix.com for cookies
HTTP::Cookies::add_cookie_header: Checking .com for cookies
LWP::UserAgent::send_request: POST https://www.netflix.com/Login
LWP::UserAgent::_need_proxy: Not proxied
LWP::UserAgent::request: Simple response: Not Implemented
Status Code: 501

Two lines that stand out that I can't put my finger on, the two last lines that are:
LWP::UserAgent::_need_proxy: Not proxied
LWP::UserAgent::request: Simple response: Not Implemented


Top
 Profile  
 
PostPosted: Thu Mar 30, 2006 9:01 am 
Offline
Joined: Sun Mar 21, 2004 10:01 am
Posts: 77
I’ve got the Netflix plugin to work!

It seems that for some people the script is not working properly and not logging them in successfully. The fix I found is more like a band-aid until whatever is causing the script to log into the Netflix account is fixed. It may be a network issue or setup, I’m not sure.

Anyway here are the steps I did to get it to work:

You will need to log into your Netflix account with a standard browser, do not log off your Netflix account but just close your browser. This will keep you logged in. Go to your Cookie Cache on the PC you used to log into Netflix, look for the netflix.com cookie, open it with an editor (use wordpad if you are on a windows system) and look for “NetflixShopperId” You will see a long 35 character string consisting of numbers and letters, you will need this so copy it down or copy it to your clip board.

I did this using SSH from my windows box so that I could copy/paste the shopperID:

On your Myth box run the netflix.pl –L <userID> <userPassword> script at least once to create the cookie if you haven’t done so already.
Now using an editor (I use vi) and edit the netflix.cookies file

$ vi /home/mythtv/.mythtv/MythFlix/netflix.cookies

On the 5th line you will see near the end the NetflixShopperId with another 35 character string, delete that string and enter or paste the string you got from the cookie in the previous step.

If you've never used vi before; to edit the file you will first need to press the “insert” key then use your arrow keys to navigate the cursor. You should see the words --INSERT-- in the bottom left corner, you are now in “edit” mode. Try not to use the number key pad on your key board as for some reason it screws things up going through SSH. If you screwed something up then you can exit vi without saving by pressing the “etc” key first (the -- INSERT -- should disappear from the bottom left corner) then type (without quotes) “:q!” If everything is as you want and you want to save and quit then type “:wq” instead.

Once you’re done then go over to your MythBox and start up the Netflix plugin. Select Browse for movies and you should be able to highlight a movie and press the Enter key, this will add it to your Queue. Go into your Queue and the Movie you entered should appear at the bottom. If you want to move the movie to the top or delete it then highlight the movie and press enter, it will present you with choices to do so.

**IMPORTANT**
I have to add this, I have not tested it out yet but I am not sure that if you go back to www.netflix.com using the browser you logged into your account with to obtain the shopper ID and accidentally Logged off the account, the Netflix plugin may stop working. I believe that when you log off your account by selecting “Log Off” Netflix then expires that NetflixShopperId. If it does then there is one other way to go about it to be sure no one ever logs your account out and expires that shopper ID. Shut down the front end on your MythBox temporarily, start up Firefox (if you have it installed) and log into Netfilx from there. Grab the NetflixShopperId from that cookie and enter it, close Firefox and start the front end again. This way the only way someone can log off that account and expires that shopper ID is if they started Firefox up on the Myth box again, went back into the Netflix account and logged it off.

Just note that the Shopper ID is different each time you log into your account from a different system. If you log on and off your account from work lets say, it will not efect the shopper ID that is on your MythFlix plugin (as long as you didn't use the shopperId from your work PC).

I hope this helps, let me know!! :D

P.S: If you uncommented line 3 in the netflix.pl (the debug line) then comment it back out before using the Netflix plugin. If you don't and you use the plugin in with Debug on it will crash the front end.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 02, 2006 1:02 pm 
Offline
Joined: Sat Feb 21, 2004 11:54 am
Posts: 48
Thank you! I just did as you suggested and the plugin is now working properly for me too.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 03, 2006 6:01 pm 
Offline
Joined: Sun Mar 21, 2004 10:01 am
Posts: 77
I'm glad to at least have helped one person on this board :D


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 30, 2006 10:41 am 
Offline
Joined: Wed Jun 15, 2005 9:14 pm
Posts: 72
Copying the line from the Netflix account also worked for me. Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jul 02, 2006 10:51 pm 
Offline
Joined: Fri May 13, 2005 8:46 am
Posts: 48
Location: Grand Rapids, MI
helped me too, thanks!

_________________
ASUS P5N7A-VM, 2.5gHz E5200, 2GB crucial DDR2, pvr-250, hdhomerun, URC-8820 remote, Panasonic TH-42PZ80U, LinHES 6.01.00


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu