Comment 12 for bug 1529988

Revision history for this message
henczati (henczati) wrote :

**2.0.18-2 works for me.** (Which might contain the same fix. I did not check.)

Recently, 2.0.18 started to return a dialog of download failure in the GUI.
Instead of the subtitle it downloaded a html page that said that the owner of the page (OpenSubtitles.org) banned the identifier of my browser (subdownloader).
The "Sub Info" button still took me to the right webpage and I could download the subtitle manually.

# Solution #

Then I checked on https://launchpad.net/subdownloader and saw that there is a new source package (2.0.18-2) in the Xenial universe repo.

As it's written in python, the xenial .deb could just work out of the box:
http://packages.ubuntu.com/xenial/subdownloader

To be more safe, I built it for my Trusty from the source.
For the less experienced:
```sh
# add repo definition
echo 'deb-src http://archive.ubuntu.com/ubuntu/ xenial universe' | sudo tee -a /etc/apt/sources.list
# update package lists
sudo apt-get update
# install build dependencies
sudo apt-get build-dep subdownloader
# create & go to temp. dir. to build
origdir="`pwd`"; tmpdir="`mktemp -d`"; cd "$tmpdir"
# download, build and generate binary package (no root perm. needed)
apt-get -b source subdownloader
# install the bin. pkg(s)
sudo dpkg -i *.deb
# fix dependency issues if any
sudo apt-get -f install
## cleanup:
# go back
cd "$origdir"
# remove temp. dir. w/ built stuff (if you want to keep the .deb, copy/move it out)
rm -R "$tmpdir"
# remove last repo def. (that we added)
sudo sed -i '$d' /etc/apt/sources.list
```