wagnerrp / pytmdb3

Python interface to TheMovieDB.org v3 API
BSD 3-Clause "New" or "Revised" License
122 stars 36 forks source link

Fix Unicode crashes when accessing trailer information #48

Closed GreenKudu closed 9 years ago

GreenKudu commented 10 years ago

Added quick & dirty code to ignore strange unicode characters being returned in trailer URLs by the API.

For example, movie 180951 returns a 'LEFT-TO-RIGHT MARK' (U+200E) after the last character of the source.

This has been reported to TMDB at http://www.themoviedb.org/talk/543145fb0e0a2656e2001bc4 and they are working on fixing it.