Our server pr0vider carried out maintenance on 15 January 2020 but it corrupted some files in the process. If you notice anything out of the ordinary (partial files, pages not loading, that kind of shit) then let us know at:

Correct timestamps within subtitle files (.srt only lol) [=[==[[=[=

Wazakindjes 317e2c049a Fixed little textual inconsistency between readmuh and srthax.pl 1 month ago
serbur 51b9c42a45 Update serbur thingy to just pass a wildcard extension, shell gl0bbing will resolve the file if it exists but it might affect both .srt and .ass (if you have multiple subs with the same base name) xd 1 month ago
.gitignore c540c6d6fa Initial commit elemao 3 months ago
LICENSE c540c6d6fa Initial commit elemao 3 months ago
README.md 317e2c049a Fixed little textual inconsistency between readmuh and srthax.pl 1 month ago
srthax.pl 59e29e4a0c Added supp0rt for .ass too lol (still keeping the name as srthax tho cuz fuck renaming everything ;]]]]]]]]]]]]]]]]]) 1 month ago

README.md

The fuck is this

This shit allows you to correct the timestamps within subtitle files (.srt and .ass only lol). ;;];]]; As a b0nus, it also converts the files to use Linux-style line endings, cuz many are uploaded with Wind0ngs ones instead. It also shits out a bunch of warnings to help ya find inconsistencies within em subs y0.

Besides the main skrip, there's also a "server" thingy which I'm using from my k0di app so I can easily correct subs as I watch some shit. [=[[=[==[=[=[

Dependencies

srthax itself:

  • Data::Dumper
  • File::Slurp
  • Getopt::Mixed

The server script:

  • Config::IniFiles
  • Data::Dumper
  • File::Basename
  • IO::Handle
  • IO::Select
  • IO::Socket::INET
  • IO::Socket::SSL

Usage

srthax [options] <time shift> <subtitle file(s)>

Due to how Getopt::Mixed works, if you want a negative time shift make sure to terminate the options with --:
srthax -o -- -10 poop.srt

Simply run srthax --halp to view the built-in halp and see all the supported options. ;] The server doesn't take any arguments but works with a config file. Just copy serbur/muhconf.ini.example to serbur/muhconf.ini and edit that shit, everything's explained in thur. ;];]];;] It also doesn't log anything by itself, all info is printed to stdout so you can do whatever you want with it. =] This also means it runs in the foreground and you should probably just run it within screen/tmux.