MichaelYochpaz / iSubRip

A Python command-line tool for scraping and downloading subtitles from AppleTV and iTunes movie pages.
MIT License
119 stars 15 forks source link

[Issue]: Media data parsing issue #42

Closed vevv closed 1 year ago

vevv commented 1 year ago

Confirmations

OS Type

Linux

Python Version

3.8.9

Package Version

2.4.0

Description

isubrip fails to scrape some some URLs and fails with a cryptic python error.

Changing the code to raise the error reveals that it's some issue with name parsing.

  File "isubrip/__main__.py", line 52, in main
    print(f"Found movie: {media_data.name} ({media_data.release_date.year})")
AttributeError: 'list' object has no attribute 'name'

Config

No response

Output Log

isubrip https://tv.apple.com/ca/movie/umc.cmc.2jhzj3f3ic3shrf0gt5450j9z?l=en
Scraping https://tv.apple.com/ca/movie/umc.cmc.2jhzj3f3ic3shrf0gt5450j9z?l=en
Error: 'list' object has no attribute 'name'
MichaelYochpaz commented 1 year ago

Hey, thanks (again) for reporting. I've pushed a fix, and like I mentioned on the other issue, I'll probably release a bugfix version with it tomorrow. You can install the package from Git meanwhile until the release if you want to have it working.

MichaelYochpaz commented 1 year ago

Fixed in v2.4.1