Opened 17 years ago
Closed 17 years ago
#2906 closed defect (invalid)
Video poster filename is not always unique
Reported by: | anonymous | Owned by: | Anduin Withers |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythvideo | Version: | 0.20 |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
Posters are downloaded into a single directory, and the assumption is that each poster has a unique filename. This assumption does not hold. I have seen several times where two different movies have the same poster filename. This is because the file is under different paths on the server.
For example: http://ia.ec.imdb.com/media/imdb/01/I/88/41/61/10m.jpg http://ia.ec.imdb.com/media/imdb/01/I/14/36/61/10m.jpg http://ia.ec.imdb.com/media/imdb/01/I/08/78/91/10m.jpg
Symptom: You get the same (latest downloaded) poster for several movies.
I would solve this by turning the filename into the file's MD5/SHA1 sum.
Yes, it downloads them all to the same directory, it then renames them to inetrefnumber.pictureextension. If there is a real bug here you must include more detail.