You are not logged in.
subberthehut is a command-line-based opensubtitles.org downloader written in C. I basically wrote this to learn C and to replace subdl which only supports hash based searches.
I already wrote this month ago, but didn't announce it anywhere since I didn't figure that many people have a need for this. But after I got patches from some random dude I don't even know on github and the AUR package already has 2 votes (yes, two! wow!), I thought I might share.
So what does this better than subdl?
- as mentioned, it doesn't just search by the hash of the video file but also by the filename itself. This is very useful when the hash of the video file hasn't been inserted into the opensubtitles.org database (yet).
- if there was a hash-based match, it will automatically download it, otherwise you will automatically be asked which one to download (this behaviour can be changed with command line switches of course).
- it prints an awesome looking table with unicode symbols (command-line-eyecandy, yay!)
- It's written in C, so I will just claim that it is faster than the python-based subdl
anyway, for whoever is interested, check out the AUR package:
https://aur.archlinux.org/packages/subberthehut/
Offline
Would this have any advantages over submarine? Not saying you shouldn't have developed this, just curious as I might switch to this if it works better
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
Would this have any advantages over submarine? Not saying you shouldn't have developed this, just curious as I might switch to this if it works better
Didn't know about this one. From the description it seems like submarine also only supports hash-based searches. But I can't actually check this out because I can't get it to build. So yes, that is one advantage, subberthehut actually builds.
Offline
that's an advantage, yes.
Looking at the code, I see it only supports English. Is actual language support planned, preferably through a command line option?
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
that's an advantage, yes.
Looking at the code, I see it only supports English. Is actual language support planned, preferably through a command line option?
It does actually, check out the "-l / --lang" option (--help explains it all).
Last edited by 65kid (2013-04-29 17:56:23)
Offline
Whoops, missed that. sorry
If you can't sit by a cozy fire with your code in hand enjoying its simplicity and clarity, it needs more work. --Carlos Torres
Offline
At least this app is working for me. Thanks!
Offline
By the way, I need to install this app on my CentOS server, but I'm really noob at programming issues. How can I do it?
Offline
By the way, I need to install this app on my CentOS server, but I'm really noob at programming issues. How can I do it?
I have no idea about CentOS, but it should work just fine, just make sure you have all the dependencies installed (zlib, glib2, xmlrpc-c).
git clone git://github.com/65kid/subberthehut.git
cd subberthehut
make
sudo make install
Offline
Only one feature missing to make this a complete Submarine replacement: automatic subtitle renaming. Thought about it?
Offline
Only one feature missing to make this a complete Submarine replacement: automatic subtitle renaming. Thought about it?
Depends on what exactly you mean by that. There already is the "--same-name" option which saves the subtitle to the same filename as the video file (except the file extension of course).
If you mean full format specifier support (so you can specify something like "%s-%l.%f", where %s is the subtitle name, %l is the language etc.), I personally don't see the use case for this, but if there is interest and this isn't too complex to implement, I may add this at some point.
Offline
forget it... I meant --same-name... I blindly changed my submarine alias without first checking the options.
Offline