Hi Ben,
pardon the long delay.

I think this bug was already fixed in the repository, please try using
the latest version.

To install from Github: pip install git+https://github.com/cinemagoer/cinemagoer


Hope this helps,

On Tue, Oct 4, 2022 at 6:52 PM Ben Co <lebe...@gmail.com> wrote:
>
> Hello,
>
>
>
> 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 GitHub).
>
> 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', 
> machine='AMD64'
>
>
>
>
>
> #### Steps to reproduce the issue
>
>
>
> *if possible, provide a minimal code to reproduce the problem*
>
>
>
> ```python
>
> #!/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] 
> C:\tools\Anaconda3\lib\site-packages\imdb\_exceptions.py:32: 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, 
> results=results)['data']
>
>   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))
>
>   File 
> "C:\tools\Anaconda3\lib\site-packages\imdb\parser\http\searchMovieParser.py", 
> line 64, in <lambda>
>
>     analyze_title(x.get('info', '')),
>
>   File "C:\tools\Anaconda3\lib\site-packages\imdb\utils.py", line 327, in 
> analyze_title
>
>     series_d = analyze_title(series_title, canonical=canonicalSeries)
>
>   File "C:\tools\Anaconda3\lib\site-packages\imdb\utils.py", line 432, in 
> analyze_title
>
>     raise IMDbParserError('invalid title: "%s"' % original_t)
>
> imdb._exceptions.IMDbParserError: invalid title: """"
>
>
>
> #### Additional details
>
> _______________________________________________
> Imdbpy-help mailing list
> Imdbpy-help@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/imdbpy-help



-- 
Davide Alberani <davide.alber...@gmail.com>  [PGP KeyID: 0x3845A3D4AC9B61AD]
http://www.mimante.net/


_______________________________________________
Imdbpy-help mailing list
Imdbpy-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-help

Reply via email to