You are not logged in.

#1 2013-04-29 17:31:52

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

subberthehut - an opensubtitles.org downloader

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. big_smile

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 tongue

anyway, for whoever is interested, check out the AUR package:
https://aur.archlinux.org/packages/subberthehut/

Offline

#2 2013-04-29 17:40:12

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: subberthehut - an opensubtitles.org downloader

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 big_smile


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

#3 2013-04-29 17:45:57

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: subberthehut - an opensubtitles.org downloader

Unia wrote:

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 big_smile

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. tongue

Offline

#4 2013-04-29 17:52:40

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: subberthehut - an opensubtitles.org downloader

big_smile 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

#5 2013-04-29 17:55:59

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: subberthehut - an opensubtitles.org downloader

Unia wrote:

big_smile 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

#6 2013-04-29 18:18:44

Unia
Member
From: Stockholm, Sweden
Registered: 2010-03-30
Posts: 2,486
Website

Re: subberthehut - an opensubtitles.org downloader

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

#7 2013-05-10 00:40:55

gustawho
Member
Registered: 2013-05-08
Posts: 2

Re: subberthehut - an opensubtitles.org downloader

At least this app is working for me. Thanks!

Offline

#8 2013-05-10 00:49:53

gustawho
Member
Registered: 2013-05-08
Posts: 2

Re: subberthehut - an opensubtitles.org downloader

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

#9 2013-05-10 09:56:34

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: subberthehut - an opensubtitles.org downloader

gustawho wrote:

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

#10 2013-06-09 09:18:54

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: subberthehut - an opensubtitles.org downloader

Only one feature missing to make this a complete Submarine replacement: automatic subtitle renaming. Thought about it?

Offline

#11 2013-06-09 10:39:19

65kid
Member
From: Germany
Registered: 2011-01-26
Posts: 663

Re: subberthehut - an opensubtitles.org downloader

el mariachi wrote:

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

#12 2013-06-09 11:01:31

el mariachi
Member
Registered: 2007-11-30
Posts: 595

Re: subberthehut - an opensubtitles.org downloader

forget it... I meant --same-name... I blindly changed my submarine alias without first checking the options.

Offline

Board footer

Powered by FluxBB