diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-11-11 12:28:23 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-11-11 12:28:23 +0100 |
commit | 483b2e960f24c370d9e0260ab4ba8b3453408590 (patch) | |
tree | ec5e83ac39e4e5cec0ab9494da2d0edaafe72d89 /plugins | |
parent | 1bbf886bafc680c56ddd5e27ddd803b4e03685df (diff) | |
parent | cb001bb8056869f98e9a62248bdd509a69d08faf (diff) |
Merge branch 'feature/upstrem' into develop
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/shotwell-publishing/YouTubePublishing.vala | 4 | ||||
-rw-r--r-- | plugins/shotwell-publishing/YoutubeUploader.vala | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/plugins/shotwell-publishing/YouTubePublishing.vala b/plugins/shotwell-publishing/YouTubePublishing.vala index f0a9866..88218cc 100644 --- a/plugins/shotwell-publishing/YouTubePublishing.vala +++ b/plugins/shotwell-publishing/YouTubePublishing.vala @@ -330,9 +330,9 @@ internal class PublishingOptionsPane : Spit.Publishing.DialogPane, GLib.Object { private PrivacyDescription[] create_privacy_descriptions() { PrivacyDescription[] result = new PrivacyDescription[0]; - result += new PrivacyDescription(_("Public listed"), PrivacySetting.PUBLIC); - result += new PrivacyDescription(_("Public unlisted"), PrivacySetting.UNLISTED); + result += new PrivacyDescription(_("Public"), PrivacySetting.PUBLIC); result += new PrivacyDescription(_("Private"), PrivacySetting.PRIVATE); + result += new PrivacyDescription(_("unlisted"), PrivacySetting.UNLISTED); return result; } 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 == "") { |