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

Local file --banner and --profile not working #178

Closed
lsolesen opened this issue Oct 9, 2023 · 5 comments
Closed

Local file --banner and --profile not working #178

lsolesen opened this issue Oct 9, 2023 · 5 comments
Milestone

Comments

@lsolesen
Copy link

lsolesen commented Oct 9, 2023

I am trying the following command

youtube2zim --api-key API_KEY --type playlist --id "PLkJ6LtaZYPrWaT4g1qmhLakYFkMOiWQFW" --name "just-dance" --format mp4 --output ./data/ --banner ./just-dance-1.jpg --profile ./logo.jpeg --description "Just Dance - have great fun while moving your body." --title "Just Dance"

But it returns this error:

[youtube2zim::2023-10-09 09:28:55,706] INFO:starting youtube scraper for playlist#PLkJ6LtaZYPrWaT4g1qmhLakYFkMOiWQFW
[youtube2zim::2023-10-09 09:28:55,706] INFO:preparing build folder at /tmp/tmpdnmkacgq
INFO:fixing videosjs-ogvjs.js
INFO:all done.
[youtube2zim::2023-10-09 09:28:55,761] INFO:testing Youtube credentials
[youtube2zim::2023-10-09 09:28:56,177] INFO:checking your branding files and values
[youtube2zim::2023-10-09 09:28:56,177] ERROR:FAILED. An error occurred: 'str' object has no attribute 'exists' 

When removing this it works:

--banner ./just-dance-1.jpg --profile ./logo.jpeg

However, I would like to add the banner and another profile image. How can I do this. I also tried with the full path to the image.

@rgaudin rgaudin closed this as completed in 4a61b67 Oct 9, 2023
@rgaudin
Copy link
Member

rgaudin commented Oct 9, 2023

Thank you @lsolesen for your report. It's now fixed in main branch.

@rgaudin rgaudin changed the title ERROR:FAILED. An error occurred: 'str' object has no attribute 'exists' when adding --banner and --profile Local file --banner and --profile not working Oct 9, 2023
@lsolesen
Copy link
Author

lsolesen commented Oct 9, 2023

I can confirm that it works. However, the script deletes both the banner and the profile picture from the folder after running the script. Is that intended?

@benoit74
Copy link
Collaborator

benoit74 commented Oct 9, 2023

It is "intented" in the sense that this is what the code say ^^ But I agree it is probably not a good idea.
@rgaudin any reason to not copy them instead?

@rgaudin
Copy link
Member

rgaudin commented Oct 9, 2023

It's been there for a while but I see no reason not to copy instead.

@benoit74
Copy link
Collaborator

I opened an issue to change this behavior

@benoit74 benoit74 added this to the 2.2.0 milestone Nov 17, 2023
benoit74 added a commit that referenced this issue Mar 15, 2024
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

No branches or pull requests

3 participants