GNOME Bugzilla – Bug 333924
automatically load subtitles from other directories in addition to the current
Last modified: 2006-03-13 09:56:12 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 correctly.
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 ***
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.
So, you would want Totem to look in another (selectable) directory for the subtitle files, instead of just the media file's directory?
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, a.srt, b.avi, b.srt, c.avi, c.srt 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).
It already does that... The subtitle files are looked up just before they're getting opened. Doesn't it work for you?
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.
Right, got it.
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)...
Yep, pretty much. Those files just need to be filtered, so they might need mime-types. I just didn't test this yet.
Patch should appear in: http://webcvs.freedesktop.org/mime/shared-mime-info/freedesktop.org.xml.in?r1=1.127&r2=1.128 text files are already ignored by the playlist parser, so it's just a matter of tagging subtitle .srt files as text files.