v0.0.6
2021-10-17Added
- Embed thumbnail into media file postprocessor
- Rescan filesystem to clean up index
- Delete video button
- Delete channel button
Changed
- Rewrite of the artwork extraction and downloading classes, see below for more details
- Showing default artwork when none is available do avoid breaking the interface.
- Average video rating now shows as nostalgic stars.
- The watched/unwatched checkbox is now a toggle, so you can revert the change back.
Fixed
- New channel media folders will now get created with the correct permissions same as media files
- Fixing an issue where a previously failed download task wouldn’t clean up after it self
New architecture support
Additional installation instructions in the readme for:
- arm64: Untested, looking for feedback, shout out to @lamusmaser
- Unraid, shout out to @pairofcrocs
- Synology, shout out to @geekedtv
Update path
The new thumbnail caching method is not backwards compatible. After updating, your already downloaded thumbnails will get reorganized into subfolders. Then Tube Archivist will scan your library and download all missing thumbnails. This can take a long time depending on your library size. docker-compose logs -f tubearchivist will confirm that something is happening. Then from this version on, new artwork will get downloaded once you add a video to the download queue instead of on demand when the interface needs it. This has a few key advantages:
- Future proof the cache/video folder to not hold potentially 10s of thousands video thumbnails in one single folder.
- Speed up the interface because all of the artwork will already be cached upfront.
- Speed up the downloads view by using the cached thumbnails instead of loading them from youtube.
- Guarantee that there is artwork available even if the video disappears later.
- More in the spirit of the Archivist to make sure all relevant information is safely stored and organized.
- And speed up searching with artwork preview in an upcoming version…
Clean up
Due to not handling 404 errors in thumbnails extraction before, you might have ended up with some placeholder thumbnails from youtube looking like this or with a html error file for channel art work. That’s not really a problem but if you want to replace them with a beautiful Tube Archivist styled placeholder instead, shut down the container and continue:
Running this command from the cache/video folder on your host system will show all failed video thumbnails:
find . -type f -exec md5sum {} \; | grep 2f5b1b159ee4893e015e1c373111919b
If that doesn’t give any output, you are golden, else this command will delete all thumbnails matching that specific hash:
find . -type f -exec md5sum {} \; | grep 2f5b1b159ee4893e015e1c373111919b | awk '{$1 = "rm" ; print }' | bash
Similar for the channel art work, 404 errors resulted in downloading a html page with the content of just that. To find all html files run this from the cache/channel folder:
find . -print | file -if - | grep "text/html" | awk -F: '{print $1}'
Again, if you don’t get any output, you are good. If you do see any files matching, don’t get confused with the file ending, these aren’t actually JPGs, run this command to delete these files:
find . -print | file -if - | grep "text/html" | awk -F: '{print $1}' | xargs rm
Sorry for the complications…