Git Product home page Git Product logo

Comments (13)

allejok96 avatar allejok96 commented on September 17, 2024

Ok so there is a few things I need to know to make this as smooth as possible:

Are you using --mode=filesystem or --friendly ? If I understand correctly, only using --download and --download-subtitles won't work currently because the subtitles will not match the name of the video (video has resolution appended in the name).

The best would IMO be to implement this in --mode=filesystem and do the name change "virtually" using links, but I don't know if that's the best setup for everyone...

Next, it would be even better to have a ISO language code in the subtitle filename, like you said.

https://support.plex.tv/articles/200471133-adding-local-subtitles-to-your-media/

I see there is a way to mark subtitles as forced. Is that necessary to make Plex select the external subtitle instead of subtitles embedded in the video? (Idk if all videos even have embedded subs). Or would it be enough to have the subtitle file with the correct language code and Plex would autoselect it since it's your preferred language? (I know I'm asking a lot of question right now :)

from jw-scripts.

gamemaster84 avatar gamemaster84 commented on September 17, 2024

from jw-scripts.

allejok96 avatar allejok96 commented on September 17, 2024

Could you also please test if --mode=filesystem works for your usecase?

from jw-scripts.

gamemaster84 avatar gamemaster84 commented on September 17, 2024

from jw-scripts.

allejok96 avatar allejok96 commented on September 17, 2024

Thank you for your valuable feedback. I've uploaded some new code. Multi language subtitles should be working. Also --mode=filesystem. What are you running your plex server on? I'm testing a plex server on win right now and it doesn't work properly with mode=filesystem. I'll be looking into that more. Please test it if you can... (In plex you choose "Folders" instead of "Movies" and it should be like browsing broadcasting in JW library)

And by the way if you'd use Kodi instead there is a JW Broadcasting addon with this different-subtitle-language-feature already in place and it requires no video downloading, it streams everything directly. Works like a charm. (How shameless I am)

from jw-scripts.

gamemaster84 avatar gamemaster84 commented on September 17, 2024

from jw-scripts.

allejok96 avatar allejok96 commented on September 17, 2024

I just moved everything into a beta branch, since I haven't made up my mind completely. (I shouldn't do software development!)
https://github.com/allejok96/jw-scripts/tree/v2.0-beta

Simple download:

jwb-index -l LANG -s LANG2,LANG3 -d --latest

Filesystem (preparation):

jwb-index -l LANG -m filesystem [--media-dir PATH]

Without --media-dir it defaults to jwb-data/media (this is what I haven't made up my mind about)

Filesystem (update):

jwb-index -l LANG -s LANG2,LANG3 -m filesystem [--media-dir PATH] -d --update

--update is like --latest but it puts things in the correct places.

How do you find the user experience otherwise? When I first developed this script I just wanted a playlist for Kodi. Then someone asked for downloading. And then for friendly names. And then Windows support. And suddenly 95% of people using this script are Plex users and I've never even used Plex myself. I'm not even using this script that frequently. So the options and the logic have become a bit messy.

I appreciate any feedback. What I'm thinking about most now is where to put media etc and how to the options for that should look like.

from jw-scripts.

gamemaster84 avatar gamemaster84 commented on September 17, 2024

from jw-scripts.

gamemaster84 avatar gamemaster84 commented on September 17, 2024

from jw-scripts.

allejok96 avatar allejok96 commented on September 17, 2024

Alright, thanks for the testing. So it's the same result as plex on windows. That's too bad. Strange though, the filesystem mode was written for plex explicitly (see #1). Wonder if it has changed with some update... It would be good to have it working. Plex's default sorting of JW videos gets kinda messy after a while, right? I have made some experiments with hard links instead of symbolic links and that might be more comaptible solution.

Well, this issue is mostly fixed, but until I decide to merge the beta code into master I will keep it open, for reference.

from jw-scripts.

gamemaster84 avatar gamemaster84 commented on September 17, 2024

Is the multiple sub language merged with the stable branch?

I had to reinstall my server sigh..
I also looked at the kodi plugin but i can't find the multiple subtitle language. If i choose dutch, audio is also dutch.

from jw-scripts.

allejok96 avatar allejok96 commented on September 17, 2024

No, it's not merged I'm afraid.

As far as the Kodi add-on the feature exists in an obscure way:

  1. In settings: choose your subtitle language as your language
  2. Also select "Always use last selected language"
  3. Go to any video, bring up the context menu and select "Play in another language"
  4. Select preferred audio language
  5. Now it will play with different audio/subs every time

... I'm currently working on making this more obvious

from jw-scripts.

gamemaster84 avatar gamemaster84 commented on September 17, 2024

from jw-scripts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.