[BUG] Can't download on specific channel #37
Labels
No labels
beta
bug
dependencies
duplicate
enhancement
invalid
postponed
question
release: bugfix
release: major
release: minor
repository improvment
required
unclear
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Serraniel/DiscordMediaLoader#37
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It can download on all channels I added except this one last channel. The channel probably has about 300 pics but the program keep looping and scanning until 100000++ and downloaded 0 file. Help?
Are there any special characters in the server- or channelname? Have you checked you have access to the content inside the channel?
Discord also lately did an update to hide URLs of message which only are an URL to an image for example. I actually don´t remember if "external" files also are downloaded. If not, this might be the reason for the observed behaviour.
I will do some testings with this the next days.
well the channel name is july-december-2020 and it was part of multiple channels, the other channels on the server are fine. They only post pictures links like https://abload.de/img/xxxxxxxxxxx.jpg.
I haven´t checked the code yet (may do this on the weekend) but I think the external media is the reason then, as I wrote in #14, that the tool only downloads real attachments and not embeds. This had been planned for the new major version which had been postponed.
If this is the case and it´s a quick change I may add this in a smaller minor update.
Well, there are multiple channels on the same server exactly like the one I reported but the program worked fine and downloaded all the embedded images even the host is the same.
I now looked into the issue and can confirm the behaviour you observed. The reason for this is that Discord does not deliver those images as attachment but as embed. The tool currently ignores them as embeds are not only wanted to be downloaded.
However, there is issue #14, which will change this. As I have to release an update soon(tm) because of the new API URLs I may add a quick option for this, too, during the next week.
However, this probably only will refer to new messages and not past messages of a channel, which already had been scanned. A quickfix would be to delete the channel from the joblist and add it again then.
Issue closed as duplicate of #14 .
Yeah, but the tool download embed files just fine, only on this one specific channel has a weird behaviour, so i think its a bug not an incomplete feature.
There is a technical difference between an uploaded image to discord and a link to an image being posted. If you upload an image it is attached as an attachment to the message. If discord generates a preview image or showing the original image content as a preview, this becomes an embedded image. Just from looking at them, you cannot tell the difference, because discord started hiding the URL in those messages lately.
I tried this with imgur, abload and even images directly from discord cnd; as soon as they are posted as not an actual and real message attachment, they are not detected.
Looking at the code this makes sense as the tool, in current version simply just does not support them:
There is no code which checks if a message has an embed to add into the queue.
The documentation of the used discord API also mentions the difference between an attachment
and the rich embed and represents the way Discord handles them.
Ah okay then, waiting for the fix!