Diaoul/subliminal — pull request #112 by wackou (2012-07-01 15:46:53+00:00)
Title: Small refactoring that makes it easier to hook into the public API

Hi,

these are 2 small commits that factor out some code in Subliminal's public API, but also make it easier for me to hook into the API. My use case is that I would like to use Subliminal to download some subtitles, but I want to specify where they should be downloaded.

So my first thought was to list the subtitles, change their paths, then download those, but the download_subtitles() method doesn't accept as arguments what is returned by list_subtitles, but rather the same arguments as list_subtitles, then does the list and download in one shot.

If I'm not clear enough, you can look at https://github.com/wackou/smewt/blob/master/smewt/base/subtitletask.py#L67 to see what I mean.

Cheers,

Nico.