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

ERROR: "argument 2 to map() must support iteration" when scanning for new files. #3735

Closed
heymoe opened this issue Feb 9, 2018 · 2 comments

Comments

@heymoe
Copy link

heymoe commented Feb 9, 2018

Branch/Commit: develop / 6de0cee
OS: Linux SVR 4.14.13-1-ARCH #1 SMP PREEMPT Wed Jan 10 11:14:50 UTC 2018 x86_64 GNU/Linux

What you did:
Clicked on "Re-Scan Files"

What happened:
Generated error (see log below) and didn't successfully scan for new files. It only seems to happen with this show (The Daily Show). Other shows seem fine so far.

What you expected:
Re-scan for new files and not generate and error.

Logs:

2018-02-09 13:22:44 ERROR    SHOWQUEUE-REFRESH :: [6de0cee] 71256: Error while refreshing show The Daily Show. Error: argument 2 to map() must support iteration
Traceback (most recent call last):
  File "/app/medusa/medusa/show_queue.py", line 635, in run
    self.show.refresh_dir()
  File "/app/medusa/medusa/tv/series.py", line 1752, in refresh_dir
    self.load_episodes_from_dir()
  File "/app/medusa/medusa/tv/series.py", line 930, in load_episodes_from_dir
    cur_episode = self.make_ep_from_file(os.path.join(self.location, media_file))
  File "/app/medusa/medusa/tv/series.py", line 1396, in make_ep_from_file
    root_ep.create_meta_files()
  File "/app/medusa/medusa/tv/episode.py", line 1108, in create_meta_files
    self.__create_thumbnail(metadata_provider)
  File "/app/medusa/medusa/tv/episode.py", line 1131, in __create_thumbnail
    result = metadata_provider.create_episode_thumb(self) or result
  File "/app/medusa/medusa/metadata/generic.py", line 326, in create_episode_thumb
    ep_obj.set_indexer_data(season=ep_obj.season, indexer_api=self.indexer_api)
  File "/app/medusa/medusa/tv/episode.py", line 679, in set_indexer_data
    api._get_episodes(self.series.series_id, aired_season=season)
  File "/app/medusa/medusa/indexers/tvdbv2/tvdbv2_api.py", line 223, in _get_episodes
    episodes = self._query_series(tvdb_id, specials=specials, aired_season=aired_season, full_info=True)
  File "/app/medusa/medusa/indexers/tvdbv2/fallback.py", line 134, in __call__
    return self.func(*args, **kwargs)
  File "/app/medusa/medusa/indexers/tvdbv2/tvdbv2_api.py", line 291, in _query_series
    results = self._get_episodes_info(tvdb_id, results, season=aired_season)
  File "/app/medusa/medusa/indexers/tvdbv2/tvdbv2_api.py", line 233, in _get_episodes_info
    existing_episodes = series.get_all_episodes(season=season, has_location=True)
  File "/app/medusa/medusa/tv/series.py", line 613, in get_all_episodes
    sql_args.append(','.join(map(text_type, season)))
TypeError: argument 2 to map() must support iteration
2018-02-09 13:22:42 WARNING  SHOWQUEUE-REFRESH :: [6de0cee] Enabling Plex fallback as TheTvdb.com API is having some connectivity issues
2018-02-09 13:22:42 WARNING  SHOWQUEUE-REFRESH :: [6de0cee] could not connect to TheTvdb.com, with reason 'argument 2 to map() must support iteration'
2018-02-09 13:22:29 INFO     SHOWQUEUE-REFRESH :: [6de0cee] 71256: Performing refresh on The Daily Show
@heymoe
Copy link
Author

heymoe commented Feb 10, 2018

Latest develop update (1f84394) seems to have fixed this issue.

@p0psicles
Copy link
Contributor

Yeah fixed it today. Forgot to close this one.

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

2 participants