5rahim / seanime

Open-source media server for anime and manga.
https://seanime.rahim.app
MIT License
402 stars 31 forks source link

feature request: Add option to copy file stream URL #130

Closed sin3point14 closed 4 weeks ago

sin3point14 commented 2 months ago

Checklist

Problem Description / Use Case

I run seanime on a NAS and want to use it to watch anime on my laptop(and phone, but phone isn't the problem here). This is my current setting image I couldn't find anything equivalent to android intent URI for desktop to open it directly in VLC so this is what I did: image If I click on the play button image it immediately starts downloading image which makes sense since the browser will start downloading a format it can't play, however I was hoping to somehow open this on vlc on my desktop. So I was wondering if I can get the download link somehow image image However I cannot see any option to copy link when I right click, which is probably because the redirection to external link is done in javascript. I can still achieve it by starting the download and copying the download link image and using it to open a network stream in VLC image image This flow can be somewhat tedious

Proposed Solution

A very simple solution could be to add an anchor tag around the episode UI element so users can right click and copy paste the url, though that might break the Custom scheme flow.

Another option could be to add a Copy link to clipboard button option in the External player link settings menu. image Enabling it could probbaly copy the Custom scheme rendered string to user's clipboard instead of redirecting to it along with a toast notification saying that The link to [Anime name] Ep [ep no] has been copied to clipboard. Then the user can use it to open network streams anywhere.

5rahim commented 2 months ago

I couldn't find anything equivalent to android intent URI for desktop to open it directly in VLC

To register a custom URI for VLC on Windows: https://gist.github.com/aykxt/1aff15ba794061b8b4dc47e5aa1175e6/0e71cc92a69b369b508e2e418ab4352ff978f5c3

  1. Download the file, open to add to the registry
  2. Set the external player link to vlc://{url}
sin3point14 commented 2 months ago

Thank you, I'll do that on my system. It might be a good idea to link this somewhere in the docs.

However I'd still like to request for that feature since:

Again if it's not convincing enough but you are willing to accept contributions, I'm more than happy to work on this :)

sin3point14 commented 2 months ago

I have another suggestion: Maybe we can have a download button on the ep page.

5rahim commented 2 months ago

Maybe we can have a download button on the ep page

image

However I'd still like to request for that feature

I'll consider it