Skip to content

Correction IMDb login fails #1321#1330

Merged
liiight merged 2 commits intoFlexget:developfrom
krozer:develop
Aug 13, 2016
Merged

Correction IMDb login fails #1321#1330
liiight merged 2 commits intoFlexget:developfrom
krozer:develop

Conversation

@krozer
Copy link
Copy Markdown
Contributor

@krozer krozer commented Aug 12, 2016

Motivation for changes:

Correction IMDb login fails

Detailed changes:

use _session.headers.update to not overwrite header.

add _session.headers.update({reference : http://...}) For better browser simulation
and also post the URL from the action attribute of the form.

Addressed issues:

Config usage if relevant (new plugin or updated schema):

tasks:
  import_from_imdb:
    imdb_lookup: yes
    imdb_list:
      login: ********
      password: ********
      list: watchlist
    accept_all: yes
    list_add:
      - movie_list: from_imdb


Log and/or tests output (preferably both):

2016-08-12 15:31 DEBUG    task          import_from_imdb executing import_from_imdb
2016-08-12 15:31 DEBUG    imdb_list     import_from_imdb fetching items from IMDB
2016-08-12 15:31 DEBUG    imdb_list     import_from_imdb user credentials not found in cache or outdated, fetching from IMDB
2016-08-12 15:31 DEBUG    utils.requests import_from_imdb Fetching https://www.imdb.com/ap/signin?openid.return_to=https%3A%2F%2Fwww.imdb.com%2Fap-signin-handler&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.assoc_handle=imdb_mobile_us&openid.mode=checkid_setup&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0
2016-08-12 15:31 DEBUG    imdb_list     import_from_imdb email=***********, password=**********
2016-08-12 15:31 VERBOSE  utils.requests import_from_imdb Waiting 3.40 seconds until next request to imdb.com
2016-08-12 15:31 DEBUG    utils.requests import_from_imdb Fetching https://www.imdb.com/ap/signin/151-8146494-9510128?ie=UTF8&pf_rd_r=0JEHNJ78AQWGZCRQWDP7&pf_rd_m=A2A1PIL045UJ9G&pf_rd_t=6301&pf_rd_i=imdb_mobile_us&pf_rd_p=2187562082&pf_rd_s=mobile-signin-slot
2016-08-12 15:31 VERBOSE  utils.requests import_from_imdb Waiting 4.51 seconds until next request to imdb.com
2016-08-12 15:31 DEBUG    utils.requests import_from_imdb Fetching http://www.imdb.com/profile
2016-08-12 15:31 DEBUG    imdb_list     import_from_imdb could not find list ID in cache, fetching from IMDB
2016-08-12 15:31 VERBOSE  utils.requests import_from_imdb Waiting 4.67 seconds until next request to imdb.com
2016-08-12 15:31 DEBUG    utils.requests import_from_imdb Fetching http://www.imdb.com/list/_ajax/watchlist_has
2016-08-12 15:31 VERBOSE  utils.requests import_from_imdb Waiting 4.75 seconds until next request to imdb.com
2016-08-12 15:31 DEBUG    utils.requests import_from_imdb Fetching http://www.imdb.com/list/export?list_id=ls063643555&author_id=ur68256787
2016-08-12 15:31 DEBUG    imdb_list     import_from_imdb parsing line from csv: 1, tt1386697, Sun Aug  7 00:58:27 2016, Sun Aug  7 00:58:27 2016, , Suicide Squad, Feature Film, David Ayer, , 7.0, 123, 2016, action, adventure, comedy, sci_fi, 110719, 2016-08-01, http://www.imdb.com/title/tt1386697/
2016-08-12 15:31 DEBUG    imdb_list     import_from_imdb parsing line from csv: 2, tt4196776, Sun Aug  7 00:58:31 2016, Sun Aug  7 00:58:31 2016, , Jason Bourne, Feature Film, Paul Greengrass, , 7.1, 123, 2016, action, thriller, 38574, 2016-07-11, http://www.imdb.com/title/tt4196776/
2016-08-12 15:31 DEBUG    imdb_list     import_from_imdb parsing line from csv: 3, tt2660888, Sun Aug  7 00:58:32 2016, Sun Aug  7 00:58:32 2016, , Star Trek: Sans limites, Feature Film, Justin Lin, , 7.5, 122, 2016, action, adventure, sci_fi, thriller, 52763, 2016-07-20, http://www.imdb.com/title/tt2660888/
2016-08-12 15:31 DEBUG    backlog       import_from_imdb 0 entries purged from backlog
2016-08-12 15:31 VERBOSE  details       import_from_imdb Produced 3 entries.

use _session.headers.update to not overwrite header.

add _session.headers.update({reference : http://...}) For better browser simulation
and also post the URL from the action attribute of the form.
@paranoidi
Copy link
Copy Markdown
Member

Oh man, awesome work!

@v1ckdesigns
Copy link
Copy Markdown

thanks :) now it works

@liiight
Copy link
Copy Markdown
Member

liiight commented Aug 12, 2016

Any chance you fixing the test so we can merge this? Looks likes a matter of recreating cassette

@krozer
Copy link
Copy Markdown
Contributor Author

krozer commented Aug 13, 2016

Ok, I'm a beginner with Python and more with travis. From what I understood from the documentation and error, I just have to change the url signin in the cassette. what I did and now all tests are clean.

@liiight
Copy link
Copy Markdown
Member

liiight commented Aug 13, 2016

Ideally you delete and recreate the cassette but this works too

@liiight liiight merged commit 4f3a81c into Flexget:develop Aug 13, 2016
@liiight
Copy link
Copy Markdown
Member

liiight commented Aug 13, 2016

Thanks for this!

@busyhobs
Copy link
Copy Markdown

busyhobs commented Jan 9, 2017

i have just updated from a relatively old version... and i get the error above. i know very little about programing, even just creating the config script is a challenge. I was using the old imdb lookup using the id and that had been fine but in the new version iys not valid anymore. can anyone shed any light on this. also let me know what info you need from me and how to run debug etc if you need it. flexget runs from cron on my headless server so obviously i only mess with it when it needs updating or breaks in someway.

obviously i have checked my credentials and the do work outside this setup. I have a linked facebook account, but i use my IMDB email and password to login.

@cvium
Copy link
Copy Markdown
Contributor

cvium commented Jan 9, 2017

The wiki is a great place to start. https://flexget.com/Plugins/List/imdb_list

Please let old issues/PRs lie and use our forums instead if you need help. imdb_list is broken.

@liiight
Copy link
Copy Markdown
Member

liiight commented Jan 9, 2017

Just use the imdb_watchlist plugin instead

@busyhobs
Copy link
Copy Markdown

busyhobs commented Jan 9, 2017

sorry guys, thank you for your help, i was obviously looking in the wrong place. I couldn't be sure if it was broken or i was been stupid, so at least that question is clearedup :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants