Code Monkey home page Code Monkey logo

Comments (4)

 avatar commented on August 24, 2024

Just some further thoughts about this, I was thinking a solution along the lines of how most music tagging programs format their filenames.
%streamer%
%site%
%YYYY% (and other datetime options)

And possibly other options?
Maybe there are site specific strings that could be useful that I'm not thinking right now. Which brings to mind, should the option be site specific or global, or both?

Could replace the streamerSubdir, includeSiteInFile, includeSiteInDir and dateFormat option with something like this for example.
%site%-%YYYY%/%streamer%/%streamer%_%YYYY%%MM%%DD%-%HH%%mm%%ss%

from streamdvr.

jrudess avatar jrudess commented on August 24, 2024

I concur with that direction. I'm likely to leave the date-format as its own variable in the config, because that parsing comes from the 'moment' library and is also used in the first column of the log. So if I code this it probably won't end up being quite so flexible, but I would accept a PR.

%site%_%date%_%streamer%

from streamdvr.

 avatar commented on August 24, 2024

That's absolutely fine. I also just realized that github's text parser removed some slashes from that example string of mine, but the basic gist of those was to represent folders and sub folders.

from streamdvr.

jrudess avatar jrudess commented on August 24, 2024

The config option includeSiteInFile has been removed. In its place is a new config option:

fileNameFormat: "%n_%s_%d"

%n is the streamer's name
%s is the site
%d is the date using the specified dateFormat

from streamdvr.

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.