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

[FEATURE REQUEST] Export / Import #1030

Open
madhatt30 opened this issue Jan 3, 2021 · 3 comments
Open

[FEATURE REQUEST] Export / Import #1030

madhatt30 opened this issue Jan 3, 2021 · 3 comments

Comments

@madhatt30
Copy link

I work in the IT field and I have a Windows 2019 server running at my house. I am running StreamA 1.9.2 I have thousands of movies on a NAS which has 6 hard drives in it (this is streamed on the internal Gigabit network to all in the house. we have a large family) at some point in the future if I upgrade to a new NAS (due to space restrictions, or upgrade the drives to larger ones) I can foresee the need to have an export/import function.

For example, the Export function might look like the following
TheMovieDBID - ######## (perhaps this is all we really need) (would be required field to use functions)
The filename - mymovie.mp4 | mymovie.mov (no directory path needed assumed base selected directory (this works because the NAS is shared (of course only I have access to it) of course other options could be explored for those with different setups.

Import function (would be quite easy)
TheMovieDBID - #########
Rebuild entry based on the information from TheMovieDBID and populate the file with the filename that was exported

Just a thought feel free to expand on it if need be.
Last option: movie count - somewhere on the page have a movie count so we can see how many movies we have.

Thanks

@dularion
Copy link
Member

dularion commented Feb 7, 2021

Movie count: will add it right now, no big deal at all.
Regarding the other idea:
What exactly do you mean? I for example run streama with 3 mounted Storages in a linux machine, and for being able to read from all three the setting "Second Directory" is intended, there you supply multiple paths separated with pipe | and then each one will be searched through one after the other until your file is found.
Since the files are saved using their hash, the system will always be able to find them again because the same hash is saved in the reference table. However, if you use the localFile directory system instead of uploads then it gets more complicated. For that I dont really have a good way to migrade / add more directories, except that also there i use mounts & linux-file-system linking to use all three external storages at the same time.

image

@dularion
Copy link
Member

dularion commented Feb 7, 2021

image

@madhatt30
Copy link
Author

Excellent on the Movie Count!
So what I was talking about with the other part is basically an option that dumps all of the movie names and IMDB numbers to a file
For example, The file might look like the following
( '-' used just to help illustrate)
IMDB ------ Movie Name - Type
tt9820556 -- Breach -------- Movie
tt6723592 -- Tenet --------- Movie
tt13037836 - Tenet --------- Tv

The reason you might want or need this option
I have an older NAS device attached to my server which is windows server 2019 if one or all of the drives in the NAS fail I've lost everything and if the server goes down and I have to set it all up again from scratch then I've lost all of my thousands of movies that I'll have to add again and countless hours to enter them manually.

Secondly, If someone has exported the information from another program, it's a quick and easy way to add 1000's of movies in a short amount of time or (rebuild).

Just spitballing here but maybe it could be redundancy in case of corruption or it just needs to be rebuilt.

But with the option that I've suggested
The user (myself) can move the movie files from the remote backups that I have into the live StreamA server.
Then with Streama configured normally the user (myself) can import the movie entries via the file saved as shown earlier by importing the "core information" that was saved in it.

Think about it, if you had 100,000 to 200,000 movies and for whatever reason, your StreamA server information was corrupted or erased would you entertain the thought of entering them all manually? I know in an ideal world we could just auto-add them (assuming that all the filenames are in the correct format) but this isn't an ideal world and truth be told most people don't have the filename structured to do this. This leaves us with option B (the import).

Thanks for your consideration

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

No branches or pull requests

2 participants