Opened 14 years ago

Closed 14 years ago

#3123 closed patch (fixed)

Update to imdbpy.py script

Reported by: hads Owned by: Anduin Withers
Priority: trivial Milestone: unknown
Component: mythvideo Version: head
Severity: low Keywords: imdb
Cc: mythtv@… Ticket locked: no

Description

Hi,

Here's a patch that I'm using for the imdbpy.py script.

I prefer my episode titles differently to how the script currently outputs them so I've added a format string which you can set to what you like. It's left pretty much how it was before with an example of how I have mine.

Secondly I added a bit to the regex to cater for filenames with dashes and spaces ("The Sopranos - 02x01"). While I was doing this I added names to the regex to make it longer but easier to follow (MHO).

Also fixed a problem where the title returned was based on the title given, sometimes this would cause you to choose an episode from one series when it was in fact a completely different series.

There's also a minor fix for an exception when there is no plot outline.

Finally I added an ascii encode on the output as this was causing an exception for me occasionally. I'm not sure about this one.

Cheers,

hads

Attachments (1)

imdbpy.diff (3.6 KB) - added by hads 14 years ago.

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by hads

Attachment: imdbpy.diff added

comment:1 Changed 14 years ago by pekka.jaaskelainen g m a i l

Otherwise looks good, except that the output should actually be UTF8 for MythVideo? IMDb ripper scripts.

comment:2 Changed 14 years ago by anonymous

Yeah, I wasn't sure about that bit. I ran into a couple of errors and that seemed to fix it for me. I'm no good at encodings, just ignore that bit :)

comment:3 Changed 14 years ago by Anduin Withers

Resolution: fixed
Status: newclosed

(In [12934]) References #2734 Closes #3123

Thanks to hads for the patch in #3123

Updates from Pekka J?\195?\131?\194?\164?\195?\131?\194?\164skel?\195?\131?\194?\164inen

"Major addition is a new poster grabber script (fetch_poster.py) which grabs posters from movieposter.com. These poster images seem to be much better quality (larger images) than those from IMDb. However, the script has a fallback to the IMDb fetching if MoviePoster?? does not have the poster.

The script uses Python Imaging Library to figure out the image sizes of the poster image candidates and chooses the one which is largest (and vertical)."

Note: See TracTickets for help on using tickets.