• @[email protected]
    link
    fedilink
    English
    472 years ago

    Either are fine, I just wish there was a more consistent standard like naming ROMs. I want to be able to script renaming everything for Kodi

    • @[email protected]
      link
      fedilink
      English
      12 years ago

      In my experience, files are named pretty well these days to include resolution, source, the actual title and release year, video format, audio format, language, and release group.

      Try looking at the way music files are named and you’ll see how awful naming conventions can get.

    • @[email protected]
      link
      fedilink
      English
      202 years ago

      Look up SMDB (smoke monster’s database). You can download a tool (I forget what it’s actually called, I think one is called ROM manager) which reads the SMDB files and compares the hashes to your ROMs and will categorize and rename them for you. It looks for duplicates, unofficial releases/hacks/patches, categorizes them by country (US, EU and Japan largely), and more. It’s a pretty nifty tool.

      I spent like two hours going through PS1 ROMs and was like “there’s got to be a better way!” (insert cheesy black and white infomerical cutaway), started looking up stuff and there it was. Not all game systems are supported (mostly NES, SNES, Genesis/MegaDrive, and a few others) but you can build SMDB “packs” yourself.

      I forget if it works on Windows, but I know it works on Linux and it’s either a script or a compiled binary, I forget which, but you can definitely script it, I’ve done so myself since the command string tends to be a bit long.

    • @[email protected]
      link
      fedilink
      English
      122 years ago

      I think your workflow is not optimal. Are you using software like Radarr and Sonarr? They do the renaming for you and come with Kodi integration. Or is this not feasible?

      • @[email protected]
        link
        fedilink
        English
        112 years ago

        I think OP means ROM files for video games systems. Kodi has a RetroArch plugin. As I’m sure you’re aware, Sonarr and Radarr only do TV shows and movies, respectively. Managing ROM packs is a pain in the ass because there are usually thousands of files in a pack (I think there’s something stupid like 9,000 ROMs for NES or SNES).

        • Skull giver
          link
          fedilink
          English
          52 years ago

          Surely at this point 99% of ROM dumps are documented online at this point? Modern systems should be able to categorise them by MD5 or SHA1 instead of dealing with names, just needs a database somewhere.

          Maybe the dump is a tiny bit different if you actually dump them from real hardware, but let’s be honest, very few pirates actually do that.

          • @[email protected]
            link
            fedilink
            English
            42 years ago

            There is a database that I found called Smoke Monster’s Database, it’s actually a bunch of “databases” (files, not actually databases) that you load into a program and point it at a directory and it categorizes, organizes, and renamed everything for you.

            A lot of ROM packs that are out there are pretty old considering the systems that they’re for are decades old and have been passed around and added to for years. The packs are usually in a flat file structure and there are usually multiple files for the same game (version updates from the manufacturer) so it gets annoying pretty quickly. Do you want to have to scroll through 9000 NES games just to get to the Zelda: A Link to the Past?

      • @[email protected]
        link
        fedilink
        English
        12 years ago

        Oh it’s totally inefficient. It’s not the most feasible with my current setup, so I’m making do with what I have at the moment.

  • @[email protected]
    link
    fedilink
    English
    42 years ago

    When searching, dots, when downloading, who cares?

    When searching, dots act as and, spaces as or (at least in qtorrent). The dots makes searching easier.

  • Jo Miran
    link
    fedilink
    English
    232
    edit-2
    2 years ago

    Dealing with spaces while scripting or in terminal is such a pain in the ass. The true dark path of horror is using spaces indeed.

    • @[email protected]
      link
      fedilink
      English
      28
      edit-2
      2 years ago

      It’s a way bigger pain in the ass than people think it is. I remember having to parse output from a tool for work that had tons of output in tabular format, mixed with normal sentence like strings. JSON, YAML, or XML outputs weren’t available so I had to do a nasty mess of grep, awk, cut, and head/tail, to get what I wanted. My first attempt was literally counting the characters so I could cut out exactly what I needed, but as we all know, hardcoding values is a recipe for headaches later on.

      • Jo Miran
        link
        fedilink
        English
        35
        edit-2
        2 years ago

        Here’s a horror story from literally yesterday. We have been fighting a system for a client for weeks and it has been a nightmare. Our clients just told us that they outsourced some of their work to an Indian outfit but that outfit is unfamiliar with Linux and doesn’t know how to edit text files so they have been downloading the files to their Windows machines, editing them in Windows, then uploading the contaminated text files back into Linux. None of them, not our client nor the outfit they hired, understood why this was a problem. We have no idea what files are affected and we won’t know until they fail because they obviously did not keep track of what they touched.

        EDIT: I’m being intentionally vague.

        • @[email protected]
          link
          fedilink
          English
          72 years ago

          You can just grep for carriage returns followed by newlines, grep -Pirn '\r\n$' /path/to/whatever. It’ll identify all your problematic files.

        • @[email protected]
          link
          fedilink
          English
          92 years ago

          If this is about line endings, surely a simple shell or python script could correct them?

          • @[email protected]
            link
            fedilink
            English
            3
            edit-2
            2 years ago

            Does windows add an extra character at the end that gets converted to new line on linux? Because the other day I were copying a script and after pasting it an extra line was added after every single line, even the empty lines.

            how it looked when I copied it:

            bla
            bla
            
            bla
            

            what it turned into:

            bla
            
            bla
            
            
            
            bla
             
            
            • @[email protected]
              link
              fedilink
              English
              112 years ago

              Windows uses CR LF (carriage return, line feed), whereas Unix just uses LF. For added fun, macs use CR.

              • noughtnaut
                link
                fedilink
                English
                52 years ago

                For added fun, macs use CR.

                This used to be true, for sure, but I thought this changed with OS X (which is essentially PrettyBSD) ?

                • @[email protected]
                  link
                  fedilink
                  English
                  42 years ago

                  You’re right. Notepad++ still lists macs as using CR for their EOL conversion tool, so I didn’t realize.

        • PorkSoda
          link
          fedilink
          English
          162 years ago

          Haha this is up there with having to explain why opening a csv in Excel and then saving means that I don’t want the file.

          • @[email protected]
            link
            fedilink
            English
            82 years ago

            I will never forgive excel for automatically converting all of my dates to some weird ass format, or stripping single quotes randomly, or something other BS that they do for no reason

            • ddh
              link
              fedilink
              English
              42 years ago

              My absolute favourite is stripping leading zeroes from any text that looks like a number, then displaying it in scientific notation. But we get Copilot, so it balances out, right?

    • Em Adespoton
      link
      fedilink
      English
      282 years ago

      “\ “ and [tab] and * are your friends. I’ve been using spaces in Unix filesystems since the early 90s with no issues. Also, using terminal fonts that•put•a•faint•dot•in•each•space•character helps.

      • @[email protected]
        link
        fedilink
        English
        52 years ago

        Yeah but at least with periods in the title tab complete will just complete the file name all the way while with a filename with spaces I have to escape the damn space with "\ " like you said. Why do more work when I don’t have to?

      • ShaunaTheDead
        link
        fedilink
        102 years ago

        Yeah, either put quotes around it ‘/like this/you can incorporate/spaces/into your paths’ or /just\ escape/your\ spaces/like\ this

        • @[email protected]
          link
          fedilink
          English
          11
          edit-2
          2 years ago

          It gets real crazy when you’re sending remote commands so you have to escape the escapes so that the remote keeps them and properly escapes the space

          ssh -t remote "mv /home/me/folder\\\ with \\\ spaces /home/me/downloads/

        • @[email protected]
          link
          fedilink
          English
          152 years ago

          This is fine for the most basic of use cases but once you start looping through file names or what have you, you have to start writing robust correct bash and nobody does that

    • Skull giver
      link
      fedilink
      English
      612 years ago

      Just wait until someone starts putting quotes into their file names.

      Spaces are fine as long as you use quotes, though. I would avoid them on Windows in command prompt but any modern shell or programming language should easily deal with them.

      • Alien Nathan Edward
        link
        fedilink
        English
        262 years ago

        I work on a Web app and we recently decided that we’re just not gonna support double quotes in free text fields because oh holy balls what a thing it is to try to deal with those in a way that doesn’t open you up to multiple encoding vulnerabilities.

        • @[email protected]
          link
          fedilink
          English
          372 years ago

          That’s… Surprising. If you’re doing things right, double quotes should be no trouble at all:

          • HTTP requests have simple, automatic encoding
          • SQL queries with prepared statements don’t need any special handling for double quotes
          • Rendering the data should happen with proper escaping etc.

          They are usually only trouble if you’re doing SQL queries wrong (concatenation etc.) or if you’re not escaping your output.

          • Alien Nathan Edward
            link
            fedilink
            English
            28
            edit-2
            2 years ago

            The issue is the filter that we’re using to avoid multiple encoding attacks de-escapes everything via multiple rounds, then tries to pass it to the next layer of filtering with the de-escaped request body as a json string. Your absolutely right that this is a silly way of doing it, but sometimes we have to live with decisions that were made before we were onboarded to a project. In this particular case, I pushed to improve the filters but all our PO heard was “spend development time weakening security” and at the end of the day they decide what to do and we do it.

            • @[email protected]
              link
              fedilink
              English
              22 years ago

              The filter you’re using to avoid multiple encoding attacks creates multiple encoding attacks.

              • Alien Nathan Edward
                link
                fedilink
                English
                2
                edit-2
                2 years ago

                You should tell that to OWASP then, they wrote it. org.owasp.esapi 2.5.2.0, class is Encoder, method is canonicalize(String, bool, bool)

                • @[email protected]
                  link
                  fedilink
                  English
                  22 years ago

                  This method is a band-aid patch when your downstream code is all messed up and you can’t fix it. Instead of treating the input string correctly, it just removes anything that might possibly trigger some vulnerability in wrong code.

      • @[email protected]
        link
        fedilink
        English
        22 years ago

        [Year] Name

        For me. I don’t care about resolution after I’ve downloaded it. Heck, I don’t need to know the resolution before downloading, I can tell by the file size.

      • @[email protected]
        link
        fedilink
        English
        12 years ago

        I usually add tvdb id for Series so that fixing identification problems in jellyfin is easier.

      • @[email protected]
        link
        fedilink
        English
        22 years ago

        Do you type with one hand?

        And well even if you did you could hold down right shift instead of left shift to only use a single hand.

    • @[email protected]
      link
      fedilink
      English
      382 years ago

      I’ve always liked underscores better because it differentiates from the file extension. It just makes sense. Except it is a wider character, so it’d be longer.

      • @[email protected]
        link
        fedilink
        English
        72 years ago

        What happens when a hyphen is used in a movie title? I think that’s frequent enough, versus an underscore or a period.

        • @[email protected]
          link
          fedilink
          English
          12 years ago

          Semi colons wouldn’t be valid in file names so they’re ignored so there’s no reason to include hyphens either

      • p3e7
        link
        fedilink
        English
        12
        edit-2
        2 years ago

        kebab-case-for-the-win

  • JokeDeity
    link
    fedilink
    English
    29
    edit-2
    2 years ago

    As soon as the file finishes downloading it becomes only the name of the movie.filetype

    I can’t stand the titles on torrents.

    • @[email protected]
      link
      fedilink
      English
      63
      edit-2
      2 years ago

      “Titles”? It’s not a title, it’s a file name that contains a lot of details about the rip. In the post’s example it tells you that it’s the movie Split, ripped from blu ray, in 1080p, with audio tracks in Italian and English, and encoded in x265. You probably would hate a lot more not being able to tell the difference between split.mp4 recorded on my cellphone in the movie theater and split.mp4 in ultra hd 4k ripped straight from Netflix.

      • JokeDeity
        link
        fedilink
        English
        152 years ago

        Lol, okay. Calm down buddy. What I do doesn’t affect you. The torrent description let’s me know all that too, I just hate having those file names in my library, looks messy and it’s less easy for my eyes to browse quickly.

        • @[email protected]
          link
          fedilink
          English
          362 years ago

          I mean I never told you not to rename them lmfao. You just said “I can’t stand the titles on torrents” like people just made these really long filenames for shits and giggles. Also lots of torrent sites will feature several different kinds of rips. It’s not very convenient on the back end to have all rips of the same movie have the same file name.

          Also “calm down”? Idk I thought I gave a pretty chill explanation of why things are the way they are but sorry if it didn’t come across that way.

          • @[email protected]
            link
            fedilink
            English
            152 years ago

            These days, it feels like one needs a disclaimer for every opinion or fact just to avoid setting someone off. I feel like it discourages open conversation…

  • lukini
    link
    fedilink
    English
    52 years ago

    It’s supposed to be a dash before the group name.

  • @[email protected]
    link
    fedilink
    English
    32 years ago

    1080p is great and all…No really it looks amazing. but it takes up a fuck load of space.

    • @[email protected]
      link
      fedilink
      English
      152 years ago

      You should know that in most filesystems that are not NTFS, spaces in file names are not well supported.

      • @[email protected]
        link
        fedilink
        English
        62 years ago

        Can you give examples? Linux and Mac have no real issues as far as I’m aware. Nor exFAT or FAT32

        • @[email protected]
          link
          fedilink
          English
          13
          edit-2
          2 years ago

          The problem is really that space is an argument separator, so to safely handle filenames with spaces you need to handle them special, either by escaping them, quoting the entire thing. This means that the filename with spaces can’t be just copy pasted wherever you want, you have handle them special. It adds complications that are resolved by just using a separator that isnt used for other things, like underscore, or dash. Dot I also don’t like as much as it’s used as a separator for extensions, but that’s a far easier problem to handle by just ignoring all but the last dot, leaving only one really bad edge case (a file that does not have an extension, that uses dot separator in its filename having the filesystem imply a wrong extension.

          • @[email protected]
            link
            fedilink
            English
            12 years ago

            I’m with the person you’re replying to, what’s an example? I haven’t had a problem working with filenames with spaces in at least ten years on windows, Linux or Mac…

              • @[email protected]
                link
                fedilink
                English
                22 years ago

                Escape characters and autocomplete exist.

                It’s also really good practice to account for weird characters in programs and shell scripts you write because then you don’t have injection vulnerabilities or unicode problems.

                Seriously, what’s an example of spaces in filenames causing a problem?

                • @[email protected]
                  link
                  fedilink
                  English
                  4
                  edit-2
                  2 years ago

                  for f in *.txt; do cat $f; done

                  Will error for example. It works fine for filenames without space, but if the filename has space in it, it will be interpreted wrong. But if your testing batch doesn’t have spaces in the filename, you won’t see the issue until it’s used on a file that does. Note ‘cat’ is a placeholder, any function/script that can be used on a file here will have the same issue.

                  Something similar to that caught me last week while I was unzipping multiple mods in bulk for a game.

          • @[email protected]
            link
            fedilink
            English
            132 years ago

            That’s a problem with the shell though, not the filesystem. It doesn’t matter which files filesystem you’re using; most interactive shells use spaces as token separators and therefore spaces in filenames need to be enclosed in quotes or escaped.

    • @[email protected]
      link
      fedilink
      English
      62 years ago

      Clearly the best option then is to just use some of each. Like this: “MovieTitle-2000.Your_mom h.265”