Skip to content

Commit

Permalink
Make priority lower than CrossRef. Add 's' to runningTime for 'seconds'
Browse files Browse the repository at this point in the history
  • Loading branch information
aurimasv committed Apr 19, 2012
1 parent 9e1c9e8 commit cfedb4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions EIDR.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"target": "",
"minVersion": "1.0",
"maxVersion": "",
"priority": 100,
"priority": 80,
"inRepository": true,
"translatorType": 8,
"browserSupport": "gcsi",
Expand Down Expand Up @@ -111,9 +111,9 @@ function doSearch(searchItem) {
//running time
var time = getValue(base,'ApproximateLength')
.match(/PT(?:(\d+)H)?(?:(\d+)M)?(?:(\d+)S)?/i);
item.runningTime = (time[1] || 0) * 3600 +
item.runningTime = ((time[1] || 0) * 3600 +
(time[2] || 0) * 60 +
(time[3] || 0);
(time[3] || 0)) + 's';

//creators
var creators = base.getElementsByTagName('Credits')[0];
Expand Down

0 comments on commit cfedb4c

Please sign in to comment.