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
Filmstrip bugfixes #48
Conversation
I've not looked into dark mode in a while. Thank you for catching that -- I'll fix 👍 |
I fixed up the thumbnail view to use percent offset rather than pixel offset - resulting in a cleaner preview (should no longer result in showing parts of a subsequent/previous frame) 🎉 |
* @param fileName -- file name to hash | ||
* @param fileSize -- file size to hash | ||
*/ | ||
export function hashFile(fileName: string, fileSize: string): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method was simply moved (with no modification) from above - to be closer to the line which calls it 👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just FYI - I'm thinking about slightly tweaking the hash function! 👍
* @param fileName -- file name to hash | ||
* @param fileSize -- file size to hash | ||
*/ | ||
export function hashFile(fileName: string, fileSize: number): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simply moved to another location within the same file 👌
I did not see a white stripe in my dark mode ... I'll check from time to time to see if it ever appears for me 🙆♂️ |
Found how to reproduce the line - zoom out the app once in dark mode! |
✅ Confirmed - can replicate the white line bug: zooming out using the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look great! 👍 Can't wait for more thumbnail generation settings! 🎉
@@ -590,17 +578,28 @@ function extractMetadataForThisONEFile( | |||
const origWidth = metadata.streams[0].width; | |||
const origHeight = metadata.streams[0].height; | |||
const sizeLabel = labelVideo(origWidth, origHeight); | |||
const fileSize = metadata.format.size; | |||
const fileSize: string = metadata.format.size; // looks like a number, but actually a string! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intentional? ie. is there a reason we have it as a string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It turns out that ffprobe
outputs format.size
as a string (I checked with console.log(typeOf(metadata.format.size))
-- so I added the type definition to track what happens to it 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha! - Should we parse the integer here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense -- will do 👍
* @param fileName -- file name to hash | ||
* @param fileSize -- file size to hash | ||
*/ | ||
export function hashFile(fileName: string, fileSize: string): string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just FYI - I'm thinking about slightly tweaking the hash function! 👍
Sounds good -- feel free to edit the hash as you see fit - no worries about breaking changes as we work before v2.0.0 is released 👍 |
This PR is for minor cleanup and two small features:
There are some lingering issues since the last PR (#44) - but I'm tracking them with this issue: #50
Please feel free to leave comments about other bugs in the current
master
in #50 👍This PR introduces breaking changes -- old
.vha
files will error out