Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imdb_list: Login to IMDB does no work any longer #1421

Closed
tobiaslangner opened this issue Sep 25, 2016 · 25 comments
Closed

imdb_list: Login to IMDB does no work any longer #1421

tobiaslangner opened this issue Sep 25, 2016 · 25 comments

Comments

@tobiaslangner
Copy link

Expected behaviour:

Using the imdb_list plugin, retrieve movies on the watch list and the like.

Actual behaviour:

Login to IMDB does not work, plugin returns "Login to IMDB failed. Check your credentials." despite credentials being correct, i.e., I am able to login with the credentials printed in the log output. I tried both variants for the username, i.e., for email foo@bar.com I tried the whole address as well as just "foo", neither worked.

Steps to reproduce:

Setup a config file with the below snippet and run flexget --debug --test execute

Config:

tasks:
  populate_list:
    imdb_lookup: true
    accept_all: true
    imdb_list:
      list: watchlist
      login: <login email>
      password: <password>
    list_add:
      - movie_list: my_movies

Log:

2016-09-25 10:37 DEBUG    utils.requests populate_list   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-09-25 10:37 DEBUG    imdb_list     populate_list   email=<login email>, password=<password>
2016-09-25 10:37 VERBOSE  utils.requests populate_list   Waiting 4.24 seconds until next request to imdb.com
2016-09-25 10:37 DEBUG    utils.requests populate_list   Fetching https://www.imdb.com/ap/signin/167-5712825-0663537?ie=UTF8&pf_rd_r=14YRHC25X2GR80X7EFC6&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-09-25 10:37 VERBOSE  utils.requests populate_list   Waiting 4.79 seconds until next request to imdb.com
2016-09-25 10:37 DEBUG    utils.requests populate_list   Fetching http://www.imdb.com/profile
2016-09-25 10:37 CRITICAL plugin        populate_list   Login to IMDB failed. Check your credentials.
2016-09-25 10:37 WARNING  task          populate_list   Aborting task (plugin: imdb_list)
2016-09-25 10:37 DEBUG    task_queue                    task populate_list aborted: TaskAbort(reason=Login to IMDB failed. Check your credentials., silent=False)

Additional information:

  • Flexget Version: 2.3.31
  • Python Version: 2.7.12
  • Installation method: pip
  • OS and version: Ubuntu 14.04
  • Link to crash log:
@schunemunk
Copy link

Watching this thread - I see the same errors, but wasn't sure it wasn't my config...

@faximan
Copy link

faximan commented Sep 26, 2016

Same here!

@CkuT
Copy link

CkuT commented Sep 26, 2016

Same here

Python : 3.5.2
Flexget : 2.3.34
OS : Manjaro

@schunemunk
Copy link

Weird - problem seems to be gone now. Only action on my part was upgrading to 2.3.37.

@liiight
Copy link
Member

liiight commented Sep 29, 2016

Imdb list is basically a hack. Anyone using it should not expect 100% durability.

@liiight
Copy link
Member

liiight commented Oct 4, 2016

It seems no one in the team wants to touch this with a ten foot pole, so this probably won't get fixed. If anyone want to submit a PR, they're more than welcome.
A minor workaround for those using imdb list just as input will be to tl use its rss form. It's not ideal, but it's something.

@cvium
Copy link
Contributor

cvium commented Oct 16, 2016

Seems more trouble than it's worth.

@liiight liiight removed their assignment Oct 18, 2016
@philsturgeon
Copy link

Hey folks. I know this plugin is essentially a hack, and it is not designed to work forever, but if it doesn't work it should be removed from the site, the wiki, etc.

One solution would be advertising the IMDB RSS feed solution, which I cannot get to work as there are no examples of list_add using an RSS feed as input. If that was documented it would be a viable workaround, and you could stop advertising this plugin.

Alternatively, the plugin could be tweaked to use the RSS feed internally as a fallback.

You could even have option three which would be a fallback to trying to use the feed if login fails. An error showing "We tried logging in and it failed, please make your feed public to make this plugin continue to work" would get the job done.

@crack00r
Copy link

crack00r commented Nov 4, 2016

IT seams the bug is back?

root@***:~/.flexget# flexget -V
2.5.12
You are on the latest release.

2016-11-04 20:54 VERBOSE utils.requests Remove_CollectedSeriesFromWatchlist Waiting 4.24 seconds until next request to imdb.com
2016-11-04 20:54 VERBOSE utils.requests Remove_CollectedSeriesFromWatchlist Waiting 4.73 seconds until next request to imdb.com
2016-11-04 20:54 CRITICAL plugin Remove_CollectedSeriesFromWatchlist Login to IMDB failed. Check your credentials.
2016-11-04 20:54 WARNING task Remove_CollectedSeriesFromWatchlist Aborting task (plugin: imdb_list)

@cvium
Copy link
Contributor

cvium commented Nov 4, 2016

It was never gone. Sometimes it works, sometimes it doesn't.

@snickers2k
Copy link

but nowdays it seems to be not working way more often, than it is working..
The tag-label is "Won't Fix". So i guess i have to completely switch to trakt? Maybe these problems should be clarified on the imdb_list-wiki for later users, running into the same problems

@firasdib
Copy link

I updated flexget by misstake which is why I have this issue now. My friend still runs an older version which works 100% of the time.... Why can't we just use that code instead?

@snickers2k
Copy link

snickers2k commented Nov 13, 2016

that is really interesting. maybe you can ask your friend which version he uses? flexget -V in terminal.
but i guess it was the last change on the imdb_list.py 10 days ago. It was working 2 weeks ago and 4 days ago i updated flexget. It is not working since then. Remove the "Won't Fix" label and fix this! :D
So maybe @tobinjt could take a look at that commit? Or maybe @liiight could review that? thanks.
in the meantime, i'll try the old version of the imdb_list.py and see what happens

@tobinjt
Copy link
Contributor

tobinjt commented Nov 14, 2016

I can't help you with this - my commit only changed a comment. See https://github.com/tobinjt/Flexget/commit/6d9b973d73603bddd06f69e8523b2eb922735800#diff-d4b4dfe8a325db0d5c6c6e7ed96cd65b for the extent of my changes.

@snickers2k
Copy link

snickers2k commented Nov 14, 2016

oh i see.. well, than this error is really strange.. maybe @liiight or @gazpachoking any ideas? this is a major issue for anyone using imdb as input :(

@cvium
Copy link
Contributor

cvium commented Nov 14, 2016

NOTE: imdb_list no longer working or working intermittenly has nothing to do with any commit

I don't think you understand. This is out of our control. imdb has been forcing captchas on its users and there's really no nice way around that.

You can use the old plugin if you want, but there's no guarantee it will work and it most certainly won't work with any List specific plugins like list_add, list_remove, list_match etc.

@snickers2k
Copy link

snickers2k commented Nov 15, 2016

okay.. that is really sad. i was just wondering why people saying it's still working with the old plugin. if the captchas are the problem, maybe a captcha-solver-service could be a solution? most people using flexget with shared-hosters have them already. i would be really happy about such solution. because lets face it, trakt is nice - but imdb is the biggest movie-database on earth and is accordingly important. thanks

@cvium
Copy link
Contributor

cvium commented Nov 15, 2016

I guess I could've been clearer. The old plugin works by parsing a public imdb watchlist and avoids captchas that way, but it also means it won't be able to modify the watchlist in any way.

As for the current imdb_list, none of us have the time nor the motivation to find a proper fix if one exists, hence the labels "Won't Fix" and "Pending contribution".

@firasdib
Copy link

firasdib commented Nov 15, 2016

@cvium How would I go about using that (the old) plugin instead of the current one?

@cvium
Copy link
Contributor

cvium commented Nov 15, 2016

I've added the old imdb plugin as imdb_watchlist, http://flexget.com/Plugins/imdb_watchlist

It only works with public lists. It will be included in the next release.

@snickers2k
Copy link

Okay, so the old-plugin works so far to crawl the imdb_watchlist.
So instead of using trakt for adding movies, i still use imdb and let flexget sync the imdb_watchlist with trakt. Okay, no way to delete entries in imdb (have now around 1300 movies in imdb), but it seems to work. as soon as the watchlist is full, i'll create a new imdb acc :D
Maybe this helps for anyone who want's to mainly use imdb for adding movies.

@lostsubstance
Copy link
Contributor

It must be your account or password...
This config has been (and continues to be) working for me for the last year or so without error:

tasks:
  imdb:
    priority: 1
    no_entries_ok: yes
    disable: [seen]
    imdb_list:
      login: '{? imdb.login ?}'
      password: '{? imdb.password ?}'
      list: watchlist
    accept_all: yes
    list_add:
      - movie_list: movies
      - trakt_list:
          username: '{? trakt.username ?}'
          account: '{? trakt.username ?}'
          list: queued-movies
          type: movies
    list_remove:
      - imdb_list:
          login: '{? imdb.login ?}'
          password: '{? imdb.password ?}'
          list: watchlist

@cvium cvium mentioned this issue Jan 24, 2018
liiight pushed a commit that referenced this issue Jan 25, 2018
* fix

* fix cookies

* moved the comment

* removed unused line
@liiight
Copy link
Member

liiight commented Jan 25, 2018

A potential fix for this was just pushed, will be released next version.

@cvium
Copy link
Contributor

cvium commented Jan 25, 2018

I was unable to trigger any captchas when working on #2062, but if someone manages to trigger it, we will probably attempt the following fix:

  1. Auth cli tool similar to Trakt
  2. Convert captcha to ASCII and print to console (should probably include a link to the image itself in case of non-monospaced fonts and tiny windows).

@cvium cvium removed the Won't Fix label Jan 25, 2018
@cvium
Copy link
Contributor

cvium commented Jan 25, 2018

I will close this for now. If it happens again, just let us know.

@cvium cvium closed this as completed Jan 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests