Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a bug within LocalAttachmentHandler and regex search returning None causing AttributeError & add html meta tags to transcript #111

Merged
merged 5 commits into from
Jun 5, 2024

Conversation

doluk
Copy link
Contributor

@doluk doluk commented May 23, 2024

In very raw cases the local attachment handler didn't produce unique (enough) filenames for attachements causing later attachments to overwrite previously stored. By replacing the epoch timestamp with an UUID v4, this is prevented and deals even with multiple transcripts at the same time being generated.

This PR also fixes #109 where re.search finds no match and is returning None. This lead to AttributeErrors.

Lastly this PR adds html meta tags to the base.html to enable link preview in various cases.

doluk added 3 commits May 23, 2024 12:36
Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>
Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>
Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>
@doluk doluk changed the title Fix a bug within LocalAttachmentHandler & add html meta tags to transcript Fix a bug within LocalAttachmentHandler and regex search returning None causing AttributeError & add html meta tags to transcript May 23, 2024
doluk added 2 commits May 23, 2024 13:20
Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>
Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>
@mahtoid mahtoid merged commit ca50c42 into mahtoid:2.8.0 Jun 5, 2024
mahtoid added a commit that referenced this pull request Jul 1, 2024
* Fix type hinting compatibility with Python < 3.9 (#105)

* Merging master in to 2.8.0 (#110)

* Versioning

* Fix discord import for wrapper namespaces != discord (#104)

* Versioning

---------

Co-authored-by: mahtoid <git@mahto.id>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Fix CSS/JS Issues + QOL Improvements (#108)

* Versioning

* Fix discord import for wrapper namespaces != discord (#104)

* Versioning

* Fix quick_export() Missing Argument

* Remove Use of 'proxy_url' due to Discord's CDN Changes

* Fix Embed Colour & Reduce Unnecessary Gaps

* Fix Emoji Mis-Alignment

* Fix Button Label Padding

* Equalise Footer Width

* Fix User Pop-Out

* Add Hover on User Avatars

* Fix Scrolling to Messages

* Open Buttons & Images in New Tabs + Fix Audio Container

* Change BOT Tag to New APP Tag

* Update README

* Add .vscode to Git-Ignore

* Update README.md for my Fork

* Update README.md

* Revert README Installation Changes

* Revert Asset URL Change back to Proxy URL

* Fixed Message Aside Timestamp

* Update chat_exporter/construct/assets/component.py

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/construct/assets/component.py

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/construct/assets/component.py

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/construct/assets/component.py

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/construct/assets/component.py

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/html/component/component_button.html

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/html/base.html

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/construct/assets/component.py

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update chat_exporter/construct/message.py

Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Refactoring

* Fixed Military Times

---------

Co-authored-by: mahtoid <git@mahto.id>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>

* Update discord link

* Fix a bug within LocalAttachmentHandler and regex search returning None causing AttributeError & add html meta tags to transcript (#111)

* Ensure unique filenames

Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>

* Add html meta tags

Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>

* Fix Local File handler

Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>

* Fix regex search returning no match causing AttributeError

Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>

* Exchange uuid4 with EPOCH timestamp with ms

Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>

---------

Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>

* Interaction Message (metadata)

* Backport Interaction

* interaction name

---------

Signed-off-by: doluk <69309597+doluk@users.noreply.github.com>
Co-authored-by: Argon <laiyeqi@gmail.com>
Co-authored-by: mahtoid <git@mahto.id>
Co-authored-by: Lukas Dobler <69309597+doluk@users.noreply.github.com>
Co-authored-by: syntax <me@syntax.fo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants