Totem Download Movie Subtitles hangs on loading the subtitles

Bug #886947 reported by mambro
This bug report is a duplicate of:  Bug #883694: Downloaded subtitles not showing. Edit Remove
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
totem (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Ubuntu version: 11.10
Totem version: 3.0.1-0ubuntu5

Step to reproduce:

1) Active the plugin "Subtitle Downloader"
2) Open a movie with totem
3) View > Subtitles > Download movie Subtitles
4) Select one from the list
5) Totem hangs

On the console the error is
Traceback (most recent call last):
  File "/usr/lib/totem/plugins/opensubtitles/opensubtitles.py", line 570, in os_save_subtitles
    subFile = fp.replace('', False)
  File "/usr/lib/python2.7/dist-packages/gi/types.py", line 43, in function
    return info.invoke(*args, **kwargs)
TypeError: replace() takes exactly 5 arguments (3 given)

I attach a patch to solve the problem (to apply to /usr/lib/totem/plugins/opensubtitles/opensubtitles.py)

Tags: bitesize patch
Revision history for this message
mambro (mambro87) wrote :
Revision history for this message
psychok7 (nunok7) wrote :

hey i am trying to test this patch but i am not sure how to run it.. how am i supposed to do it?

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in totem (Ubuntu):
status: New → Confirmed
Revision history for this message
psychok7 (nunok7) wrote :

the patch file works, i did this "patch -p0 -i opensubtitles.patch" (dont know wht the p0 means) in the terminal with my .patch in /usr/lib/totem/plugins/opensubtitles/opensubtitles.py

Revision history for this message
mambro (mambro87) wrote :

You can also open the patch and make the changes manually to the file /usr/lib/totem/plugins/opensubtitles/opensubtitles.py. It's a very trivial change :)

Revision history for this message
elleP (pelle-quicknet) wrote :

Tnx, patch works!
Now to get this into the releases.

Revision history for this message
theghost (theghost) wrote :

I can confirm this bug on Oneiric x64.
Additionally I merged the duplicate bug-report into this one and added the patch tag, hopefully to get more attention, and to get the patch into the release.

tags: added: patch
theghost (theghost)
tags: added: bitesize
Revision history for this message
Jeremy Bícha (jbicha) wrote :

This was already fixed for 12.04 with the patch for bug 883694. All that needs to be done is for that fix to be released as an SRU for Ubuntu 11.10.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.