Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Fix - remove doubled dot in workfile created from template #2998

Merged
merged 1 commit into from
Apr 1, 2022

Conversation

kalisp
Copy link
Member

@kalisp kalisp commented Apr 1, 2022

Brief description

Newly created workfile contained 2 dots before extension

@kalisp kalisp added the type: bug Something isn't working label Apr 1, 2022
@kalisp kalisp requested a review from 64qam April 1, 2022 11:19
@kalisp kalisp self-assigned this Apr 1, 2022
@kalisp kalisp merged commit b5ef76d into develop Apr 1, 2022
@@ -1965,6 +1965,7 @@ def get_last_workfile(
data.pop("comment", None)
if not data.get("ext"):
data["ext"] = extensions[0]
data["ext"] = data["ext"].replace('.', '')
Copy link
Collaborator

@BigRoy BigRoy Apr 1, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds like a "hack" to fix another issue. The fill data shouldn't have a . to begin with.
This logic now breaks usages of ext where the actual extension also contains a dot, like .ass.gz.

If we'd want to ensure ext never starts with a dot, fine with me. We could raise an error so that whenever it happens we can fix the root of the problem where fill data got the wrong information. Right?


Ah, nevermind. This is only for the workfile so doesn't cover the .ass.gz case it seems. Still this sounds like a workaround to another problem?

@mkolar mkolar added this to the next milestone Apr 4, 2022
@kalisp kalisp deleted the bugfix/extra_dot_in_new_workfile branch May 9, 2022 11:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants