Video-hub-app: Can't play videos, or see information until reload after importing

Created on 12 Feb 2019  路  2Comments  路  Source: whyboris/Video-Hub-App

Seems to be a new bug - if you import a new library, the video details are undefined, and you can't play any video. Reloading the app and loading the vha file fixes this - looks like the finalArray is undefined for some reason... 馃槙

bug regression

Most helpful comment

Haha, found the issue! 馃憤 In sendFinalResultsHome, we add the temporary fields to the array (good), and then we write the file to disk, which then proceeds to strip all our temporary fields out again (bad)! 馃槀 And this is saved back to the final array, so the app then has no temporary fields!

When you just load an existing library, the write vha function isn't called, so the fields don't get stripped out! 馃憤

All 2 comments

Great catch - thank you!

I think I've noticed that the metadata is incorrect at first (showing 0 for file size, etc) ... might be misremembering.

My brother is visiting for 2 months so now I spend more family time than coding time ... I've not forgotten about this project 馃槄

Haha, found the issue! 馃憤 In sendFinalResultsHome, we add the temporary fields to the array (good), and then we write the file to disk, which then proceeds to strip all our temporary fields out again (bad)! 馃槀 And this is saved back to the final array, so the app then has no temporary fields!

When you just load an existing library, the write vha function isn't called, so the fields don't get stripped out! 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

whyboris picture whyboris  路  3Comments

whyboris picture whyboris  路  6Comments

cal2195 picture cal2195  路  5Comments

whyboris picture whyboris  路  5Comments

whyboris picture whyboris  路  5Comments