Opened 19 years ago
Closed 19 years ago
Last modified 19 years ago
#3118 closed defect (fixed)
imdb.pl patch to more consistently scrape movie runtime
Reported by: | Owned by: | Anduin Withers | |
---|---|---|---|
Priority: | minor | Milestone: | unknown |
Component: | mythvideo | Version: | 0.20 |
Severity: | medium | Keywords: | |
Cc: | Ticket locked: | no |
Description
If the first attempt at determining movie runtime fails, make a second attempt to grab the runtime.
This works when the imdb site displays runtime like this:
Runtime: Argentina:99 min / Norway:55 min / USA:98 min
Prior versions will result in a runtime of zero in this instance. The attached patch looks for "USA:" and attempts to use the subsequent number to determine runtime. "USA:" was used since it was most consistently present among lists of multiple countries.
Attachments (1)
Change History (6)
Note:
See TracTickets
for help on using tickets.
Here are two example movie titles:
"Why We Fight", imdb no.: 0436971, http://www.imdb.com/title/tt0436971/
"Little Man", imdb no.: 0430304, http://www.imdb.com/title/tt0430304/