The Wayback Machine - https://web.archive.org/web/20250522203118/https://github.com/stashapp/stash/issues/966
Skip to content

[Feature] Manually add content (no binary) + link to web hosted videos eg google photos / drive #966

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

Open
timcantona opened this issue Nov 27, 2020 · 1 comment
Labels
feature Pull requests that add a new feature

Comments

@timcantona
Copy link

timcantona commented Nov 27, 2020

My "stash" tends to be located in two places currently; Google photos and locally on my media server. I went for google photos a while back because of the unlimited space (which I know, is going.... :( ) and the remote access. When Stash came along I started to mirror my favourite content locally, but due to space constraints I don't really want everything local.

Something I thought would be great is if I could host all the metadata in my stash so I can use stash as my interface to my entire collection, regardless of where it is stored. Now I know some of stashes features could not work for remote content, but just the ability to scrape a remote film have things like actors, tags, etc in stash so I can quickly filter and find content, and then click a link to view it on the cloud platform would be great!

Ideal world it would be great to connect to google photos via the API, pull details list of files and then create linked media items based on the name with the url to the media item. Looking at the API, I am not sure you can do much else, but thats ok. Then we could scrape the linked item based on the file name and include it in the library.

If the API isn't feasible, perhaps another way would be to allow users to manually create media items with no actual file, and add a URL to the file to play as needed. Ideally this could be a batch import from a text file of the names and then users could go use a script to dump the filenames out and import that. I have a script that I use for this already here

If it supported it, it would also be great to play the remote file embedded directly in stash to keep things seemless, but not sure how hard that would be to implement with permissions, etc.

Support .strm files

@timcantona timcantona changed the title [Feature] Support web hosted videos eg google photos / drive [Feature] Manually add content (no binary) + link to web hosted videos eg google photos / drive Dec 4, 2020
@timcantona
Copy link
Author

I've been playing with this some more, and if anyone is interested I have updated the gist I linked in the post above.

My script now loops through all the videos in your google photos library and creates an empty file with the filename of each video, and also pushes the filename and url (that you can watch the video via with correct creds) to a text file. My next thought was to put all the dummy files into a sub directory in my stash directory and scan them so they got added, but ffprobe errors out.... Manually inserting them into the sqlite db seemed to work (they are listed under my scenes!) but clicking the scene gives out another ffprobe error.

I wonder if a simple first step might be to allow adding (via a setting) invalid (according to ffproke) / empty files and when the scene is selected, the option to play is just not given.

Does anyone else have a solution for this already or some ideas how to solve?

I don't know go at all, but there are a few google photo projects already out there written in go that could maybe get utilised? eg https://godoc.org/github.com/Q-Brains/gphotos

@WithoutPants WithoutPants added the feature Pull requests that add a new feature label Feb 2, 2021
@DogmaDragon DogmaDragon marked this as a duplicate of #5432 Mar 2, 2025
@feederbox826 feederbox826 marked this as a duplicate of #1789 Mar 29, 2025
@feederbox826 feederbox826 marked this as a duplicate of #3930 Mar 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull requests that add a new feature
2 participants