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

[IDEA] Temporary directory/name #15

Open
adocampo opened this issue Nov 21, 2019 · 4 comments
Open

[IDEA] Temporary directory/name #15

adocampo opened this issue Nov 21, 2019 · 4 comments

Comments

@adocampo
Copy link

adocampo commented Nov 21, 2019

I'm using this bot to download TVShows episodes and then with PyMedusa, naming them and placing on the right place to Plex Media Server to scan the polished filename.

The problem is medusa isn't aware if the download has finished or not, and it "moves" the file when it's still downloading. Medusa can handle torrent and nbz files and it's aware when the file has finished download because it can speak with the torrent or nbz engine.

Amule has temporary filenames, finished with the .partextension and when finish the download, it renames the file so medusa grabs the proper downloaded file.

I was wondering if archivebot could do something like amule does, like put an extra extension like .part or .unfinished or whatever, so those episode managers couldn't handle the file until archivebot has finished download and renamed the file accordingly.

It can be useful as well for those who don't use those programs as with a single look, someone can know if the file was download properly or if it needs to be downloaded again.

If naming is not possible, perhaps having a temporary folder path is easier to implement, so we can have the incomplete and complete paths and those can be each on a different mountpoint.

@adocampo adocampo changed the title [IDEA Temporary directory/name [IDEA] Temporary directory/name Nov 21, 2019
@Nukesor
Copy link
Owner

Nukesor commented Nov 21, 2019

Saving it to a temporary file and renaming it, should be pretty straight forward.
I think the .part extension should do fine.

Since I really don't need this feature, I'll probably not build it myself, but feel free to hack around a little and create a PR.

@Nukesor
Copy link
Owner

Nukesor commented Nov 22, 2019

I just added a few comments and rewrote a lot of the existing comments.
This project started as a pretty small side-project without having any community in mind :D.
Things should be a little more clear now.

@adocampo
Copy link
Author

Sorry for the delay. I'm moving to a new flat and I barely have time or strength to put myself in front of a computer these days. But I wanted to take a look into the code to see if I am able to modify it and add the .partextension

@Nukesor
Copy link
Owner

Nukesor commented Nov 26, 2019

No problem mate, take your time :)
It's not as if this is some kind of critical system that needs to be implemented as soon as possible ;D
It's open-source after all, everything is voluntarily

Good luck with your move!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants