Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing TrailerLastScan from XML #2577

Closed
Omertron opened this issue Mar 16, 2015 · 3 comments
Closed

Error parsing TrailerLastScan from XML #2577

Omertron opened this issue Mar 16, 2015 · 3 comments

Comments

@Omertron
Copy link
Member

Original issue 2578 created by Omertron on 2013-01-09T13:50:28.000Z:

When reading TrailerLastScan from existing XML, the string is parsed and converted to seconds, but when checking if trailer rescan is needed, TrailerScanner.isTrailersNeedRescan() is comparing this value with current time and trailersRescanDaysMillis both in milliseconds.

So, if trailers.rescan.days option is enabled, in my experience movies missing trailers are rescanned on each YAMJ run.

This bug was probably introduced in r3236 when Movie class was modified to use new DateTime class.

A simple patch is ready to be committed.

@Omertron Omertron self-assigned this Mar 16, 2015
@Omertron
Copy link
Member Author

Comment #1 originally posted by Omertron on 2013-01-09T17:22:59.000Z:

Bug should be fixed by changing

setTrailerLastScan(DateTime.parse(lastScan).getSeconds());
to
setTrailerLastScan(DateTime.parse(lastScan).toMillis());

in method Movie.setTrailerLastScan(String lastScan)

However, given that this has been introduced more than a month ago and I haven't found any open issue about trailer rescan, can somebody else confirm that this is correct?

@Omertron
Copy link
Member Author

Comment #2 originally posted by Omertron on 2013-01-09T19:52:48.000Z:

I don't use the trailer (re)scanning, but that looks right

@Omertron
Copy link
Member Author

Comment #3 originally posted by Omertron on 2013-01-10T09:06:50.000Z:

This issue was closed by revision r3480.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant