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 721757 - Save downloaded subtitles in the same directory as the video
Save downloaded subtitles in the same directory as the video
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: Subtitle Downloader plugin
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-01-08 00:03 UTC by Federico Simoncelli
Modified: 2014-04-13 21:52 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
0001-opensubtitles-add-download-location-option.patch (7.09 KB, patch)
2014-01-08 00:03 UTC, Federico Simoncelli
needs-work Details | Review
opensubtitles: Save downloaded subtitles in the video directory (5.36 KB, patch)
2014-04-11 16:09 UTC, Bastien Nocera
committed Details | Review

Description Federico Simoncelli 2014-01-08 00:03:19 UTC
Created attachment 265618 [details] [review]
0001-opensubtitles-add-download-location-option.patch

It would be nice to have an option to download subtitles in the same directory of the video (instead of the default cache directory).

Proposed patch as attachment.
Comment 1 Philip Withnall 2014-01-10 19:06:29 UTC
This feels like something which shouldn’t have an option: it should always download the subtitles to one place or the other. The user shouldn’t have to specify where for every download.

It might make more sense for the subtitles to always be downloaded to the movie’s directory, rather than the cache directory.

Bastien, what do you think?
Comment 2 Federico Simoncelli 2014-01-10 21:36:36 UTC
If I recall correctly the selected value is persisted in the preferences. Once the preferred method is selected you can forget about the option unless you want to change it.

I agree that it is convenient to always download the subtitles in the directory of the movie but sometimes you don't have the needed permissions (read-only directory).
Obviously you could do an automatic fallback but I suppose it may be confusing for the user.
Comment 3 Philip Withnall 2014-01-13 00:33:15 UTC
(In reply to comment #2)
> If I recall correctly the selected value is persisted in the preferences. Once
> the preferred method is selected you can forget about the option unless you
> want to change it.

My point is that if it’s possible to avoid making the user set the option in the first place, that would be preferable, IMO.

> I agree that it is convenient to always download the subtitles in the directory
> of the movie but sometimes you don't have the needed permissions (read-only
> directory).
> Obviously you could do an automatic fallback but I suppose it may be confusing
> for the user.

How about asking the user where to save them if the subtitles can’t be saved in the movie’s directory? I guess the main use case here is a read-only NAS or UPnP device, which the user probably plays a lot of movies from, so having a ‘always save subtitles in this directory in future’ checkbox in the save dialogue would make sense.

Out of interest, what’s your use case for accessing the subtitle files in the first place? Just want to check that we’re solving the right basic problem here.
Comment 4 Bastien Nocera 2014-01-19 16:07:47 UTC
I think it should be automatic.

If you're downloading a subtitle, try to save it to the video's directory and if it fails, save it in ~/.cache/totem/subtitles.
Comment 5 Bastien Nocera 2014-01-19 16:08:51 UTC
Comment on attachment 265618 [details] [review]
0001-opensubtitles-add-download-location-option.patch

Marking as needs-work based on the last comment.
Comment 6 Asif Ali Rizvan 2014-02-11 04:03:03 UTC
Yes, please keep the downloaded along with the video files. SMplayer does this very well.
Comment 7 Bastien Nocera 2014-04-11 16:09:55 UTC
Created attachment 274114 [details] [review]
opensubtitles: Save downloaded subtitles in the video directory

Try to download the subtitle to the movie's directory, and to
the cache directory if it fails (read-only locations)
Comment 8 Bastien Nocera 2014-04-13 21:52:36 UTC
Comment on attachment 274114 [details] [review]
opensubtitles: Save downloaded subtitles in the video directory

Pushed in commit b78d307a6832d9198e8eecac1c24e13a85be7b16