Replies: 3 comments 10 replies
-
The main reason I use "Save Viewer" is to transfer the html to my phone or for easy sharing, as dht files can be too big to share. |
Beta Was this translation helpful? Give feedback.
-
Personally, I like to host archives on websites as HTML pages, and Save Viewer is convenient for that. If Discord CDN stops working, then I would upload all the attachments to a different CDN and change the URLs to hotlink them into the HTML page. So for me, downloading all attachments into an adjacent folder and hyperlink replacement with local addresses in the HTML viewer file is ideal. |
Beta Was this translation helpful? Give feedback.
-
I made a prototype that has significantly reduced memory usage of both the app and the browser, cut the loading speed in half, and made it possible to load even millions of messages which (at least Firefox) would previously not be able to load at all once the viewer file got past a certain size. In the current implementation, the app also does not need to continue running once the viewer finishes loading (unless you want to see attachments), but that might change in the future because the current implementation has to pre-load all the messages into the browser and keep them in memory; it just does that in a much more efficient way. The next DHT update will have the Save Viewer option removed. There might be ways to use the more efficient way of loading messages from a file instead of the app, so Save Viewer could potentially work by saving the data next to the HTML instead of embedding it inside, but at the moment I'm not going to spend time on it. |
Beta Was this translation helpful? Give feedback.
-
The way DHT viewer currently works, is that Open Viewer / Save Viewer generates a webpage containing the archived data, and then opens it in a browser. This allows the viewer to be used without the app, which can be convenient.
However, this has already somewhat broken down with the option of downloading attachments, which is only supported with Open Viewer, and it works by communicating with the app to fetch the downloaded attachments. If you close the app, the viewer will stop showing attachments altogether. This is not supported at all with Save Viewer - all attachments are fetched through Discord's CDN servers, so any deleted attachments will not work even if they had been downloaded to the archive.
Now that Discord is about to time-limit Discord CDN links, any attachments and embeds that use them will no longer work if you use Save Viewer. You will have to download them to the app (embed downloading is coming soon), and then use Open Viewer to be able to see them. I think that significantly limits the usefulness of Save Viewer.
The Future of "Open Viewer"
The need to generate webpages with the whole archive has a lot of disadvantages, which could be resolved - but only for Open Viewer. For large databases, it takes a long time to generate the webpage, requires hundreds of MBs of storage per viewer, and even more RAM when opened in a browser.
The radical idea I have is, that the webpage would be served by the DHT app itself, and so would every part of the archived data. The viewer would be lightweight, open instantly, and it would load the channel list, messages, attachments, etc. on-demand by communicating with the app as you browse the archive.
This means the app must be running while you use the viewer, but that should be the only disadvantage; everything else will be massively improved.
The Future of "Save Viewer"
The improvements to Open Viewer would require most of the viewer to be rewritten, and as I don't have the bandwidth to maintain two separate viewers, Save Viewer would be removed from the app.
With the Discord CDN changes, in order for me to support downloaded attachments etc. in Save Viewer, it would have to export potentially tens or hundreds of GBs of downloaded files next to the viewer, meaning it would either have to diverge from how Open Viewer works and I would end up maintaining two separate viewers anyway, or it would make Open Viewer even worse to use.
I'm not going to do either, so the only remaining options left are 1. removing Save Viewer and making Open Viewer better, or 2. living with the fact that Save Viewer is now worse because Discord CDN links no longer work, and that having to keep the feature around holds back Open Viewer from getting better.
So I would like to hear from you. Do you ever use Save Viewer in the first place, and if so, what use cases do you have that cannot be fulfilled by the improved Open Viewer?
Beta Was this translation helpful? Give feedback.
All reactions