Git Product home page Git Product logo

Comments (17)

allejok96 avatar allejok96 commented on August 11, 2024

If you mean that all video files are saved in one directory, that's the intended behaviour. Before I did the rewrite, files were organized in directories, and every file contained one link. After I did the rewrite, the "directory structure" is inside the files, which are playlists. All playlists are saved in one directory, and if you use the flag --download, all videos will be saved in one directory too.

If organizing files in directories is the way you work, I could try to re-implement that. I've never used Plex. How does it work if you open the m3u files that jwb-index creates in Plex? Do Plex flip out like VLC or is it like browsing a folder, like Kodi does? I know that you prefer having them downloaded. Just wondering.

from jw-scripts.

bachato avatar bachato commented on August 11, 2024

Plex doesn't seem to recognize the .m3u files so I cannot use them. I would like if possible an option to use the directory structure which Plex can see which will allow me to navigate the videos.

Thanks for putting this script together.

from jw-scripts.

bachato avatar bachato commented on August 11, 2024

OK after looking through some of the Plex documentation for adding personal videos which is what these are considered at this point, there is a naming convention that needs to be used in order to get the names to display properly (Show>Season>Episode) (my grouping is Category(ie Monthly Program or Talks or News and Announcements...)>Year>Episode/File) and you have to choose "TV Shows" as the library type but you can rename the library however you like. The you have to go into settings and set the local media agent as the first agent for TV Shows. Then the names will be correctly retrieved from the metadata. The current metadata isn't the best for Plex because Plex sees the monthly programs as the same file with multiple version and not as an individual file for each month so renaming the file may need to be done in order for them to display properly.

from jw-scripts.

allejok96 avatar allejok96 commented on August 11, 2024

Hm, I might have a solution for you, if the m3u playlists is working with Plex... Working on it right now. Please let me know how opening the m3u files generated without the --download flag works.

from jw-scripts.

bachato avatar bachato commented on August 11, 2024

Plex does not see the m3u files at all only video files.

from jw-scripts.

allejok96 avatar allejok96 commented on August 11, 2024

That made things a bit tricker. But nothing is impossible, I will look into it.
Meanwhile you can use this one liner:
find /dir/with/strm/files -name "720p.strm" -execdir wget -i {} \;
To download the videos when using the old kodiator.sh script.

from jw-scripts.

bachato avatar bachato commented on August 11, 2024

ok great thanks. I need to play around with these files as well I had to manually rename them to get them to display properly in Plex and then I had to change some things in Plex as well. Also the naming scheme/convention I mentioned earlier wasn't actually the file naming convention, it was the folder structure so sorry for misstating that. the naming convention is Show - s00e00 - episode.

from jw-scripts.

allejok96 avatar allejok96 commented on August 11, 2024

What did you do with the strm files to get plex to play them?

from jw-scripts.

bachato avatar bachato commented on August 11, 2024

nothing Plex saw them and I tried playing one of the 240p but it never loaded.

from jw-scripts.

allejok96 avatar allejok96 commented on August 11, 2024

Sorry I'm a bit confused

I need to play around with these files as well I had to manually rename them to get them to display properly in Plex and then I had to change some things in Plex as well.

Did you refer to the strm files or the files downloaded by the oneliner?

from jw-scripts.

allejok96 avatar allejok96 commented on August 11, 2024

Because if you got something working somehow, I can put that in the script.

from jw-scripts.

bachato avatar bachato commented on August 11, 2024

yes I am using the oneliner manually and it correctly grabs the file[s] based on quality. I did add --limit-rate and -nc with wget so as not to overload the bandwith of the site and to skip existing files.

from jw-scripts.

bachato avatar bachato commented on August 11, 2024

Sorry I'm a bit confused

I need to play around with these files as well I had to manually rename them to get them to display properly in Plex and then I had to change some things in Plex as well.

Did you refer to the strm files or the files downloaded by the oneliner?

Sorry if I confused you. I was refering to getting the filenames to display correctly in Plex in the statement above. I had to manually edit the mp4 filenames/metadata themselves as well as making some changes in Plex directly related to the files as well. It had nothing to do with the strm files at that point

Does that help clarify things?

from jw-scripts.

allejok96 avatar allejok96 commented on August 11, 2024

Yes. I just wondered if Plex could play the strm files, simply if you gave them another filename. But now I see you meant the mp4 files.

I'm testing out some improvements to the script that I hope will solve this. Since Plex' system of organizing things is quite different than the way things are organized in JWB you will have to use the "Home Videos" mode when adding a library...

from jw-scripts.

allejok96 avatar allejok96 commented on August 11, 2024

I've now added the --filesystem option with combined with --download should solve your problems - if you use the "Home Videos" mode in Plex. And thanks for the --limit-rate tip, I've added a default limit, with you can change.

The --latest flag now adds the videos to their corresponding categories, so regularly running a cron job with that should keep things up to date.

Run it without the --latest flag, and with the --clean flag once in a while to tidy things up.

Let me know how it works out for you!

from jw-scripts.

bachato avatar bachato commented on August 11, 2024

Great thanks, I have tested it out and things look good. What exactly is the --clean tag doing?
I did notice at one point some temp folders that existed when using the find command from above. I assumed they were for items that may change frequently such as featured items.

from jw-scripts.

allejok96 avatar allejok96 commented on August 11, 2024

Glad to hear it works!

Simple answer: Actually the temp folder (if you mean the "jwb-LANG" folder) is for all the items. The --clean flag removes everything except the downloaded video files. In other words, it does a fresh start.

Complex answer: In the destination folder you specify there will be created a jwb-LANG dir containing (directly) all the video files and dirs named after the category code names. The dirs contain symlinks to other dirs or videos. The script will keep adding links here, and never check if anyone should be removed. This can be a problem, especially for the "Featured" categories. The --clean flag removes all this before start. One could use the clean flag every time the script runs without the --latest flag, BUT then the script would have to finish before all categories were restored. And if you wanted to watch something meanwhile, you would have to wait.

Closing this issue now.

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.