diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-11-13 13:36:16 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-11-13 13:36:16 +0100 |
commit | 34852b296a372a81d0b97ab4c12f32be6d294cd3 (patch) | |
tree | 4f751a1551d21c24e7fe66d2a7ddf4444d10a569 /plugins/shotwell-publishing/YoutubeUploader.vala | |
parent | 80aa3fe15f6346102c29b9c4236fe1e89c283d3b (diff) | |
parent | 4098950bba8e6d8609395eb9b223c276cb5954b6 (diff) |
Merge branch 'release/debian/0.32.10-1'HEADdebian/0.32.10-1master
Diffstat (limited to 'plugins/shotwell-publishing/YoutubeUploader.vala')
-rw-r--r-- | plugins/shotwell-publishing/YoutubeUploader.vala | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/shotwell-publishing/YoutubeUploader.vala b/plugins/shotwell-publishing/YoutubeUploader.vala index 47c6051..eb3507f 100644 --- a/plugins/shotwell-publishing/YoutubeUploader.vala +++ b/plugins/shotwell-publishing/YoutubeUploader.vala @@ -18,7 +18,10 @@ internal class Publishing.YouTube.UploadTransaction : Publishing.RESTSupport.Goo public override async void execute_async() throws Spit.Publishing.PublishingError { // Collect parameters - var slug = publishable.get_param_string(Spit.Publishing.Publishable.PARAM_STRING_BASENAME); + var slug = publishable.get_param_string(Spit.Publishing.Publishable.PARAM_STRING_COMMENT); + if (slug == null || slug == "") { + slug = publishable.get_param_string(Spit.Publishing.Publishable.PARAM_STRING_BASENAME); + } // Set title to publishing name, but if that's empty default to filename. string title = publishable.get_publishing_name(); if (title == "") { |