After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 333924 - automatically load subtitles from other directories in addition to the current
automatically load subtitles from other directories in addition to the current
Product: totem
Classification: Core
Component: general
Other All
: Normal enhancement
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Reported: 2006-03-08 16:38 UTC by Teppo Turtiainen
Modified: 2006-03-13 09:56 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement

screenshot of the problem (22.55 KB, image/png)
2006-03-09 06:31 UTC, Teppo Turtiainen

Description Teppo Turtiainen 2006-03-08 16:38:45 UTC
If I open a media file in Totem and the directory the media file is in also
contains a subtitle file with the same name, Totem automatically uses it. Also
if I open a directory in Totem (from the command line or from Nautilus) that has
several media files in it, Totem adds all those media files to the playlist and
starts playing them in order.

However, if that directory also contains subtitle files (and those subtitle
files have the same names as the media files), Totem doesn't use them like it
does with subtitle files in the current directory. Could Totem be made to use
those subtitle files too?

It would be very convenient to be able to just throw a bunch of media and
subtitle files to a directory, open that directory in Totem and have it load
both the media files and subtitle files and associate them with each other
Comment 1 Bastien Nocera 2006-03-08 16:41:29 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of 165981 ***
Comment 2 Teppo Turtiainen 2006-03-08 16:59:09 UTC
This is not actually a duplicate of bug 165981, but a suggestion for improving the current automatic loading of subtitles. Even if Totem had a way of manually selecting subtitles (as suggested in bug 16598), it wouldn't be very convenient in a case where there are many media files and matching subtitle files (for example episodes in a series) and the user wants to watch them all at once. The user would still have to manually associate the media files with the subtitle files. This is about allowing the user to open a directory in Totem and have Totem automatically associate the files with one another.
Comment 3 Bastien Nocera 2006-03-08 17:09:09 UTC
So, you would want Totem to look in another (selectable) directory for the subtitle files, instead of just the media file's directory?
Comment 4 Teppo Turtiainen 2006-03-08 17:28:42 UTC
No, I want Totem to automatically look for subtitle files in the same directory that the media files are in when I tell it to open an entire directory.

Steps to reproduce:
1. Copy many media files and subtitle files to a directory (like a.avi,, b.avi,, c.avi, etc.)
2. Open that entire directory in Totem (either by making Totem handle directories in Nautilus and then right clicking on the directory and selecting "Open with Totem Movie Player" or by doing "totem directory_with_files/" from the command line).
Comment 5 Bastien Nocera 2006-03-08 23:46:21 UTC
It already does that...
The subtitle files are looked up just before they're getting opened. Doesn't it work for you?
Comment 6 Teppo Turtiainen 2006-03-09 06:31:55 UTC
Created attachment 60946 [details]
screenshot of the problem

Well, in that case this is a bug report and not an enhancement request. Please see attached screenshot of what happens when I try this. Both the media files and the subtitle files are added to the playlist but they are not associated with each other despite having the same name.
Comment 7 Bastien Nocera 2006-03-09 08:05:43 UTC
Right, got it.
Comment 8 Michaël Arnauts 2006-03-12 10:49:53 UTC
Shouldn't we just filter the srt's from the playlist, and only show playable items? Then when the playback of a new item is started, totem seeks in the directory, and loads the subtitle (what it does now afaik)...
Comment 9 Bastien Nocera 2006-03-12 11:41:18 UTC
Yep, pretty much. Those files just need to be filtered, so they might need mime-types. I just didn't test this yet.
Comment 10 Bastien Nocera 2006-03-13 09:56:12 UTC
Patch should appear in:

text files are already ignored by the playlist parser, so it's just a matter of tagging subtitle .srt files as text files.