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

Prevent invalid date tag in video file from aborting scan #836

Merged
merged 5 commits into from
Oct 11, 2020

Conversation

WithoutPants
Copy link
Collaborator

Fixes #731

Some files have a malformed date tag in their metadata. This would cause the ffprobe unmarshal to fail. I have changed JSONTime to log a warning instead of returning an error when unmarshalling a malformed date. In addition, I've improved the logging to provide the filename for ffprobe errors, and tidied some of the scan logging to be cleaner and less verbose.

@WithoutPants WithoutPants added the bug Something isn't working label Oct 9, 2020
@WithoutPants WithoutPants added this to the Version 0.4.0 milestone Oct 9, 2020
@bnkai
Copy link
Collaborator

bnkai commented Oct 9, 2020

Code looks ok and it seems to run ok ( I don't have a sample file to trigger the malformed date issue )

@WithoutPants WithoutPants merged commit 98dda78 into stashapp:develop Oct 11, 2020
Tweeticoats pushed a commit to Tweeticoats/stash that referenced this pull request Feb 1, 2021
* Give more context when ffprobe fails
* Suppress JSONTime unmarshal error
* Tidy scan logging
@WithoutPants WithoutPants deleted the issues/731 branch February 4, 2021 03:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug Report] Some scanned files give ParseDateStringAsTime Error but no other information
2 participants