Nothing Special   »   [go: up one dir, main page]

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

invalid literal for int() with base 10 #141

Closed
OdinGitDat opened this issue Oct 17, 2020 · 0 comments
Closed

invalid literal for int() with base 10 #141

OdinGitDat opened this issue Oct 17, 2020 · 0 comments

Comments

@OdinGitDat
Copy link
OdinGitDat commented Oct 17, 2020

Rating transfer fails consistenly when encountering this movie: https://www.imdb.com/title/tt10733470/

  • Version: 9b549c7
  • Running in Docker?: yes
  • Executed command: docker run --rm -it -v ~/.RatS.cfg:/RatS/RatS/credentials.cfg stegschreck/rats:master python3 transfer_ratings.py --source imdb --destination trakt

Stacktrace

===== IMDB: CSV downloaded to /RatS/RatS/exports/20201017201939_IMDB.csv
===== getting movies from CSV

===== IMDB: saved 605 parsed movies to /RatS/RatS/exports/20201017201939_IMDB.json
===== Trakt: posting 605 movies
  3% (21 of 605) |####                                                                        | Elapsed Time: 0:02:49 ETA:   1:01:30
ERROR: There was an exception inside Trakt (see below). Skipping insertion.

===== ABORTING =====
  3% (21 of 605) |####                                                                        | Elapsed Time: 0:02:56 ETA:   2:07:33
Traceback (most recent call last):
  File "transfer_ratings.py", line 216, in insert_movie_ratings
    inserter.insert(movies, source)
  File "/RatS/RatS/base/base_ratings_inserter.py", line 42, in insert
    movie_details_page_found = self._go_to_movie_details_page(movie)
  File "/RatS/RatS/base/base_ratings_inserter.py", line 96, in _go_to_movie_details_page
    success = self._find_movie(movie)
  File "/RatS/RatS/base/base_ratings_inserter.py", line 118, in _find_movie
    return self._is_movie_in_search_results(movie, search_results)
  File "/RatS/RatS/base/base_ratings_inserter.py", line 122, in _is_movie_in_search_results
    if self._is_requested_movie(movie, search_result):
  File "/RatS/RatS/trakt/trakt_ratings_inserter.py", line 30, in _is_requested_movie
    return self._check_movie_details(movie, search_result)
  File "/RatS/RatS/trakt/trakt_ratings_inserter.py", line 41, in _check_movie_details
    return self._compare_external_links(self.site.browser.page_source, movie, 'imdb.com', 'imdb')
  File "/RatS/RatS/trakt/trakt_ratings_inserter.py", line 55, in _compare_external_links
    IMDB.normalize_imdb_id(link['href'].split('/')[-1])
  File "/RatS/RatS/imdb/imdb_site.py", line 34, in normalize_imdb_id
    return int(imdb_id.replace('tt', ''))
ValueError: invalid literal for int() with base 10: 'find?q=Inside+The+Secret+World+of+Incels&s='
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

No branches or pull requests

1 participant