aag / apple_trailer_downloader

A script to download HD trailers from the Apple Trailers website.
GNU General Public License v3.0
23 stars 5 forks source link

traceback error... #23

Closed ITguy3118 closed 1 year ago

ITguy3118 commented 2 years ago

It was recommended to me to use this as a workaround for getting apple trailers to work with CinemaVision. I've only put this script on my machine and used the default config. I observed it downloading 13 trailers and then this traceback happened. If i run the script again It will check the existing files, then produce the same traceback and does non continue

Traceback (most recent call last):
  File "C:\Users\Andrew Sutcliffe\Downloads\trailerdownloader\download_trailers.py", line 599, in <module>
    main()
  File "C:\Users\Andrew Sutcliffe\Downloads\trailerdownloader\download_trailers.py", line 595, in main
    download_trailers_from_page(url, settings)
  File "C:\Users\Andrew Sutcliffe\Downloads\trailerdownloader\download_trailers.py", line 278, in download_trailers_from_page
    settings['video_types'])
  File "C:\Users\Andrew Sutcliffe\Downloads\trailerdownloader\download_trailers.py", line 194, in file_already_downloaded
    trailer_prefix = '{}.trailer'.format(clean_title.lower())
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 6: ordinal not in range(128)

I deleted everything and started again and it fails in the same place each time, this trailer seems to be causing an issue

https://trailers.apple.com/trailers/independent/ronnies/

How to proceed?

aag commented 2 years ago

Thanks for reporting this bug. I've just published a new release with a fix for this issue. Please update your version of the script and try again.

aag commented 1 year ago

Since I haven't heard back, I'm assuming this issue is fixed, so I'm closing it.