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

Error: File already exists #21

Open
Saorsa32 opened this issue Jul 15, 2024 · 6 comments
Open

Error: File already exists #21

Saorsa32 opened this issue Jul 15, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@Saorsa32
Copy link

It says Error: File already exists, but I cannot find the file anywhere. The channel folder where it should be is empty. I have searching for the file using the search options, but I still cannot find the file.

@janegilring
Copy link

I get the same error.
It seems like it is related to the attachments directory.

My setup:

Folder to save notes: youtube
Create folders: true
After trying to insert a YouTube template, it works once.
Next time, it returns the "Folder Already Exist" error.

I then noticed it has created an attachments directory on the root of the vault.
If I rename this to e.g. attachments2, inserting a YouTube template works once again.

I suppose this is an issue with the detection logic for the attachments folder.

Also, would it be possible to place this folder in the directory specified under "Folder to save notes" rather than the root of the vault?

@sundevista
Copy link
Owner

In the plugin settings you can turn on debug console. Can you please turn this option on and show console output before and after your try to fetch video.

@sundevista sundevista self-assigned this Jul 18, 2024
@sundevista sundevista added the bug Something isn't working label Jul 18, 2024
@janegilring
Copy link

This is the console after a successfully fetch (deleted the attachments-folder on the root-level in advance):
image

This is the console after a failed fetch attempt (happens when not deleting the attachments-folder on the root-level in advance):
image

@sundevista
Copy link
Owner

@janegilring @Saorsa32 Try to update to the latest version (1.1.7), all should work smoothly now. Feel free to reopen the issue it the error persists

@janegilring
Copy link

I tested now after updating to the latest version, but hit the same error regarding the folder specified to save the generated notes in:
image

Settings:
image

Console output:
image

@sundevista sundevista reopened this Jul 21, 2024
@tyler-kemp-glovebox
Copy link

I can confirm that this works as long as you (1) delete the 'attachments' folder it creates when trying to add the thumbnail image, and (2) remove the thumbnail image embed from the template. Just stick to the thumbnail URL.
Do that, and it should all work perfectly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants