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

Better handling of archive #580

Closed
tsk-2222 opened this issue Aug 3, 2023 · 3 comments
Closed

Better handling of archive #580

tsk-2222 opened this issue Aug 3, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@tsk-2222
Copy link

tsk-2222 commented Aug 3, 2023

It would be a nice feature to add better handling of the ytdl-archive.txt file.

Tartube/ytdl does a great job of populating the archive.txt file in each download directory however this 'breaks' if you later manually move a video from one directory to another. It would be great if the archive entry for that video could follow it's video into the new directory.

Additionally, perhaps the tidy function could (re)populate any archive.txt file depending on whether someone wants a single large file or individual archive files in each download directory (or both??)

PS. Thanks for this fine program. I use it a lot.

@tsk-2222 tsk-2222 added the enhancement New feature or request label Aug 3, 2023
@axcore
Copy link
Owner

axcore commented Nov 21, 2023

Sorry for the delay, somehow your question didn't get added to my to-do list.

What you ask for is not possible at the moment; lines in the archive file look like this:

[youtube] VIDEO_ID

Tartube's database stores the VIDEO_ID component, but not the [youtube] component.

In v2.4.429 I have added a new feature: when a YouTube video is moved to a new folder, the archive file in that folder is updated. It won't work for videos from other websites, only for YouTube videos.

It isn't exactly what you wanted, but it should be an improvement.

@axcore axcore closed this as completed Nov 21, 2023
@tsk-2222
Copy link
Author

It works great but there's a slight bug.

Moving multiple files will populate the archive file as a single line with no cr/lf.

"youtube dQw4w9WgXcQyoutube xm3YgoEiEDc"

axcore pushed a commit that referenced this issue Dec 11, 2023
@axcore
Copy link
Owner

axcore commented Dec 11, 2023

Whoops! I have uploaded a fix for that (to github only), and tested it. Sorry for the delay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants