Skip to content

Commit cc070ce

Browse files
committed
Discord Online Returns fixes
Pulls discord cdn and media content from the chat column.
1 parent 4f25db2 commit cc070ce

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

scripts/artifacts/discordReturnsdmsOnline.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_discordReturnsdmsOnline(files_found, report_folder, seeker, wrap_text, t
1414
counter = 0
1515
for file_found in files_found:
1616
file_found = str(file_found)
17-
logfunc(file_found)
17+
1818
filename = os.path.basename(file_found)
1919
csvname = filename
2020

@@ -50,7 +50,7 @@ def get_discordReturnsdmsOnline(files_found, report_folder, seeker, wrap_text, t
5050
thumb = media_to_html(f'media{counter}', datalist_temp, report_folder)
5151
counter = counter + 1
5252

53-
if contents.startswith('https'):
53+
if ('cdn.discordapp.com' or 'media.discordapp.net') in contents and (contents.startswith('http')):
5454
url = urllib.parse.unquote(contents)
5555
dlpath = Path(report_folder, f'media{counter}')
5656
response = requests.get(url, stream=True)

scripts/report.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@
250250
},
251251
'DISCORD CHATS': 'message-square',
252252
'DISCORD RETURNS': 'message-square',
253+
'DISCORD RETURNS ONLINE': 'message-square',
253254
'DOWNLOADS': 'download',
254255
'DRAFT NATIVE MESSAGES': 'message-circle',
255256
'DUCKDUCKGO': {

0 commit comments

Comments
 (0)