GithubHelp home page GithubHelp logo

Comments (6)

ankenyr avatar ankenyr commented on June 25, 2024

var specificFile = Path.Combine(directoryPath, Path.GetFileNameWithoutExtension(path) + ".info.json");

It will look for the same file name but just swap out the extension.
so the file
20180302-Why_is_pi_here_And_why_is_it_squared_A_geometric_answer_to_the_Basel_problem [d-o3eB9sfls].webm
will need an info json file
20180302-Why_is_pi_here_And_why_is_it_squared_A_geometric_answer_to_the_Basel_problem [d-o3eB9sfls].info.json

This should be how youtube-dl works out of the box and thus should not require any modifications to your library.

from jellyfin-youtube-metadata-plugin.

davralin avatar davralin commented on June 25, 2024

No, youtube-dl by defaults doesn't have brackets around the id, for instance:

$ youtube-dl https://www.youtube.com/watch?v=BaW_jenozKc --get-filename
youtube-dl test video ''_รคโ†ญ๐•-BaW_jenozKc.mp4

I have, anyway, modified my output-template to not include the id, as it seemed meaningless to include, since the id is still intact in the json-file.

I'm a little confused about your example, would the following give me a hit:

$ youtube-dl https://www.youtube.com/watch?v=BaW_jenozKc --get-filename -o '%(title)s.%(ext)s' --write-info-json
youtube-dl test video ''_รคโ†ญ๐•.mp4

since that will add a info.json named according to the file, but without containing the id in the filenames?

from jellyfin-youtube-metadata-plugin.

ankenyr avatar ankenyr commented on June 25, 2024

from jellyfin-youtube-metadata-plugin.

davralin avatar davralin commented on June 25, 2024

Thanks for answering, unfortunately - I have almost 20k files downloaded - renaming isn't that feasible, nor wanted - id's give nothing to the name, and the metadata is right beside the file if I ever want it.

I'll keep an eye on this for any future enhancements. :-)

from jellyfin-youtube-metadata-plugin.

NotExpectedYet avatar NotExpectedYet commented on June 25, 2024

Thanks for answering, unfortunately - I have almost 20k files downloaded - renaming isn't that feasible, nor wanted - id's give nothing to the name, and the metadata is right beside the file if I ever want it.

I'll keep an eye on this for any future enhancements. :-)

I'm in the same situation after re-configuring my library and completely ignoring the id field.

I'm tempted to write a script that will run over my downloads directory, look for info.json files and then append those to the matching file names. Would this be of interest? I'm not making a promise, it's just on my list of stuff to do aha

from jellyfin-youtube-metadata-plugin.

davralin avatar davralin commented on June 25, 2024

I'm sure it will be of interest to someone - I did however end up ditching jellyfin, then re-downloading everything - but this time I added the ID to the name BUT I embedded the json-file into the MKV (as that is supported for MKV-containers).

Just a couple of weeks ago, I started looking at jellyfin again, and noticed that embedded json-files are not supported either. :-D

from jellyfin-youtube-metadata-plugin.

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.