I’m a user of Cinemagoer, and I encountered a bug using it, but I don’t
know why, I can’t create a new issue on GitHub (submit button remains
disabled). So here below is the issue (in the format that is asked for on

And thanks for this library !

#### Issue description

Search movie by title fails when searching for "Serenity"

#### Version of Cinemagoer, Python and OS

**NOTICE: please always try the latest version from the repository before
submitting a bug.**

- **Python:** 3.9.13

- **Cinemagoer:** 2022.02.11

- **OS:** system='Windows', release='10', version='10.0.22621',

#### Steps to reproduce the issue

*if possible, provide a minimal code to reproduce the problem*


#!/usr/bin/env python

# your code here

import imdb

ia = imdb.Cinemagoer()

movies = ia.search_movie('Serenity')


#### What's the expected result?

- No exception raised

#### What's the actual result?

2022-10-04 16:40:19,435 CRITICAL [imdbpy]
IMDbParserError exception raised; args: ('invalid title: """"',); kwds: {}

NoneType: None

Traceback (most recent call last):

  File "D:\Utilisateurs\benco\Desktop\Drive In\test.py", line 3, in <module>

    movies = ia.search_movie('Serenity')

  File "C:\tools\Anaconda3\lib\site-packages\imdb\__init__.py", line 444,
in search_movie

    res = self._search_movie(title, results)

  File "C:\tools\Anaconda3\lib\site-packages\imdb\parser\http\__init__.py",
line 409, in _search_movie

    return self.smProxy.search_movie_parser.parse(cont,

  File "C:\tools\Anaconda3\lib\site-packages\imdb\parser\http\utils.py",
line 434, in parse

    data = self.parse_dom(dom)

  File "C:\tools\Anaconda3\lib\site-packages\imdb\parser\http\utils.py",
line 526, in parse_dom

    return Rules(self.rules).extract(dom)

  File "C:\tools\Anaconda3\lib\site-packages\imdb\parser\http\piculet.py",
line 373, in extract

    value = self.apply(element)

  File "C:\tools\Anaconda3\lib\site-packages\imdb\parser\http\piculet.py",
line 517, in apply

    extracted = rule.extract(subroot)

  File "C:\tools\Anaconda3\lib\site-packages\imdb\parser\http\piculet.py",
line 589, in extract

    list(map(self.extractor.transform, values))

line 64, in <lambda>

    analyze_title(x.get('info', '')),

  File "C:\tools\Anaconda3\lib\site-packages\imdb\utils.py", line 327, in

    series_d = analyze_title(series_title, canonical=canonicalSeries)

  File "C:\tools\Anaconda3\lib\site-packages\imdb\utils.py", line 432, in

    raise IMDbParserError('invalid title: "%s"' % original_t)

imdb._exceptions.IMDbParserError: invalid title: """"

#### Additional details
Imdbpy-help mailing list

Reply via email to