2019-12-22, 22:11
(2019-12-22, 01:18)MariusTh86 Wrote: To that end, please test out the build below and come back to me with any problems you might find! There are some big under the hood changes that I need to know if they work correctly, or at all.
Thank you for the new version, @MariusTh86. I spent quite a while with it today.
I was able to scrape a TV show on a local drive, but couldn't succeed over the local network, which always has worked in the past. I can add the source fine over the network, but it gives the spinning rainbow when first trying to update the list.
After scraping on the same computer, the list updated fine. But when I went to the Episodes window, then hit 'Show' on the first season, I got the Feedback Form popup. I can cancel that, and then get a popup with "Due to an unexpected error, this application might have become unstable, do you want to continue using it?". I can continue to use the app.
I found that several more pieces of VIMM weren't cleaned out as I was doing it and are preventing recovery if they are left behind. Buried out in the /private/var wasteland, in addition to the playlist, was a directory ending in 'alpha'. When I saw it it was empty, but presumably it has some significance and should get deleted.
Also I found this ~/Library/Cookies/com.vidalvanbergen.vimediamanager-alpha.binarycookies and a few other things less likely to cause trouble. I'm pasting an updated vimm_clean.sh that deletes all this stuff.
In summary, I found two issues:
1. Episodes manager is choking when it tries to show episodes.
2. Networked sources, when attempting to update the list, cause fatal failure.
Side note: I tried to make a backup of the prefs before doing anything VIMM didn't handle well, then copying them after deleting everything. However, VIMM just freezes on opening then. I guess it needs prefs and something else to be matched.
Updated script to do complete cleanup (does not delete the application):
bash::<<COMMENT
Copy into text file named: vimm_clean.sh
Make executable: chmod 755 vimm_clean.sh
Place in /usr/local/bin/
Run with: sudo vimm_clean.sh
COMMENT
#!/bin/bash
############################################
# Remove preferences file
############################################
rm ~/Library/Preferences/com.vidalvanbergen.vimediamanager-alpha*
############################################
# Remove CrashReporter and Diagnostic Reports files
############################################
rm ~/Library/Application\ Support/CrashReporter/ViMediaManager*
rm /Library/Logs/DiagnosticReports/ViMediaManager*
rm ~/Library/Application\ Support/CrashReporter/ViMediaManager*
############################################
# Remove binarycookies file
############################################
rm ~/Library/Cookies/com.vidalvanbergen.vimediamanager-alpha.binarycookies
############################################
# Remove contents of ViMediaManager folder,
# but protect Studios folder if it exists.
############################################
cd ~/Library/Application\ Support/ViMediaManager
find . -maxdepth 1 ! -name Studios ! -name . -exec rm -rv {} \;
cd ~
############################################
# Remove savedState file
############################################
rm -R ~/Library/Saved\ Application\ State/com.vidalvanbergen.vimediamanager-alpha.savedState/
############################################
# Remove Cache folders
############################################
rm -R ~/Library/Caches/com.vidalvanbergen.vimediamanager-alpha/
rm -R ~/Library/Application\ Support/ViMediaManager/Cache/
############################################
# Find and remove the playlist file and
# com.vidalvanbergen.vimediamanager-alpha
# in private/var/folders
############################################
find /private -name *vimediamanager* -exec rm -rv {} \;
exit