summaryrefslogtreecommitdiff
path: root/plugins/shotwell-publishing/YoutubeUploader.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2024-11-11 12:27:53 +0100
committerJörg Frings-Fürst <debian@jff.email>2024-11-11 12:27:53 +0100
commit5b7b3b1dfd5ce7c275881098310667b09562ad27 (patch)
treed2760df372d76da84d901cfc3a20514d5dc73bdf /plugins/shotwell-publishing/YoutubeUploader.vala
parentf6062696f6bbd00d4eaa8a6e994dabfefc455f31 (diff)
New upstream version 0.32.10upstream/0.32.10upstream
Diffstat (limited to 'plugins/shotwell-publishing/YoutubeUploader.vala')
-rw-r--r--plugins/shotwell-publishing/YoutubeUploader.vala5
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 == "") {